KERNEL-LEVEL MONITORING FOR ENCRYPTED AUTONOMOUS AGENT VERIFICATION IN MULTI-TIERED DISTRIBUTED SYSTEMS
Systems and methods are disclosed comprising techniques for kernel-level agentic cross-verification in distributed systems, such as detecting, via kernel-level event trace points, a runtime query to execute a transformation operation on an internal operational dataset of a first AI agent, retrieving one or more execution constraints that correlates to the first AI agent, determining a compliance status of the runtime query by comparing the execution constraints with the transformation operation of the runtime query, generating a cryptographic attestation record stored in the multi-agent storage, the attestation record indicating the compliance status, receiving a verification artifact indicating an observed value based on the cryptographic attestation record and application of the transformation operation on the internal operational dataset, validating the verification artifact by comparing the reference value with the observed value indicated by the verification artifact, and generating a verification record stored in the multi-agent storage.
Latest Citigroup Patents:
This application is further related to U.S. Application No. (To Be Determined and Amended), entitled “KERNEL-LEVEL MONITORING FOR ENCRYPTED AUTONOMOUS AGENT EXECUTION IN CROSS-VERIFICATION SYSTEMS” and filed on Jun. 8, 2026. The contents of the foregoing application are incorporated herein by reference in their entirety.
This application is further a continuation in-part of U.S. patent application Ser. No. 19/334,759 entitled “ENCRYPTED AUTONOMOUS AGENT EXECUTION USING CROSS-VERIFICATION METHODS IN DISTRIBUTED SYSTEMS” and filed on Sep. 19, 2025, which is a continuation in-part of U.S. patent application Ser. No. 19/288,027 (U.S. Pat. No. 12,526,244 issued on Jan. 13, 2026) entitled “ENCRYPTED AUTONOMOUS AGENT VERIFICATION IN MULTI-TIERED DISTRIBUTED SYSTEMS ACROSS GLOBAL OR CLOUD NETWORKS” and filed on Aug. 1, 2025, which is a continuation in-part of U.S. patent application Ser. No. 19/217,943 (U.S. Pat. No. 12,450,037 issued on Oct. 21, 2025) entitled “AUTOMATIC GENERATION AND EXECUTION OF COMPUTER-EXECUTABLE COMMANDS USING ARTIFICIAL INTELLIGENCE MODELS” and filed on May 23, 2025. The contents of the foregoing applications are incorporated herein by reference in their entirety.
This application is a continuation in-part of U.S. patent application Ser. No. 19/455,564 entitled “KERNEL-LEVEL MONITORING FOR SOFTWARE APPLICATIONS” and filed on Jan. 21, 2026, which is a continuation of U.S. patent application Ser. No. 19/375,898 (U.S. Pat. No. 12,619,715 issued on May 5, 2025) entitled “KERNEL-LEVEL MONITORING FOR SOFTWARE APPLICATIONS” and filed on Oct. 31, 2025. The contents of the foregoing applications are incorporated herein by reference in their entirety.
U.S. patent application Ser. No. 19/288,027 is further a continuation in part of U.S. patent application Ser. No. 19/179,996 (U.S. Pat. No. 12,587,488 issued on Mar. 24, 2026) entitled “SYSTEMS AND METHODS FOR EXECUTING MULTI-PARTY VALIDATIONS FOR COMPLEX COMMUNICATIONS ACROSS MULTIPLE COMPUTER NETWORKS USING BIFURCATED DIGITAL SIGNING PROCESSES” and filed on Apr. 15, 2025, which claims benefit of priority to U.S. Provisional Patent Application No. 63/781,319 entitled “SYSTEMS AND METHODS FOR EXECUTING MULTI-PARTY VALIDATIONS FOR COMPLEX COMMUNICATIONS ACROSS MULTIPLE COMPUTER NETWORKS USING BIFURCATED DIGITAL SIGNING PROCESSES” and filed on Mar. 31, 2025. The contents of the foregoing applications are incorporated herein by reference in their entirety.
U.S. patent application Ser. No. 19/179,996 is further a continuation in-part of U.S. patent application Ser. No. 19/096,675 (U.S. Pat. No. 12,500,852 issued on Dec. 16, 2025) entitled “SYSTEMS AND METHODS FOR SECURELY ACCESSING PORTIONS OF RESOURCES ACROSS GLOBAL OR CLOUD COMPUTER NETWORKS” and filed on Mar. 31, 2025, which is a continuation in-part of U.S. patent application Ser. No. 19/069,109 entitled “SYSTEMS AND METHODS FOR PROVIDING ON-DEMAND ACCESS TO RESOURCES ACROSS GLOBAL OR CLOUD COMPUTER NETWORKS USING ARTIFICIAL INTELLIGENCE MODELS” and filed on Mar. 3, 2025, which is a continuation of U.S. patent application Ser. No. 18/923,507 (U.S. Pat. No. 12,244,515 issued on Mar. 4, 2025) entitled “SYSTEMS AND METHODS FOR PROVIDING ON-DEMAND ACCESS TO RESOURCES ACROSS GLOBAL OR CLOUD COMPUTER NETWORKS USING ARTIFICIAL INTELLIGENCE MODELS” and filed on Oct. 22, 2024, which is a continuation in-part of U.S. patent application Ser. No. 18/434,687 (U.S. Pat. No. 12,126,546 issued on Oct. 22, 2024) entitled “SYSTEMS AND METHODS FOR DETERMINING RESOURCE AVAILABILITY ACROSS GLOBAL OR CLOUD NETWORKS” and filed on Feb. 6, 2024. The contents of the foregoing applications are incorporated herein by reference in their entirety.
U.S. patent application Ser. No. 19/179,996 is further a continuation in-part of U.S. patent application Ser. No. 18/920,721 entitled “SYSTEMS AND METHODS FOR DETERMINING RESOURCE AVAILABILITY ACROSS GLOBAL OR CLOUD NETWORKS” and filed on Oct. 18, 2024, which is a continuation of U.S. patent application Ser. No. 18/434,687 (U.S. Pat. No. 12,126,546 issued on Oct. 22, 2024) entitled “SYSTEMS AND METHODS FOR DETERMINING RESOURCE AVAILABILITY ACROSS GLOBAL OR CLOUD NETWORKS” and filed on Feb. 6, 2024. The contents of the foregoing applications are incorporated herein by reference in their entirety.
U.S. patent application Ser. No. 19/179,996 is further a continuation in-part of U.S. patent application Ser. No. 18/596,273 (U.S. Pat. No. 12,346,905 issued on Jul. 1, 2025) entitled “SYSTEMS AND METHODS FOR SEAMLESSLY PROCESSING TRANSACTIONS USING DISTRIBUTED LEDGER TECHNOLOGY IN A LEGACY SYSTEM INFRASTRUCTURE” and filed on Mar. 5, 2024, which is a continuation of U.S. patent application Ser. No. 17/498,622 (U.S. Pat. No. 11,935,052 issued on Mar. 19, 2024) entitled “SYSTEMS AND METHODS FOR SEAMLESSLY PROCESSING TRANSACTIONS USING DISTRIBUTED LEDGER TECHNOLOGY IN A LEGACY SYSTEM INFRASTRUCTURE” and filed on Oct. 11, 2021. The contents of the foregoing applications are incorporated herein by reference in their entirety.
U.S. patent application Ser. No. 19/179,996 is further a continuation in-part of U.S. patent application Ser. No. 19/076,983 entitled “SYSTEMS AND METHODS FOR REAL-TIME RECORDING OF TRANSFERS OF SELF-VALIDATING DIGITAL RECORDS ACROSS CRYPTOGRAPHICALLY SECURE NETWORKS USING CROSS-NETWORK REGISTRIES” and filed on Mar. 11, 2025, which is a continuation of U.S. patent application Ser. No. 18/648,156 (U.S. Pat. No. 12,277,109 issued on Apr. 15, 2025) entitled “SYSTEMS AND METHODS FOR REAL-TIME RECORDING OF TRANSFERS OF SELF-VALIDATING DIGITAL RECORDS ACROSS CRYPTOGRAPHICALLY SECURE NETWORKS USING CROSS-NETWORK REGISTRIES” and filed on Apr. 26, 2024, which is a continuation of U.S. patent application Ser. No. 18/487,971 (U.S. Pat. No. 11,971,881 issued on Apr. 30, 2024) entitled “SYSTEMS AND METHODS FOR REAL-TIME RECORDING OF TRANSFERS OF SELF-VALIDATING DIGITAL RECORDS ACROSS CRYPTOGRAPHICALLY SECURE NETWORKS USING CROSS-NETWORK REGISTRIES” and filed on Oct. 16, 2023. The contents of the foregoing applications are incorporated herein by reference in their entirety.
U.S. patent application Ser. No. 19/179,996 is further a continuation in-part of U.S. patent application Ser. No. 18/820,107 (U.S. Pat. No. 12,615,160 issued on Apr. 28, 2026) entitled “SYSTEMS AND METHODS FOR ENFORCING CRYPTOGRAPHICALLY SECURE ACTIONS IN PUBLIC, NON-PERMISSIONED BLOCKCHAINS USING BIFURCATED SELF-EXECUTING PROGRAMS COMPRISING SHARED DIGITAL SIGNATURE REQUIREMENTS” and filed on Aug. 29, 2024, which is a continuation of U.S. patent application Ser. No. 18/465,942 (U.S. Pat. No. 12,113,914 issued on Oct. 8, 2024) entitled “SYSTEMS AND METHODS FOR ENFORCING CRYPTOGRAPHICALLY SECURE ACTIONS IN PUBLIC, NON-PERMISSIONED BLOCKCHAINS USING BIFURCATED SELF-EXECUTING PROGRAMS COMPRISING SHARED DIGITAL SIGNATURE REQUIREMENTS” and filed on Sep. 12, 2023, which is a continuation of U.S. patent application Ser. No. 18/189,907 (U.S. Pat. No. 11,770,263 issued on Sep. 26, 2023) entitled “SYSTEMS AND METHODS FOR ENFORCING CRYPTOGRAPHICALLY SECURE ACTIONS IN PUBLIC, NON-PERMISSIONED BLOCKCHAINS USING BIFURCATED SELF-EXECUTING PROGRAMS COMPRISING SHARED DIGITAL SIGNATURE REQUIREMENTS” and filed on Mar. 24, 2023, which is a continuation in-part of U.S. patent application Ser. No. 18/062,090 (U.S. Pat. No. 11,658,833 issued on May 23, 2023) entitled “SYSTEMS AND METHODS FOR CONDUCTING CRYPTOGRAPHICALLY SECURE ACTIONS IN PUBLIC, NON-PERMISSIONED BLOCKCHAINS USING BIFURCATED SELF-EXECUTING PROGRAMS” and filed on Dec. 6, 2022. The contents of the foregoing applications are incorporated herein by reference in their entirety.
BACKGROUNDAn AI agentic model (“agent”), whether autonomous or semiautonomous, refers to a persistent software entity characterized by a digitally encoded objective function. The objective function can instruct the agent to, for example, maximize task accuracy, minimize resource usage, comply with specified operational constraints, and the like. The degree of autonomy can range from semiautonomous, where human intervention is occasionally used, to fully autonomous, where the agent operates independently within defined parameters. Agents use received data (e.g., an input, a prompt, a query) to autonomously trigger and manage actions such as application programming interface (API) invocations, outbound network requests, updates to internal or external datastores, and other computational tasks. The actions autonomously executed by agents are responsive to their respective objective functions. For example, an agent's objective function may direct the agent to minimize task completion latency. During autonomous execution, the agent can determine a degree of expected utility of candidate actions by evaluating the actions against its objective function and select executable actions that align with its assigned objectives within the imposed operational constraints or boundaries set by the system the agent is interacting with.
In some examples, systems that interact with agents are other agents. For instance, a provider agent refers to an AI or autonomous software entity operating on behalf of a direct supplier or service provider in a distributed system. Sub-agents, also known as second-tier or higher-tier agents, are agents that operate further upstream in a supply chain hierarchy, such as subcontractors, indirect suppliers, or additional autonomous entities that fulfill obligations delegated by the provider agent. However, the layered structure and autonomous nature of agents mean there is often limited visibility into a compliance status of the autonomous actions taken by higher-tiered agents that contribute to outcomes or compliance but, for example, are several layers removed from the primary organization.
A kernel is a computer program within an operating system that operates with the highest level of system privileges and provides services to other software running on a computer system. The kernel executes in a protected memory region referred to as kernel space where the kernel has unrestricted access to system resources such as physical memory, processor registers, hardware devices, and so forth. Kernel code can directly manipulate hardware components (e.g., network interfaces, storage controllers, memory management units). The kernel operates as the intermediary between a software application and computer hardware. System calls enable software applications to request services without direct hardware manipulation.
A user space represents the restricted execution environment where application programs and user processes operate with limited privileges and controlled access to system resources. User space processes execute in virtual memory spaces that are isolated from each other and from kernel memory to prevent unauthorized access to system resources. Rather than directly accessing hardware devices, modifying system configurations, or manipulating kernel data structures, applications running in user space instead request these services from the kernel via system call interfaces that provide controlled access to system functionality. However, malicious applications can exploit this system call interface to access kernel space resources, by, for example, bypassing user space security controls or manipulating system resources at the kernel level to conceal malicious activities and evade detection by user space monitoring systems.
Detailed descriptions of implementations of the present invention will be described and explained through the use of the accompanying drawings.
The technologies described herein will become more apparent to those skilled in the art from studying the Detailed Description in conjunction with the drawings. Embodiments or implementations describing aspects of the invention are illustrated by way of example, and the same references can indicate similar elements. While the drawings depict various implementations for the purpose of illustration, those skilled in the art will recognize that alternative implementations can be employed without departing from the principles of the present technologies. Accordingly, while specific implementations are shown in the drawings, the technology is amenable to various modifications.
DETAILED DESCRIPTIONDistributed computing environments can host a plurality of artificial intelligence (AI) agents that operate autonomously or semi-autonomously across multi-tiered systems, such as entity domains, service provider domains, and subcontractor networks. Within these environments, verifying that each agent operates within defined operational constraints can present a persistent technical challenge. Each AI agent can execute computational functions, including model inference operations, application programming interface (API) interactions, data processing workflows, and decision-making algorithms. These computational functions can consume system resources such as processor time, memory allocations, storage operations, and network bandwidth. Additionally, each AI agent can interact with other agents or external services through system call interfaces, including file operations, network socket operations, memory allocation operations, and process management operations. Because such agents can be operated by different entities that possess differing operational policies, regulatory obligations, and security postures, a verifying entity can lack direct visibility into the internal operations of a counterpart agent. The verifying entity can define operative boundaries that constrain the behavior of a counterpart agent, such as permissible value ranges for model parameters, allowable network destination addresses, maximum memory allocation thresholds, and authorized file system paths. However, confirming adherence to those boundaries without accessing the counterpart agent's raw operational data, such as training datasets, model architectures, and internal configuration parameters, can introduce a verification gap. This verification gap can be compounded in multi-tiered hierarchies where compliance obligations cascade from a primary entity through provider agents to sub-agents, because each tier can potentially introduce additional points of non-compliance or data exposure.
Contemporary approaches to monitoring and enforcing compliance of AI agents can operate primarily on the application layer, for example within user space processes that execute with restricted privileges and limited access to system resources. Application-layer monitoring mechanisms can be inherently susceptible to circumvention because malicious or compromised user space processes can intercept, modify, or forge compliance verification messages before such messages reach application-level validation logic. For example, a compromised agent operating within user space can alter its reported operational data, bypass application-level access controls, or manipulate system resources at the kernel level to conceal non-compliant activities and evade detection by user space monitoring systems. Because every user space process request kernel services through system call interfaces to perform computational work such as file access, network communication, memory allocation, and process management, application-layer enforcement can introduce a latency window during which operations complete in kernel space before user space enforcement is able to react. Furthermore, application-layer approaches can lack the capability to generate tamper-evident records of enforcement decisions that are resistant to modification by the monitored agents themselves, which can undermine the integrity of audit trails and compliance verification processes. These limitations can be exacerbated in multi-tiered distributed systems where agents from different organizational domains interact through shared data structures, such as distributed ledgers and blockchains, and where privacy-preserving verification techniques, such as zero-knowledge proofs and cryptographic commitments, are employed to assess compliance without disclosing sensitive operational data.
Existing kernel-level security frameworks that use programmable hook-based instrumentation (e.g., CILIUM, FALCO, TETRAGON) typically enforce static per-container or per-workload policies based on predefined rule sets. These frameworks typically monitor kernel events such as system calls, network connections, and/or file access operations, and apply restrictions at the container level according to rules that are defined at deployment time and remain fixed unless manually updated by a user (e.g., an administrator). Because the policies are static, these frameworks do not adapt enforcement in response to changes in agent behavior or operational state without manual intervention.
The disclosed system can address these and other challenges of existing systems by relocating compliance enforcement from the application layer into the operating system kernel, where enforcement programs (e.g., extended Berkeley Packet Filter (eBPF) programs) can intercept and evaluate AI agent operations at the system call boundary before any substantive processing occurs. Because every user space process must request kernel services through system call interfaces to perform computational work such as file access, network communication, memory allocation, or process management, the kernel-level enforcement infrastructure can observe and control agent behavior regardless of whether the agent software has been modified, compromised, or is otherwise uncooperative. By maintaining operative boundaries and per-agent execution constraints within kernel-resident data structures that are inaccessible to user space processes, the disclosed system can reduce the tampering possibilities inherent in application-layer monitoring approaches and can provide pre-execution enforcement that blocks non-compliant operations before resource access or state modification occurs.
The disclosed system can further integrate this kernel-level enforcement with a privacy-preserving cross-verification framework in which AI agents operating across different computational domains can demonstrate compliance with defined operative boundaries without disclosing their underlying operational data. To implement this integration, the kernel-based management system can deploy enforcement programs (e.g., extended Berkeley Packet Filter (eBPF) programs) that attach to kernel hook points such as system call entry points, Linux Security Module (LSM) hooks, and network stack interfaces, where the enforcement programs intercept agent operations and evaluate the operations against per-agent execution constraints stored in kernel-resident data structures (e.g., hash maps, array maps) before permitting the operations to proceed. Cryptographic attestation records generated within the kernel environment can document enforcement decisions with tamper-evident properties by applying cryptographic hash functions (e.g., SHA-256) to event data including agent identifiers, operation types, compliance decisions, and nanosecond-precision timestamps captured from kernel monotonic clocks, and these attestation records can be digitally signed using asymmetric cryptographic operations (e.g., Ed25519, ECDSA) with private keys stored in hardware-protected storage to prevent unauthorized modification. The signed attestation records can be transferred from kernel space to user space through lock-free ring buffer data structures and subsequently stored in a multi-agent storage (e.g., a distributed ledger, a blockchain) where they are accessible to verifying agents for cross-domain compliance assessment. Through the use of verification artifacts such as cryptographic commitments, hash outputs, or zero-knowledge proofs generated by applying transformation operation sets on portions of an agent's internal operational dataset corresponding to the defined operative boundaries, a verifying agent can confirm that a counterpart agent's operations satisfy the defined operative boundaries without receiving or processing the counterpart agent's raw operational data such as training datasets, model architectures, or internal configuration parameters. This combination of kernel-level enforcement with privacy-preserving cross-verification can enable a multi-layered compliance framework suitable for multi-tiered distributed systems where autonomous agents from different execution environments interact through shared data structures and where cascading compliance obligations propagate across provider agents and sub-agents.
To facilitate the kernel-level enforcement, the disclosed system can include an intermediate layer comprising a constraint compiler that transforms high-level operative boundaries expressed in a policy language supporting logical operators, conditional expressions, and set membership operations into compiled bytecode (e.g., eBPF bytecode) suitable for kernel-level execution, a mapping controller that manages the correlation between agent identifiers and corresponding execution constraints by maintaining kernel-resident data structures associating each AI agent with a respective set of enforceable rules, and a runtime controller that configures operating system service parameters including mandatory access control policy modules, namespace isolation settings, and control group resource limits that complement the kernel-level enforcement programs. The compiled enforcement programs can be validated by a kernel-level verifier that performs static analysis to ensure bounded execution time, valid memory access patterns, type safety, and termination guarantees before permitting kernel space execution, thereby preventing both accidental errors and intentional exploits from compromising kernel integrity. The disclosed techniques may be applied across a range of distributed computing architectures including, for example, multi-agent coordination systems operating across heterogeneous network topologies, distributed ledger-based transaction processing systems, autonomous computational node coordination networks, distributed data processing infrastructures, cloud-based resource allocation and scheduling systems, networked device management systems implementing edge computing paradigms, federated machine learning environments executing parallel model training across distributed nodes, and other multi-tiered computing architectures where autonomous or semi-autonomous software processes operate across distinct execution domains and where kernel-level enforcement of operational constraints and privacy-preserving compliance verification may be employed.
For illustrative purposes, examples are described herein in the context of computer systems for kernel-level monitoring and enforcement of operational constraints on autonomous AI agents operating across multi-tiered distributed systems with privacy-preserving cross-verification. However, a person skilled in the art will appreciate that the disclosed system can be applied in other contexts. For example, the disclosed system can be used within a distributed model training infrastructure to enforce computational resource boundaries on federated learning agents by intercepting and evaluating memory allocation requests, inter-node communication system calls, and gradient exchange operations at the kernel level before model parameter updates are propagated across training nodes, thereby preventing unauthorized data access or resource exhaustion while generating cryptographic attestation records suitable for verifying training provenance and model integrity across distributed compute clusters. In another example, the disclosed system can be used within a multi-tenant cloud computing environment to enforce workload isolation constraints on autonomous container orchestration agents by monitoring file system operations, network socket communications, and process creation system calls at the kernel level to ensure that each tenant's computational workloads conform to defined resource isolation boundaries, while enabling cross-tenant verification of compliance through zero-knowledge proofs that demonstrate adherence to isolation policies without disclosing the underlying workload configurations or proprietary application logic.
In a further example, the disclosed system can be used within a distributed data pipeline processing system to enforce data transformation constraints on autonomous ETL (extract, transform, load) agents by intercepting I/O operations, database query system calls, and inter-agent message passing at the kernel level, ensuring that each agent in a multi-stage processing pipeline operates within defined schema validation and data routing parameters while preserving the confidentiality of proprietary transformation logic through privacy-preserving verification artifacts stored on a distributed ledger. In yet another example, the disclosed system can be used within a distributed edge computing network to enforce execution constraints on autonomous inference agents deployed across heterogeneous edge nodes by monitoring system call patterns associated with model weight loading, sensor data ingestion, inference result serialization, and inter-node synchronization communications at the kernel level, thereby providing tamper-evident records of compliance with computational resource quotas and model versioning constraints that can be independently verified by centralized orchestration systems without requiring access to proprietary model architectures or inference optimization parameters.
Attempting to create a system to enforce compliance of autonomous AI agents operating across multi-tiered distributed systems at the operating system kernel level while preserving operational data privacy through cryptographic cross-verification in view of the available conventional approaches created significant technological uncertainty. Creating such system required addressing several unknowns in conventional approaches in application-layer compliance monitoring and enforcement for autonomous software agents, such as how to intercept and evaluate agent operations at a privilege level that cannot be circumvented by compromised or malicious agent processes that can intercept, modify, or forge compliance verification messages before such messages reach application-level validation logic. Similarly, conventional approaches in privacy-preserving verification across organizational boundaries did not provide tamper-evident enforcement records generated within a privileged execution environment that is inaccessible to the monitored agents themselves.
Conventional approaches rely on application-layer enforcement mechanisms that execute within user space with restricted privileges and limited access to system resources, which do not prevent compromised user space processes from altering reported operational data, bypassing access controls, or manipulating system resources at the kernel level to conceal non-compliant activities. For example, a conventional system may implement compliance checks as user space middleware that evaluates agent operations after system call completion and fail to block non-compliant operations before resource access or state modification occurs, introducing a latency window during which operations complete in kernel space before user space enforcement is able to react. Further, conventional approaches typically involve monitoring agent behavior through application-level instrumentation or network-layer inspection, which cannot generate enforcement records that are resistant to modification by the monitored agents themselves and do not provide pre-execution enforcement at the system call boundary. Conversely, the disclosed system relocates compliance enforcement from the application layer into the operating system kernel, where enforcement programs such as extended Berkeley Packet Filter (eBPF) programs can intercept and evaluate AI agent operations at the system call boundary before any substantive processing occurs, maintaining operative boundaries and per-agent execution constraints within kernel-resident data structures that are inaccessible to user space processes.
Additionally, the integration of kernel-level enforcement with privacy-preserving cross-verification frameworks operating across heterogeneous computational domains created further technological uncertainty. Legacy application-layer approaches lacked mechanisms for generating cryptographic attestation records within a privileged kernel execution environment that could be independently verified by agents operating in separate organizational domains without disclosing underlying operational data. Legacy compliance verification systems often required direct access to an agent's raw operational data such as training datasets, model architectures, and internal configuration parameters to assess compliance, thereby creating data exposure risks in multi-tiered hierarchies where compliance obligations cascade from primary entities through provider agents to sub-agents. To successfully integrate legacy privacy-preserving verification techniques such as zero-knowledge proofs and cryptographic commitments with kernel-level enforcement mechanisms that generate tamper-evident attestation records suitable for cross-domain compliance assessment, the transformation of high-level operative boundaries expressed in policy languages into compiled bytecode suitable for kernel-level execution, the management of per-agent execution constraints within kernel-resident data structures, and the coordination of cryptographic attestation record generation with distributed ledger storage must be taken into consideration.
To overcome the technological uncertainties, the inventors systematically evaluated multiple design alternatives. For example, the inventors evaluated different kernel hook point types including Linux Security Module hooks, express Data Path hooks, traffic control hooks, kernel probes, and tracepoints to determine which attachment points provided the appropriate interception granularity for different categories of agent operations such as file access, network communication, memory allocation, and process management. The inventors experimented with different kernel-resident data structure configurations including hash maps, array maps, per-CPU maps, ring buffers, and longest prefix match trie maps for storing per-agent execution constraints, which allowed the inventors to determine the optimal data structure selection for balancing lookup performance, concurrent access patterns, and memory efficiency when enforcing operative boundaries across multiple concurrently executing AI agents.
The use of pure user space enforcement mechanisms with kernel event notification proved to be insufficient for tamper-resistant compliance enforcement, as it failed to prevent compromised agent processes from intercepting and modifying compliance evaluation results before they reached persistent storage. This insufficiency led to unreliable audit trails and undetectable compliance violations in multi-tiered agent hierarchies. Similarly, approaches that relied on hypervisor-level monitoring for agent compliance verification did not provide the fine-grained, per-agent policy enforcement at the system call level required for evaluating individual operative boundary constraints without introducing prohibitive performance overhead across all system operations. Further, approaches that implemented compliance enforcement exclusively through container orchestration system admission controllers ignored the potential benefits of kernel-level pre-execution enforcement that can evaluate and block non-compliant operations at the system call boundary before any resource access occurs, resulting in enforcement gaps where operations could complete between admission-time validation and runtime execution.
Thus, the inventors experimented with different methods for compiling high-level operative boundaries into kernel-executable enforcement programs and coordinating cryptographic attestation record generation with privacy-preserving cross-verification across distributed agent domains. For example, the inventors evaluated different constraint compilation pipelines, including static compilation, just-in-time compilation, and AI-assisted code generation approaches, for transforming policy language specifications into eBPF bytecode that satisfies kernel-level verifier safety constraints including bounded execution time, valid memory access patterns, type safety, and termination guarantees, to identify the most efficient and effective approaches. Additionally, the inventors systematically evaluated different strategies for generating tamper-evident cryptographic attestation records within the kernel execution environment and transferring those records to distributed ledger storage for cross-domain verification. The inventors evaluated, for example, different methods of cryptographic hash chain construction for linking sequential attestation records, such as per-agent hash chains maintained within kernel-resident data structures, where each attestation record incorporates the hash of its immediate predecessor to create cryptographic dependency chains that enable detection of unauthorized modifications to historical enforcement records.
The agent management platform can apply controls at interfaces that are neither purely application-level nor purely kernel-internal. For example, the agent management platform can intercept a controller API call or invocation before the call causes kernel activity. In some implementations, the agent management platform deploys monitoring and enforcement controls at one or more intermediate processing levels positioned between the operating system kernel and an application layer associated with an AI agent or other monitored application, as described in more detail with reference to the monitoring layer in
At an operating-system service level, one or more monitoring programs (e.g., eBPF program(s)) can attach to cgroup-related hook points to enforce per-agent resource quotas including CPU quotas, memory ceilings, and/or input/output bandwidth limits. The cgroup hook points can fire when the AI agent's process or container requests resource allocations that are governed by the cgroup to which the agent is assigned. The monitoring programs can compare the requested allocation against per-agent limits stored in a hash map or other data file (e.g., BPF maps). When a requested allocation exceeds the per-agent limit, the monitoring program can deny the allocation by returning an error code before the operating system kernel processes the request.
In some implementations, one or more monitoring programs monitor inter-process communication (IPC) channels such as pipes, shared-memory regions, message queues, and/or Unix-domain sockets used by the AI agent to communicate with one or more peer processes. The IPC monitoring programs can attach to kernel functions that mediate data transfer between processes and capture the process identifiers of the sending and receiving processes, the size of the data transferred, and the type of IPC channel used. In some implementations, namespace transitions and container-runtime operations are monitored by attaching monitoring programs to hook points associated with namespace operations. These hook points can fire when a process attempts to change its namespace membership or create a new namespace. The monitoring programs can evaluate the attempted transition against a policy stored in a data file (e.g., BPF maps) to detect and prevent unauthorized namespace escape, unauthorized container reconfiguration, and/or unauthorized process migration.
At the controller or orchestrator level, one or more monitoring programs can attach to network hook points to intercept, inspect, and validate messages exchanged between an AI agent and an orchestration controller. The orchestration controller can include a cluster-management server (e.g., a Kubernetes API server), a scheduler, a service-mesh controller, and so forth. When the AI agent transmits a message to the orchestration controller (e.g., a request to modify a deployment), the monitoring program attached to the network hook point inspects the message payload and compares the requested operation against a set of permitted operations stored in a policy map within a data file (e.g., BPF maps). Policy enforcement can prevent the AI agent from requesting unauthorized resources by dropping the message at the network hook point before it reaches the orchestration controller. In some implementations, controller-to-agent communications are monitored in the reverse direction to detect unauthorized instruction injection or other operations that fail signature validation.
At the compiler or build level, one or more monitoring programs can monitor execution of compiler, linker, and/or build-tool processes associated with generation of an AI-agent binary, plugin, and/or policy artifact. The monitoring programs attach to hook points (e.g., trace point, LSM) that fire when the compiler or build-tool process performs system calls such as process creation (fork, exec), file reads and writes, environment-variable access, outbound network access, and so forth. The cross-layer management platform evaluates these events against a build-process policy stored in a data file (e.g., BPF maps) to detect anomalous build behavior such as a compiler process making unexpected outbound network connections (which may indicate a supply-chain compromise). In some implementations, the cross-layer management platform intercepts execution events for a newly compiled binary and verifies a binary measurement or signature before permitting execution. The binary measurement refers to a cryptographic hash of the compiled binary's content, and the cross-layer management platform compares the binary measurement against an allowlist of approved measurements stored in a hash map of a data file (e.g., BPF maps). If the binary measurement does not match any entry in the allowlist, the monitoring program denies the execution call by returning an error code.
At the device driver or hardware-interface level, one or more monitoring programs can monitor device I/O operations associated with an AI agent. The monitoring programs attach to hook points (e.g., tracepoint or kprobe) within the kernel's device driver subsystem that fire when the AI agent's process issues I/O operations to a device file or device driver interface. The monitored device interfaces can include GPUs, accelerator devices, robotics interfaces, sensors, storage controllers, network interfaces, and so forth. The cross-layer management platform evaluates each device I/O operation against a device-access policy stored in a data file (e.g., BPF maps) that specifies which device files, command codes, and/or memory mapping ranges are permitted for each agent. Thus, the cross-layer management platform can prevent unauthorized hardware commands (e.g., an agent issuing GPU commands outside its allocated compute partition), unauthorized memory transfers (e.g., an agent mapping device memory regions that belong to another agent's workload), unauthorized data exfiltration (e.g., an agent writing sensitive data to a removable storage device), and other unauthorized operations.
In some implementations, the agent management platform correlates events captured at the intermediate processing levels with kernel-level event records. The agent management platform can perform this correlation using identifiers such as a common process identifier, thread identifier, cgroup identifier, namespace identifier, container identifier, binary measurement, agent identifier, attestation identifier, and the like. A common identifier is a shared value that appears in event records generated at different layers of the system, enabling the agent management platform to associate events from different layers with the same agent or the same operation. The correlation enables the agent management platform to detect cross-layer patterns that are not observable from any single layer in isolation. For example, if the agent management platform detects that an AI agent opened a network connection to an unapproved IP address (observed at the kernel level via an XDP or TC hook, as described in more detail with reference to the hook point(s) in
In some implementations, the agent management platform operates using an AI-assisted code generation architecture to perform automated code generation and constraint enforcement. The AI-assisted code generation architecture can maintain code generation components and verification components. The code generation components produce monitoring program code. In some implementations, the code generation components use trained neural network models such as InCoder-32B or another code foundation model, as described in more detail with reference to the controller in
The code generation component can include, for example, a large language model trained on code corpora that receives policy specifications as input and generates monitoring program code structured to attach to hook points within the kernel or within an intermediate processing level. The policy specifications can define which agent operations to intercept, what event record fields to populate, what rule evaluation logic to apply, and/or what enforcement actions to take when a policy threshold is exceeded. The verification component can evaluate the generated code against the safety constraints of the target monitoring layer. For example, the verification component can confirm that the generated code terminates in bounded time, accesses only authorized memory regions, calls only approved helper functions, and maintains type safety across execution paths, as described in more detail with reference to
One or more of the monitoring programs (e.g., eBPF programs) can be generated by an AI code generation model (e.g., InCoder-32B or similar models). The AI code generation model, for example, receives a policy specification as input and produces, as output, source code for the monitoring programs that is structured to attach to the hook points and capture the event records described above. To generate the source code, the AI code generation model can translate high-level policy intent (e.g., “deny network egress for unregistered agents” or “capture all file write operations by agents in a specified cgroup”) into code that implements the policy as concrete hook-level logic. In some implementations, the code-generation model generates one or more intermediate-level instrumentation components that operate at processing levels between the kernel and the application layer.
In some implementations, the code-generation model processes a long-context input such as a policy repository, a multi-file build context, a controller-policy corpus, and/or a cross-layer monitoring specification in a single inference session. For example, the code-generation model can ingest a policy repository that defines enforcement rules for multiple AI agents across multiple hook points and multiple intermediate processing levels, and generate a coordinated set of monitoring programs where each program attaches to a different hook point and shares state through common reference data files (e.g., BPF maps), such that the generated programs collectively enforce the policy repository without requiring a user to manually partition the policy logic across individual programs. The code-generation model can read the policy repository as a single input sequence to identify dependencies between policy rules and generate source code for each hook point that references shared keys (e.g., BPF map keys) consistent with the other generated programs.
In some implementations, the code-generation model generates source code in multiple programming languages and low-level code representations to produce cross-layer instrumentation and enforcement logic. For example, the code-generation model generates eBPF source code for the eBPF programs that execute within the operating system kernel, generates C or C++ source code for user-space handlers, and so forth. Each generated artifact can be associated with a different processing level (kernel, user space, compiler, controller) but shares a common policy vocabulary and common schema, such that an event captured by a monitoring program at a kernel hook point can be correlated with an event captured by a compiler plugin at the build level using the same agent identifier.
The code-generation model can generate monitoring programs that maintain per-agent system call counters in per-CPU maps within the reference data files (e.g., BPF maps), where each CPU core increments its own local counter without acquiring a lock, and a periodic timer hook aggregates the per-CPU values into a single total that is exported to user space via a ring buffer when the aggregated total exceeds a reporting threshold. This approach reduces the volume of individual events transmitted from kernel space to user space because the monitoring program exports one aggregated record per reporting interval rather than one record per system call. The code-generation model can generate monitoring programs that correlate events across multiple hook points within a rolling time window stored in a reference data file (e.g., BPF map), such that the program detects cross-layer patterns and triggers an enforcement action when both events occur within the window.
The description and associated drawings are illustrative examples and are not to be construed as limiting. This disclosure provides certain details for a thorough understanding and enabling description of these examples. One skilled in the relevant technology will understand, however, that the invention can be practiced without many of these details. Likewise, one skilled in the relevant technology will understand that the invention can include well-known structures or features that are not shown or described in detail, to avoid unnecessarily obscuring the descriptions of examples.
Example Implementations of Verifying AI Agents in Multi-Tiered Distributed SystemsEnvironment 100 can be segmented into an entity domain 102 and a service provider domain 104 communicatively connected by a smart contract layer 118. The entity domain 102 refers to a computational environment associated with an entity such as a primary organization or enterprise. As used herein, an entity domain 102 is defined as a computational node, execution environment, or virtual machine instance that maintains a unique identity and is configured to execute software instructions, store and process data, and manage associated autonomous and/or semiautonomous agents via one or more processor and memory subsystems. The entity domain 102 includes components such as internal process execution units, structured data storage and retrieval subsystems (e.g., databases, data lakes, or object stores), autonomous and/or semiautonomous agents, network interfaces and access control modules operating to enforce authentication and authorization for inbound and outbound data flows, and so forth. The entity domain 102 may be implemented as an isolated network segment with controlled access points to external systems. The entity domain 102 may generate separate environments for different departments or functions within the organization.
The provider domain 104 refers to a logically and/or physically isolated computing environment associated with external service providers or vendors that interact with the primary entity (i.e., the entity corresponding to the entity domain 102). The provider domain 104 includes the internal systems, autonomous agents, data structures, data repositories, and so forth corresponding to the external service providers. In some implementations, rather than the entity of the entity domain 102 being associated with a single service provider, the service provider domain 104 is implemented as a federated network of multiple service providers, each with its own subdomains.
Within the entity domain 102, multiple autonomous agentic AI models referred to as entity agents 106 (e.g., procurement AI agent 106A, compliance AI agent 106B, quality AI agent 106C, and so forth) can be used to perform operations associated with the entity domain 102. In the context of the agent management platform, an “agent” is a computational entity, implemented as an artificial intelligence (AI) process or human-supervised software module, whose operational behavior is governed by a machine-readable objective function. The objective function encodes the agent's optimization target or operational policy and directs its semiautonomous or autonomous programmatic decision-making. An agent is enabled to execute one or more actions independently, with autonomy defined as the ability to process input data, evaluate system proposals, generate evidence, and effectuate state-modifying operations without stepwise external control. Each agent can be constructed to include structured, persistent memory for maintaining state information, logs of historical transactions, and/or cryptographic credentials; input interfaces for acquiring data, protocol instructions, and authenticated messages from system components or external adapters; and output channels for transmitting verifiable decisions, artifacts, and/or cryptographic proofs to distributed ledgers or interfacing subsystems. Executable actions can include sequences of deterministic or conditional computer instructions triggered by protocol events or smart contract logic.
For example, the procurement AI agent 106A refers to an agent trained on structured datasets including historical transaction records, where each dataset entry is formatted as a data structure containing multi-field attributes such as cost, supplier identifier, item type, and timestamp. The procurement AI agent 106A can execute predictive analytics workflows, such as regression or classification models, to output predictions for attributes of prospective transactions (including but not limited to supplier selection, projected pricing, and estimated delivery time), wherein the predictions are determined based on input features provided at runtime.
In another example, the compliance AI agent 106B is an agent that receives operational metadata as input, such metadata including model parameter logs, event audit trails, and configuration data associated with subordinate AI models deployed by the entity or by external provider domains. The compliance AI agent 106B validates, through machine-executable rule sets, whether the operational behaviors of AI-driven processes within the domain adhere to externally provided regulatory standards, internal compliance policies, programmed constraints, or defined industry benchmarks. The compliance AI agent 106B can operate as a real-time or near-real time monitoring module by subscribing to streaming data feeds, detecting protocol violations, and generating machine-formatted compliance reports or alert notifications when such violations are detected. The compliance AI agent 106B can include logic to initiate automated, computer-implemented remediation workflows in software systems that are identified as noncompliant.
The quality AI agent 106C refers to an agent that can be used to maintain and/or align attributes of products, services, or processes within the entity with a set of criteria (e.g., quality criteria). The quality AI agent 106C can be implemented as an AI model that receives structured product or process data as input and applies machine-executable criteria to determine conformity of the data with technical quality specifications.
The service provider domain 104 can include its own (e.g., different) set of agents, referred to as the provider agents 108 (e.g., sales AI agent 108A, delivery AI agent 108B, compliance AI agent 108C, and so forth) herein. The entity agents 106 and provider agents 108 are the same as or similar to the AI system 4500 illustrated and described in more detail with reference to
The sales AI agent 108A, as instantiated within the service provider domain 104, is an agent whose objective function can be to maximize or increase the execution of digital sales transactions in accordance with specified logic and system constraints. The sales AI agent 108A can, for example, interface with input/output APIs to receive structured digital sales inquiries, smart contract templates, and/or service capability attestations as input artifacts. The sales AI agent can execute one or more evaluations, such as ranking, classification, or constraint satisfaction, to determine transaction parameters, generate digitally signed smart contract proposals, or send negotiation messages. AIl outputs can be formatted as machine-readable digital artifacts and communicated through agent interfaces to distributed smart contract layers for verification and further automated workflow execution.
The delivery AI agent 108B refers to an agent used to autonomously coordinate and/or verify the fulfillment of service delivery obligations specified by digital smart contracts. The delivery AI agent can receive as input smart contract terms, delivery event data, and service logs, represented as structured, machine-parsable digital records. The delivery AI agent can continuously monitor delivery states and generate digitally signed fulfillment confirmations and delivery status updates. The output artifacts can be transmitted to a shared data structure 120 or other agents.
The compliance AI agent 108C, similar to its counterpart in the entity domain 102, can validate adherence to computationally defined compliance requirements and digital contract clauses. Inputs to the compliance AI agent can include policy documents, regulatory parameter sets, operational logs, and machine-readable copies of smart contract terms. The compliance AI agent 108C can autonomously evaluate operational events and output compliance certificates, audit trails, or zero-knowledge proof artifacts as evidence of conformity to system policies or smart contract obligations.
The entity rules repository 110 refers to a centralized data store associated with the entity domain 102 that is enabled to store, retrieve, and manage machine-readable rule sets, policy objects, and criteria-defining data structures that regulate an entity's operations and interactions with service providers (e.g., the service provider agent associated with the provider domain 104). A rule can be defined as a logic statement or parameterized condition that can be programmatically evaluated by autonomous agents at execution time. The repository can define operative boundary parameters for products, services, and internal processes in the form of configuration entries, logical expressions, or modular policy code that can be referenced by agents for automated compliance checks. The entity rules repository 110 can operate as a versioned database that defines the operative boundaries parameters for products, services, and/or processes within the organization. Additionally, the entity rules repository 110 may store provider criteria, which can be encoded as structured data tuples that specify provider qualification metrics, evaluation thresholds, and performance indicators, enabling agents to execute dynamic selection and scoring routines for service providers.
The service capabilities 112 within the service provider domain 104 refer to an unstructured, semi-structured, or structured (e.g., JSON, XML, relational) representation encoding the operational state, resource availability, and functional capacity of the provider's infrastructure. The service capabilities 112 can be implemented as a dynamic, self-updating environment that continuously assesses and reports on the provider's current capabilities. The service capabilities 112 can be formatted in accordance with one or more standardized ontologies, which define semantic schemas and controlled vocabularies that enable machine interpretation and interoperability with entity agents from the entity domain 102, used by the entity agent(s) associated with the entity domain 102.
The entity agent interface 114 refers to a communication layer that facilitates interactions between the entity domain 102 and other components of the system environment 100. This entity agent interface 114 can operate as a gateway for entity agents 106 to exchange information, submit requests, and/or receive responses from external systems, including the service provider domain 104 and the smart contract layer 118. The provider agent interface 116 refers to a complementary communication layer operating within the service provider domain 104 and enables provider agents 108 to interact with the environment 100. This provider agent interface 116 enables provider agents 108 to submit capability information, respond to requests, and/or participate in smart contract executions. The entity agent interface 114 and/or the provider agent interface 116 can maintain a record of entity agents 106 and/or provider agent 108 interactions (e.g., for compliance or dispute resolution purposes).
The smart contract layer 118 refers to a set of self-executing programs deployed on a shared data structure 120. The shared data structure 120 refers to a distributed ledger or blockchain system that operates to facilitate data exchange and transaction recording between the entity domain 102 and the service provider domain 104 (e.g., their respective agents). The shared data structure 120 can be implemented using a consortium blockchain architecture, where participating entities maintain nodes that collectively validate and store transactions. The smart contract layer 118 may include modules for generating and updating data structures defining agreements (e.g., parent service agreements, which operate as contracts governing the communications between the entity and service provider or their respective agent(s)). Further methods of generating and updating smart contracts between AI agents are discussed with reference to
The internal governance module 122 within the entity domain 102 operates to manage internal policies, rules, and operational standards. The internal governance module 122 can use rule-based systems and/or machine learning models to dynamically update and enforce policies based on changing regulatory landscapes. The internal governance module 122 can automatically propose and/or execute updates to the entity rules repository 110. The internal governance module 122 can continuously monitor operational data of the entity domain and trigger automated responses to policy violations (e.g., remediation actions, alerts). The internal governance module 122 can maintain an audit trail using, for example, append-only data structures to ensure the immutability of governance-related actions and decisions. Additionally, the internal governance module 122 can continuously monitor operational data of the entity domain to determine one or more performance-based metrics (e.g., latency, accuracy) and use the determined metrics to assess the effectiveness of governance policies and identify areas for improvement.
The subcontractor network 124 within the service provider domain 104 refers to a hierarchical (e.g., graph-based) network of additional service providers or subcontractors that may be communicated with by the service provider agents 108 to fulfill specific aspects of the data structures defining agreements between the service provider agents 108 and the entity agents 106. The network may be implemented as a dynamic, graph-based structure that represents the relationships and dependencies between various subcontractor agents. Each node in the network data structure can correspond to a unique subcontractor agent, defined by digital identity keys and operational capability descriptors, while edges can encode communication channels, dependency hierarchies, or cascading workflow triggers. The subcontractor network 124 may use smart contracts to manage and enforce cascading compliance requirements across multiple tiers of subcontractor agents. In some implementations, the agent management platform can instantiate, monitor, and enforce smart contract terms programmatically and propagate compliance verification logic through the subcontractor graph.
The entity agent 202 refers to an agent representing the primary organization (e.g., entity) in the multi-tiered distributed system (e.g., the entity agents 106 in
The privacy-preserving protocol layer 204 is enabled to facilitate secure and confidential interactions between the various agents in the system. Upon receiving the requirement hash from the entity agent 202, this privacy-preserving protocol layer 204 generates zero-knowledge (ZK) commitments, or additional binding values (i.e., commitments that securely reference but do not expose values of the original dataset). The values can be linked to their source data via collision-resistant transformations and can include random secret values to prevent reverse engineering. The privacy-preserving protocol layer 204 enables computational routines (such as verification of agent capabilities) to be executed on encrypted or obfuscated data inputs, such that assertions about agent compliance or resource sufficiency can be verified by external parties without the underlying operational data being revealed.
The smart contract 206 refers to a self-executing program deployed on a distributed ledger or blockchain infrastructure. The smart contract 206 can implement zero-knowledge proof verification to validate compliance proofs submitted by the provider agent 208. The provider agent 208 refers to an agent representing a service provider or vendor in the multi-tiered system (e.g., the provider agents 108 in
In some implementations, the requirements query from the smart contract 206 includes cascading requirements. Cascading requirements refer to a hierarchical set of operational, regulatory, or contractual obligations that originate from a primary contracting entity and are enforced across every tier of participating service agents, ensuring that not only provider agent 208 but also any associated sub-agent 210 adheres to the same standards. When the provider agent 208 receives these upstream requirements, the provider agent 208 can determine which obligations are applicable to each sub-agent under its domain. For example, the provider agent 208 can generate a subset of requirements applicable to a sub-agent 210 by applying one or more field filters on the requirements. The provider agent 208 can transmit the resulting subset of requirements to the sub-agent 210.
The sub-agent 210 refers to an agent operating under the purview of the provider agent 208. Upon receiving cascaded requirements, the sub-agent 210 can verify its compliance by running self-diagnostic routines, analyzing historical performance data, or conducting near-real-time or real-time capability assessments. The sub-agent 210 generates its own artifacts, such as ZK commitments, which can be aggregated or composed with those of the provider agent 208. These artifacts can be relayed upstream to provider agent 208, who aggregates and/or verifies them prior to generating an overall compliance proof for submission to the contracting entity or smart contract layer. The smart contract 206 and/or the entity agent 202 can verify incoming proofs, generated and submitted by the provider agent 208 and/or the sub-agent 210, against predefined compliance conditions whose parameters correspond to the commitment artifacts transmitted earlier in the process. Upon successful validation of these proofs by the smart contract 206 and/or the entity agent 202, the smart contract 206 autonomously updates the shared ledger.
The entity agent 302 is instantiated as an autonomous or semiautonomous software module representing the primary organization's computational authority in a distributed, multi-tiered system. The entity agent 302 defines and/or maintains the parent rules 304, which operate to provide global requirement specifications for all subordinate nodes and agents throughout the system. These rules may cover technical standards, operational thresholds, security benchmarks, and compliance objectives (e.g., categories such as quality management, information security, and sustainability). In the illustrated example, the parent rules 304 include ISO 13001 quality management standards, SOC2 information security standards, and ESG (environmental, social, and governance) criteria. The parent rules 304 can be implemented as a dynamic, graph-based data structure to enable rule propagation and inheritance across multiple tiers. Each rule node can include metadata, conditional logic, and pointers to child rules for inheritance. If a parent rule is updated based on downstream feedback or external regulatory triggers, the change can be automatically distributed through the graph, thereby updating the rule subsets for each downstream provider agent or sub-agent. The parent rules 304 can include self-modifying code elements that enable automated updates based on feedback from lower tiers and/or external regulatory changes (e.g., automatically increasing security requirements if new risks are detected or downgrading thresholds upon regulatory relaxation).
The provider agents 306 (e.g., first provider agent 306A, second provider agent 306B) refer to second-tier (or lower-tier) agents representing service providers or vendors within the multi-tiered network. The provider agents 306 can interpret and implement particular subsets of the parent rules 304. Each provider agent can maintain its own digital compliance status 308 (e.g., first compliance status 308A, second compliance status 308B), which can be implemented as an updatable data object or transaction log that records the agent's current adherence to technical, operational, and contractual standards. Status updates can be computed via continuous assessments. For example, provider agents automatically ingest operational logs, telemetry data, and workflow outputs, then execute probabilistic, rule-based algorithms to determine and revise the real-time state of compliance. Status objects can generate and export cryptographically signed attestations or proofs, enabling compliance states to be independently verified by upstream agents or the system's smart contract layer.
The inherited rules 310 (e.g., first inherited rule 310A, second inherited rule 310B) refer to subsets of the parent rules 304 that are specifically associated with each provider agent and its associated sub-agents. For example, a rule inheritance engine (such as rule inheritance engine 318, detailed below) can parse the rule graph to identify and filter the specific requirements applicable to each agent's operational context, resource capabilities, and contractual obligations. The output is a machine-readable structure for each inherited rule (e.g., first inherited rule 310A on data privacy, second inherited rule 310B on quality metrics), with metadata tags linking each inherited rule back to its parent.
The sub-agents 312 (e.g., first sub-agent 312A, second sub-agent 312B, third sub-agent 312C, fourth sub-agent 312D) refer to agents operating under the purview of the provider agents. Each sub-agent 312 receives its assigned inherited rules 310, parses rule logic, and executes local verification routines to determine its own degree of compliance. The sub-agents 312 may form collaborative groups and execute multi-party computation protocols that enable the sub-agents 312 to jointly compute aggregate compliance metrics or execute shared compliance verification tasks. For example, the sub-agents 312 contribute encrypted data shares or partial proofs so that no single entity learns the complete operational data of another; yet, the system can still collectively determine the state of compliance across all collaborating sub-agents.
The smart contract verification layer 314 refers to a blockchain-based infrastructure that enables automated compliance verification and enforcement across all tiers of the system. The smart contract verification layer 314 hosts smart contracts that receive compliance data, proofs, and attestations from agents and execute deterministic verification routines encoded as program logic. The smart contract verification layer 314 can include a cascade verification engine 316, which propagates and verifies compliance requirements from the top tier down to the sub-agents. The cascade verification engine 316 can use directed acyclic graph (DAG) structures of verification dependencies to map which agents and which compliance tasks must be fulfilled before system-wide compliance is recognized. As compliance proofs are submitted, the engine traverses the DAG, validating each dependency and updating network state accordingly.
The rule inheritance engine 318 refers to a module that manages the dynamic generation and adaptation of inherited rules for each tier. The rule inheritance engine 318 accepts as input the parent rule graph and agent profile data, then applies inheritance policies and prioritization logic to output a customized set of inherited rules for every downstream agent. The rule inheritance engine 318 can continuously adapt rule assignments as new agents come online, as feedback or compliance reports are received, and/or as parent rules are updated, thereby ensuring all rule propagation is contextually accurate and up-to-date throughout the distributed network.
The compliance aggregation engine 320 can collect and synthesize compliance data streams from multiple provider agents and sub-agents. The compliance aggregation engine 320 can use weighted scoring to combine the disparate data into an overall compliance report or status object reflecting the state of the entire multi-agent, multi-tiered system. Results can be stored as machine-readable records.
The alert engine 322 refers to a near-real-time or real-time monitoring and notification system that detects and reports compliance violations or anomalies. The alert engine 322 can evaluate compliance data and system telemetry in near-real time or real time. When a violation or anomaly is detected, the alert engine 322 triggers automated notifications (such as digital alerts or on-chain events), and can include diagnostic data or remediation instructions. AIl alerts can be logged for auditability, and the alert engine's 322 thresholds and response behaviors can be dynamically adjustable based on evolving system states.
The parent service agreement module 404 refers to a software component managing the formation, adaptation, and enforcement of obligations between the entity agent and downstream provider or sub-agent entities within the multi-tiered system. The parent service agreement module 404 enables the generation of standardized templates that can be dynamically instantiated according to specific agent roles, protocol state, or service context. Upon initiation, historical interaction data and machine-readable business rules can be used to forecast negotiation outcomes or proactively suggest amendments to the contractual terms. The parent service agreement module 404 can manage Service Level Expectation (SLE) definitions by translating requirements within smart contracts or agreements into measurable technical parameters (e.g., latency thresholds, uptime guarantees) and encoding these as monitorable variables inside smart contracts. During operation, the parent service agreement module 404 can track resource allocation states, such as payment flows or token-based disbursements, and trigger automated, condition-based value transfers when predefined thresholds or service proofs are detected on-chain. For enforcement, the parent service agreement module 404 maintains digitally encoded penalty clauses, such that if a monitored parameter falls out of compliance, the parent service agreement module 404 programmatically invokes corresponding penalty routines (e.g., withholding or debiting digital assets) without manual intervention.
The compliance verification module 406 uses ZK proof validation to enable parties to verify compliance without revealing sensitive underlying data. For example, when an agent claims compliance with a contractual obligation, the compliance verification module 406 receives a proof package structured to conceal underlying sensitive data. The compliance verification module 406 can check contract execution against predefined compliance criteria, triggering alerts or actions when deviations are detected. Validation processes can be fully automated, on contract execution or at scheduled compliance checkpoints, and can initiate protocol-defined responses or alert routines if deviations or violations are detected. The compliance verification module 406 can conduct certification checks by interfacing with external systems to validate and update the certification status of involved parties. The compliance verification module 406 maintains an audit trail by recording compliance-related activities and verifications in a blockchain-based log.
The performance tracking module 408 monitors and evaluates the operational execution of the smart contracts. The performance tracking module 408 ingests event logs, telemetry streams, and data feeds from agent interfaces and external sensors, such as loT devices monitoring delivery or production metrics. The performance tracking module 408 parses contract terms to derive quantifiable performance indicators, translates these requirements into runtime queries, and then compares observed system behavior with expected benchmarks (e.g., SLA parameters, performance thresholds). As performance is measured against each benchmark, the performance tracking module 408 can automatically record trend data, detect anomalies or deviations, and/or update the compliance status signals for each involved party. The performance tracking module 408 can perform reputation updates, aggregating performance data to dynamically adjust trust or reliability indices/scores for involved parties (as described below in further detail with reference to
The privacy-preserving engine 410 enables parties to reveal only the required information on a need-to-know basis using role-based access controls to ensure that data and contract functionalities are accessible only to authorized entities based on their defined roles and permissions within the system. For example, each data transaction or contract function call is checked against an authenticated role and permission set. The privacy-preserving engine 410 enables operations to run directly on encrypted, tokenized, or obfuscated data structures, using techniques such as range evaluation, set membership approximation, or threshold validation, so that only the outcome (e.g., whether a number falls within a range or a status is affirmative) is revealed to the querying party rather than the underlying raw value. For example, the privacy-preserving engine 410 can use range proofs to demonstrate that a value falls within a specified range without disclosing the actual value, set membership verifications to prove inclusion in a set without revealing other set elements, and/or perform threshold checks to validate that certain conditions are met without exposing the specific data points involved in the evaluation.
The multi-party orchestration engine 412 uses a workflow engine to manage sequential approvals, ensuring that contract actions or state transitions occur in a predefined order and only when particular conditions are met. The multi-party orchestration engine 412 can use consensus rules that define how agreement is reached among multiple parties, which can include voting thresholds specifying the level of agreement required for different types of decisions, quorum requirements ensuring that a minimum number of participants are involved in decision-making processes, veto rights that allow designated parties to block certain actions under specified conditions, and so forth.
The smart contract lifecycle management engine 414 can manage a negotiation phase to facilitate the proposal of contract terms, respond to counter-offers through automated or semiautomated processes, and/or coordinate consensus among involved parties. The smart contract lifecycle management engine 414 tracks contract activation triggers, whether event-driven, time-based, or KPI-dependent, and monitors ongoing performance and compliance by ingesting near-real-time or real-time system data and executing rule-based state evaluation routines. The smart contract lifecycle management engine 414, for example, tracks KPIs, performs ongoing compliance checks, and executes adjustments to contract parameters or execution based on observed outcomes or changing conditions. In the settlement phase, the smart contract lifecycle management engine 414 manages resource (e.g., payment) releases by, for example, interfacing with digital payment systems. The smart contract lifecycle management engine 414 can manage dispute resolution processes that can include automated arbitration or integration with external dispute resolution systems. The smart contract lifecycle management engine 414 can further manage contract closure, ensuring all obligations are fulfilled, all parties are notified, and/or that the contract state is archived for future reference or audit purposes.
The reputation engine 502 aggregates, processes, and maintains digital trust scores for agents (including entity agents, provider agents, and/or sub-agents) operating within the multi-tiered distributed system. The reputation engine 502 can continuously collect performance data, operational logs, compliance outcomes, and dispute resolution records from multiple system modules and external sources via authenticated data feeds. Upon receipt, the engine stores raw and processed data in a distributed ledger, such as a blockchain. Computational routines can be periodically executed on this data to recalculate trust scores based on updated metrics or changing network context. The reputation engine 502 exposes transaction endpoints through which agents can submit new records, query current scores, or request aggregated reports.
The reputation module 504 defines the concrete parameters and operational metrics used to compute trust scores for each agent. The reputation module 504 can encode a set of scoring metrics, which may include contract fulfillment rate (quantifying on-time and complete delivery of agreed tasks), compliance verification success (measuring the agent's historical adherence to requirements and standards), quality metric achievement (scoring based on objective outcomes such as error rate, defect absence, or service consistency), and dispute resolution history (capturing the agent's track record for resolving conflicts within protocol parameters). Data for the metrics can be ingested as time-series logs. Metric weightings can be dynamically recalibrated by system administrators or in response to particular received data signals (e.g., changes in sub-agents, provider agents, entity agents, and so forth).
The entity agents 506 (e.g., first entity agent 506A, second entity agent 506B) refer to agents representing primary organizations within the network. The entity agents 506 can transmit digitally signed operational reports, submit event records for scoring, and/or query the reputation engine 502 for up-to-date trust scores on itself or third parties. Trust scores for entity agents 506, such as the illustrative 92/100 (for agent 506A) and 88/100 (for agent 506B), can be computed through the weighted aggregation of the metrics provided by the reputation module 504. The reputation engine 502 can reconfigure weights based on factors such as industry vertical, contract type, or network risk signals. Updated trust scores can be recorded as transaction entries to the distributed ledger.
The provider agents 508 (e.g., first provider agent 508A, second provider agent 508B) refer to agents representing service providers or vendors. The provider agents 508 collect and submit quantitative performance data, such as delivery punctuality, transaction accuracy, and compliance proof submissions, to the reputation engine 502, where the data is used to update their corresponding trust scores (e.g., provider agent 508A: 85/100, provider agent 508B: 91/100). Trust scores can directly influence automated classification into tiers, which can be referenced by smart contracts and the multi-party orchestration engine for determining workflow paths, verification requirements, and/or permission or settlement protocols. The provider agents can receive automated trust score updates at a conclusion of each transactional or monitoring cycle.
The sub-agents 510 (e.g., first sub-agent 510A, second sub-agent 510B) refer to third-tier AI systems operating under the purview of provider agents. The trust scores for sub-agents (e.g., 510A: 78/100, 510B: 82/100) can be determined using hierarchical aggregation logic, in which a sub-agent's performance data is evaluated both independently (via direct metrics) and in the context of its parent provider agent's reputation footprint. Thus, trust signals can be weighted or modified by the performance and standing of supervising agents.
The trust tier module 512 can categorize agents into predefined categories or “tiers” (e.g., Tier 1, Tier 2, Tier 3) according to configurable threshold criteria. For instance, Tier 1 may be reserved for trust scores in the 90-100 range, enabling privileges such as smart contract auto-approval, whereas lower tiers (e.g., Tier 2:75-89, Tier 3:0-74) may impose graduated verification, additional review steps, or additional due diligence requirements. The module can dynamically shift tier boundaries in response to environmental signals, such as systemic changes in network risk, new regulatory mandates, or altered transaction volume.
The distributed ledger 514 refers to the underlying blockchain infrastructure that stores and validates reputation-related transactions and/or trust scores. Smart contracts deployed on the distributed ledger 514 automate the execution of reputation calculations, tier assignments, and access control based on trust scores. Transactions, reputation updates, and tier assignments can be encoded as cryptographically hashed, append-only record objects, providing an immutable audit trail and non-repudiable evidence chain for all trust management activities. The distributed ledger 514 exposes API endpoints to modules across the platform for both data retrieval and transactional submission.
The environment 600 includes an entity agent 602, the agent interface 604, and a provider agent 606. The agent interface 604 operates as an intermediary layer between different autonomous agents and provides a standardized set of protocols and services for inter-agent communication. The agent interface 604 includes an authentication module 608, a communication module 610, a protocol module 612, a security module 614, an interoperability module 616, and a network 618.
The authentication module 608 can be used to verify the identity and credentials of agents attempting to interact with the system. The authentication module 608 can implement multi-factor authentication, which may combine various authentication methods such as digital certificates, biometric data, and time-based one-time passwords. When an agent initiates a session or requests access to a protected operation, it submits authentication credentials, which may include digital certificates, biometric vectors, or one-time digital tokens. The authentication module 608 can compile these credentials into an authentication request, which is then compared against verifiable credential records stored within a distributed identity management registry. By employing digital signatures and time-based proofs, the authentication module 608 can ensure both the origin and validity of submitted credentials. Role-based access assignments can be invoked. Once authenticated, each agent's unique identity can be mapped to a predefined role that encodes permissions for actions and data access within the system. The authentication module 608 can enable federated authentication, allowing agents validated in external domains with compatible protocols to gain time-bound or task-specific authorization, managed through temporary access tokens and enforced expiration logic. AIl authentication and authorization events can be written as immutable logs, providing a permanent and auditable transaction trail.
The privacy-preserving communication module 610 uses end-to-end encryption to ensure that data remains secure throughout its transmission. Each communication session can generate a negotiated encryption context, so that transmitted packets are only intelligible to authorized senders and recipients. For interactions requiring minimal disclosure, the privacy-preserving communication module 610 can extract only the verification statements from agent data, then package the statements as proofs or attestations, which are relayed to requesting agents or subsystems. AIl non-essential data (i.e., data that is not the verification statement) can be withheld from transmission. When agents establish that they possess (or comply with) certain knowledge, rules, or properties without exposing the details, the privacy-preserving communication module 610 can generate and validate proof objects that confirm properties without disseminating the protected data. In collaborative scenarios involving multiple agents, the privacy-preserving communication module 610 enables computation routines that allow joint calculation or protocol advancement based solely on exchanged, privacy-preserving proofs, so that no party gains access to another's underlying inputs.
The business-to-business (B2B) protocol module 612 manages the interactions and data exchanges specific to entity-to-entity operations. Data packets including proposals, negotiation terms, and/or approval workflows can be formatted into standardized, machine-readable documents. When an entity submits a proposal, the B2B protocol module 612 routes the proposal to the recipient agent, which can accept, modify, or reject the proposal. Approved terms can be automatically registered as transaction records on the platform. For ongoing relationships, the B2B protocol module 612 can perform periodic transmission and archiving of KPI data, service level reports, and incident or escalation notices.
The security module 614 implements threat detection operations to identify potential security threats in real time or near-real time. As data and interaction requests flow through the platform, the security module 614 continuously inspects all payloads, session states, and event logs for anomalous patterns, unauthorized signatures, or deviations from known baselines of trusted agent behaviors. Whenever an interaction originates from an agent, the security module 614 cross-references the agent's trust profile (as derived from an internal reputation system or external trust registry) to determine whether access constraints should be applied. Should a pattern indicative of attack or policy violation be detected, the security module 614 automatically generates alerts, initiates session quarantines, or triggers protocol-level blocks.
The interoperability module 616 coordinates communications and protocol conversions between the current platform and external or legacy systems. The interoperability module 616 maintains an event bus, which refers to an internal messaging infrastructure that receives, packages, and sequentially distributes events, data packets, or notifications to all relevant modules. Upon receiving data from outside systems, the interoperability module 616 adapts and transforms legacy or non-standard data formats to the agent management platform's schema, validates external signatures, and injects integration events onto the bus. In reverse, when outgoing communications target older or third-party systems, the interoperability module 616 translates structured records into compatible formats and manages delivery channels.
The blockchain network 618 refers to the underlying distributed ledger technology that enables immutable recording of transactions and interactions between agents. Each agent or organization may operate a node within this network, which receives transaction proposals, bundles them into blocks, and participates in decentralized validation cycles. Upon reaching protocol consensus, new blocks are appended to the shared ledger, and all network participants synchronize their local copies, ensuring a single, non-repudiable source of truth. Contract terms, permissions changes, dispute resolutions, and audit logs can be stored as structured records within the ledger. Smart contracts deployed to the blockchain automate the enforcement of agreement conditions. When conditions are satisfied or violated by agent actions, the contracts autonomously trigger or prevent subsequent operations (such as payment release or service continuation).
The governance engine 702 refers to a modular computational subsystem that can be implemented as a federated service using distributed microservices, or as a containerized software runtime within a cloud environment, and is configured to ingest, process, normalize, and propagate governance policies and requirements across the agent management platform. The governance engine 702 can receive inputs such as rule definitions, change proposals, compliance logs, contract state transitions, and external legal updates and transform these inputs into actionable governance outputs and audit artifacts consumed by downstream modules using, for example, rule-based mappings.
Within the governance engine 702, the rule management module 704 operates to generate and/or update machine-readable rule sets and governance logic. The rule management module 704 may provide user-facing APIs or agent-accessible endpoints for submission, validation, and approval of new or revised rules. When a new rule is added, the rule management module 704 can store the rules as persistent objects, which can be appended with metadata such as authorship, version sequence, timestamps, and digital signatures. Rule updates and deprecations can be similarly managed, with each event producing immutable change records. In some implementations, the rule management module 704 may be integrated with external policy sources or receive input from industry-specific domain ontologies.
The consensus module 706 mediates multi-party decision-making regarding policy adoptions, updates, or dispute adjudications. The consensus module 706 aggregates stakeholder votes, agent endorsements, or digital ballots according to predetermined voting schemas, such as majority, supermajority, or weighted-reputation methods, and continuously transforms submitted votes into single, deterministic consensus results. The consensus module 706 can validate submitted ballots for authenticity and eligibility, compute attested outcomes, and propagate consensus state changes to other system modules.
The conflict resolution module 708 detects, logs, and/or resolves policy or data conflicts that may arise from asynchronous actions, competing rule updates, or network-level adversarial behavior. The conflict resolution module 708 ingests divergent state records, contradictory rule changes, or evidence of operational anomaly and executes rule-based or adjudication workflows for alignment, rollback, or dispute mediation. Conflict resolution can include automated precedence logic, voting resolution by a select panel, or escalation to external arbiters (e.g., administrators). Each resolution operation can be logged with immutable event records, such as before-and-after state hashes.
The compliance module 710 validates agent and workflow conformance with approved rules, contract clauses, and regulatory requirements. The compliance module 710 receives compliance criteria from the rule management module, applies these checks to event streams and agent actions (such as transaction logs or resource allocation events), and/or records the outcome of each compliance assessment as a machine-readable verdict (e.g., pass/fail, out-of-bounds, or escalation-needed). The compliance module 710 can trigger automated enforcement actions, such as penalties, role adjustments, or notifications to other governance elements in the case of detected violations.
The entity rule repository 712 refers to a persistent, version-controlled data store for storing rules and policies authored by or otherwise associated with the primary organizational entity. The entity rule repository 712 may be implemented as a distributed, append-only ledger, a cloud-based document datastore, or a blockchain state channel backing and stores each rule entry with structured metadata and historical lineage to support provenance and audit tracing. Rule entries can be retrieved by authorized governance engine components to inform real-time compliance, update cascades, or versioned change reconciliations.
The industry standards repository 714 refers to a persistent storage and retrieval subsystem maintaining externally sourced or standardized policy objects, such as ISO standards, industry frameworks, or regulatory reference rulesets. The industry standards repository 714 can operate both as a near-real-time or real-time policy lookup (enabling the governance engine to map internal rules to external obligations) as well as a historical policy audit log (storing timestamped records of standards in effect at any given time). The industry standards repository 714 can receive inputs from third-party data feeds or manual data import. The provider requirements repository 716 refers to a structured data store identifying input requirements stipulated by providers, vendors, or external agents interacting with the platform. The provider requirements repository 716 ensures that provider-specific obligations, such as quality metrics, delivery guarantees, or compatibility thresholds, are encoded as structured objects, transformed to match internal taxonomies, and evaluated against respective agents for operational alignment. The legal framework repository 718 refers to a database that manages codified legal requirements and regulatory provisions applicable to the system and its agents. The legal framework repository 718 can be updated with jurisdictional and cross-jurisdictional legal texts, statutory obligations, and case law and operates to provide an authoritative reference during rule design, compliance checks, or dispute resolutions. Repository entries can be annotated to indicate applicable regions, effective dates, and citation sources.
Governance outputs 720 refer to the collection of artifacts generated by the governance engine 702 to identify system policies, compliance verdicts, and audit traces. Governance outputs 720 may include signed compliance certificates, change-of-state notifications, escalation alerts, conflict resolution records, and machine-readable configuration changes. Governance outputs 720 can be formatted for automated consumption by other system modules, downstream agents, or audit platforms. The distributed ledger 722 can validate and/or store the governance outputs 720 and can supply synchronous and/or asynchronous data access to system components and external auditors.
In operation 802, the agent management platform can obtain, using a first AI agent associated with a first entity (i.e., the primary organization), a machine-readable data structure (i.e., a requirements hash) that defines one or more operative boundaries for a second AI agent associated with a second entity (e.g., representing organizational guidelines, industry standards, or provider criteria). The machine-readable data structure can indicate permissible value ranges for model parameters (e.g., weight coefficients of a neural network) of a second AI agent (e.g., a provider agent), a data signal used in operation of the second AI agent (e.g., feature vectors, event traces), information related to a completed computational operation of the second AI agent (e.g., specifications of allowable outputs for completed computational operations such as a result set cardinality, data type conformance, or adherence to external regulatory normative), and the like. For example, the first AI agent can obtain the machine-readable data structure through an API call. If the operative boundary includes references to dynamic or externally sourced values (such as regulatory rules that change over time), the first AI agent fetches the current authoritative values from one or more predefined “trusted” sources.
In operation 804, the agent management platform can generate/determine a unique fixed reference value (e.g., reference data, or encrypted requirements query generated by privacy-preserving protocol layer) representing the machine-readable data structure by applying a first transformation operation set (e.g., a cryptographic hash function, a keyed hash function, or a deterministic encoding function) on the machine-readable data structure. To generate the unique fixed reference value representing the machine-readable data structure, the agent management platform can serialize the input structure, such as an object with nested fields and values, into a canonical byte sequence that captures its hierarchical arrangement and/or data content in a format agnostic to particular differences (such as field order or whitespace). The agent management platform can process the resulting byte sequence through a deterministic and/or fixed-size transformation operation by mapping the entire data structure, regardless of its original length or complexity, into a compact, uniquely identifying fixed-length output. Therefore, the agent management platform can generate the same output for any two semantically equivalent inputs, yet yield distinctly different results for even minor changes within the original data.
In operation 806, the agent management platform can transmit the unique fixed reference value to a multi-agent storage (e.g., storage structure such as a distributed ledger or blockchain). In some implementations, the storage structure is a distributed ledger. The verification record can be stored as a transaction on the distributed ledger. The multi-agent storage can include a memory structure accessible to multiple AI agents including the first AI agent and the second AI agent. The multi-agent storage can store the unique fixed reference value in association with an identifier, such as an identifier string (e.g., name or unique code), identifying the first AI agent. For example, before the transaction is transmitted, the agent management platform can digitally sign the transaction using a private cryptographic key of the submitting agent. The signed record can be broadcast to all nodes or participants in the storage structure, where the record can be checked and validated according to the agent management platform's rules for consensus. Once approved, the transaction can be permanently added to the storage structure.
In operation 808, the agent management platform can obtain/receive, via the multi-agent storage, a verification artifact (e.g., compliance proof) from the second AI agent that indicates an observed value (e.g., a commitment value) generated by applying a second transformation operation set (e.g., a different hash/binding function such as a a cryptographic hash function, a cryptographic commitment, or a zero-knowledge proof) on one or more portions of an internal operational dataset of the second AI agent corresponding to the one or more operative boundaries.
In some implementations, the second AI agent generates a transaction that includes the artifact (such as the hash or proof) and transmits the transaction to a blockchain or distributed ledger, where it is stored immutably and associated with the submitting second AI agent's unique identifier. In some implementations, the artifact is uploaded to a shared cloud repository or decentralized file system with an indexed reference stored on a ledger. The agent management platform can obtain the verification artifact by querying the multi-agent storage using the agent's identifier or other transaction metadata. The agent management platform can retrieve the artifact and/or associated metadata such as timestamps or digital signatures.
In operation 810, the agent management platform can determine, using the first AI agent, a verification status (e.g., compliance status) of the verification artifact by comparing the unique fixed reference value generated by the first AI agent with the observed value indicated by the verification artifact. In some implementations, the verification artifact includes a zero-knowledge proof generated by the second AI agent. The zero-knowledge proof can indicate that the internal operational dataset satisfies the one or more operative boundaries defined by the machine-readable data structure. The verification status can be determined using the zero-knowledge proof. For sequential approvals, the verification artifact can be routed to a plurality of AI agents within the first AI agent set in a predetermined sequence. Each AI agent in the predetermined sequence can generate an agent-specific verification status indicating satisfaction of the verification artifact with the one or more operative boundaries.
For example, if both values are cryptographic hashes, the agent management platform performs a direct byte-to-byte equality check, where a match confirms that the second agent's internal dataset satisfies the operative boundaries, resulting in a positive compliance (or verification) status, while a mismatch triggers a noncompliance flag. In some implementations, such as when the verification artifact includes a ZK proof, the first AI agent can operate as a verifier by using the original reference value and the ZK proof to validate that the second agent's internal dataset meets essential boundaries without revealing the data itself using cryptographic operations (specific to a ZK protocol chosen, such as verifying elliptic curve pairings for zk-SNARKs or checking inner product equations for Bulletproofs). If the ZK proof is valid, the compliance status indicates that the second AI agent is verified. In some implementations, if the verification status indicates that the observed value satisfies the unique fixed reference value, the AI agents can share portions of data. For example, the agent management platform autonomously executes, using the first AI agent, one or more computer-implemented actions to transmit one or more portions of a respective internal operational dataset to the second AI agent. In some implementations, the agent management platform can automatically approve/verify, using the first AI agent, a transaction associated with the second AI agent in response to the reputation score exceeding a predetermined threshold.
To implement reputation-based scoring, the agent management platform can determine, using the first AI agent, a reputation score for the second AI agent based on a plurality of verification artifacts associated with the second AI agent. The reputation score can be determined by a weighted average of one or more verification statuses indicating satisfaction of a respective observed value with a respective unique fixed reference value, a decay value applied on one or more verification statuses based on a time since last failure of satisfaction of the respective observed value with the respective unique fixed reference value, a penalty value applied on one or more verification statuses indicating a failure of satisfaction of the respective observed value with the respective unique fixed reference value, and so forth. For example, historical verification statuses for previously evaluated verification artifacts of agents can be standardized into a score or flag, such as corresponding numerical representations (e.g., 1 for pass, 0 for fail). The agent management platform can apply a time-based decay such that older scores are discounted relative to more recent events by multiplying scores by a decay factor that decreases as the age of each event increases. Failures can cause the agent management platform to apply penalty adjustments by subtracting predefined amounts to reduce the overall score. The agent management platform can assign, using the first AI agent set, a reputation score for the second AI agent set based on a plurality of verification artifacts associated with a third AI agent set (e.g., a sub-agent) associated with a third entity using the same or similar methods described above with reference to determining the reputation score for the second AI agent.
In some implementations, the agent management platform can assign, by the first AI agent, a probationary status to the second AI agent in response to the reputation score being within a predetermined range. The agent management platform can remove the probationary status from the second AI agent in response to the reputation score exceeding the predetermined range for a predetermined time period. For example, the reputation score can be compared against lower and upper numeric bounds specifically designated for probation. If the score meets this conditional range, a “probationary” flag or marker can be programmatically added to the status metadata of the second agent within an agent directory or profile registry by updating a structured status field and/or triggering additional controls such as restricted permissions or increased monitoring. While in the probationary state, the agent management platform can continuously or periodically reevaluate the agent's reputation score at periodic intervals or upon event triggers (such as new verification artifacts). If the score rises above the probationary threshold and/or remains there for a defined observation period the probationary flag can be removed.
To implement voting when determining consensus between a plurality of agents, the agent management platform can determine, using each AI agent of the first AI agent set, an agent-specific verification status for a particular verification artifact. The agent management platform can determine the verification status (e.g., a “yes,” “no,” or a numerical confidence score) based on a number of respective agent-specific verification statuses indicating satisfaction of the second AI agent set with the one or more operative boundaries exceeding a predetermined threshold (for example, requiring a simple majority, supermajority, or a minimum reputation-weighted score).
In operation 812, the agent management platform can autonomously generate a verification record (e.g., blockchain transaction) including a representation of the verification status for the verification artifact, a timestamp, a digital signature of the first AI agent, and/or an indication of the machine-readable data structure. In some implementations, the agent management platform transmits (e.g., via APIs or direct smart contract calls) the verification record to the multi-agent storage, wherein the verification record is stored in association with respective identifier strings identifying the first AI agent and the second AI agent. To notify an administrator/supervisor of noncompliance in cases where the verification status indicates that the observed value fails to satisfy the unique fixed reference value, the agent management platform can transmit, by the first AI agent, a notification message to a predetermined network address indicating the verification status for the verification artifact.
The agent management platform can generate, by the second AI agent, a second verification record including a representation of a second verification status for a third AI agent associated with a third entity. The agent management platform can store the second verification record in the multi-agent storage in association with respective identifier strings identifying the second AI agent and the third AI agent.
Example Implementations of Verifying AI Agents Using Kernel-Level EnforcementIn some implementations, the application layer 910 can represent the topmost execution environment of the multi-layer enforcement stack 900 where AI agents 912 (e.g., entity agents, provider agents, sub-agents, and/or the like) can execute computational functions including model inference operations, API interactions, data processing workflows, decision-making algorithms, and/or response generation operations. The AI agents 912 can operate as autonomous or semiautonomous software entities that process input data, evaluate system proposals, generate evidence, and effectuate state-modifying operations in accordance with respective objective functions. Each objective function can be encoded as a machine-readable specification that directs the agent's optimization target or operational policy, such as maximizing task accuracy, minimizing resource usage, or complying with specified operational constraints. The AI agents 912 can interact with the multi-layer enforcement stack 900 through standard system call interfaces (e.g., file operations, network socket operations, memory allocation operations, process management operations, and/or the like) that request services from lower layers of the stack. The application layer 910 can host one or more AI agents 912 that operate concurrently, each identified by a unique agent identifier that can serve as a lookup reference for enforcement policies and behavioral profiles maintained in lower layers of the multi-layer enforcement stack 900. The unique agent identifier can be implemented as an alphanumeric string, a cryptographic hash, or a process-level identifier assigned by the operating system scheduler, and can be mapped to corresponding entries in kernel-resident data structures (e.g., agent constraint maps 936) to enable per-agent policy enforcement and behavioral monitoring.
In some implementations, the model inference operations executed by the AI agents 912 within the application layer 910 can include forward propagation computations through neural network architectures, where input data is processed through successive layers of weighted connections and activation functions to generate output predictions or decisions. Model inference operations can consume computational resources including processor time for matrix multiplication and activation function evaluation, memory allocations for storing intermediate layer activations and model weight parameters, and storage operations for reading model checkpoint files or writing inference results. During model inference, the AI agents 912 can invoke system calls such as memory allocation requests (e.g., mmap, brk) to reserve computational resources for model execution, file system operations (e.g., open, read) to load model weights from persistent storage, and process management operations (e.g., clone, pthread_create) to spawn execution threads for parallel computation across multiple processor cores. Each of these system call invocations can be intercepted by the kernel layer 930 through the kernel event trace points 934, enabling the multi-layer enforcement stack 900 to monitor and evaluate model inference activities against the operative boundaries 914 without requiring modifications to the AI agent software or awareness by the agent of the monitoring infrastructure.
In some implementations, the API interactions performed by the AI agents 912 within the application layer 910 can include outbound network requests to external services and data sources, inbound response processing, and bidirectional communication with other agents or system components within the multi-tiered distributed system. The API interactions can be implemented through network socket operations (e.g., socket creation, bind, connect, send, receive, or the like) that establish connections to remote endpoints and transfer data packets containing structured request and response payloads. For example, an AI agent 912 can invoke a socket( ) system call to create a network communication endpoint, followed by a connect( ) system call to establish a connection to an external API server, and subsequently invoke send( ) and recv( ) system calls to transmit request data and receive response data. These network-related system calls can be intercepted by the kernel layer 930 through network-specific kernel event trace points 934 (e.g., XDP hooks, TC hooks, and/or socket-related system call hooks), enabling the multi-layer enforcement stack 900 to evaluate network communication patterns against per-agent network access policies stored in the agent constraint maps 936, such as permitted destination addresses, allowed port ranges, bandwidth limits, and protocol restrictions.
In some implementations, the data processing workflows executed by the AI agents 912 within the application layer 910 can include sequences of computational operations that transform, filter, aggregate, or otherwise manipulate datasets as part of the agent's assigned tasks. The data processing workflows can involve file system operations (e.g., open, read, write, close) for accessing training data, configuration files, or intermediate processing results stored on persistent storage devices 944. The data processing workflows can further involve memory allocation operations (e.g., mmap, brk, malloc) for reserving memory regions to hold data structures, buffers, and intermediate computation results during processing. Each file system operation and memory allocation operation initiated by an AI agent 912 can trigger corresponding kernel event trace points 934 within the kernel layer 930, where attached enforcement programs (e.g., eBPF programs) can evaluate the operation parameters against the agent's assigned execution constraints stored in the agent constraint maps 936. For example, a file read operation can be evaluated against per-agent file access policies that specify permitted file paths, allowable access modes (e.g., read-only versus read-write), and maximum data transfer sizes.
In some implementations, the data processing workflows can include cross-layer coordination operations where the kernel layer 930 and the application layer 910 interact to enforce operative boundaries that span multiple execution contexts. For example, when an AI agent 912 initiates a data processing workflow that involves reading training data from a file system path, transforming the data through a sequence of computational operations in memory, and transmitting processed results to an external service through a network socket, the kernel layer 930 can correlate the file read operation, the memory allocation operations, and the network send operation as components of a single workflow by tracking the sequence of system calls originating from the same agent identifier within a defined time window. The kernel layer 930 can maintain per-agent workflow state within the agent constraint maps 936, where each entry associates an agent identifier with a running record of recent system call sequences, cumulative resource consumption measurements, and cross-resource interaction patterns observed during the current workflow execution. This cross-layer state tracking enables the multi-layer enforcement stack 900 to enforce compound operative boundaries that cannot be evaluated from any single system call in isolation, such as a constraint specifying that an AI agent 912 is permitted to read training data from a designated file path only when the agent has not exceeded a cumulative network data transfer threshold within a rolling time window, where the file read operation and the network transfer threshold are evaluated jointly by an enforcement program that accesses both the file access history and the network usage counters stored in the agent constraint maps 936.
In some implementations, the application layer 910 and the kernel layer 930 can coordinate through feedback mechanisms where enforcement decisions made at the kernel level are communicated back to application-layer components to enable adaptive policy management. For example, when an enforcement program attached to a kernel event trace point 934 denies a network connection attempt by an AI agent 912 because the destination address falls outside the permitted network destination ranges stored in the agent constraint maps 936, the enforcement program can write a denial event record to a ring buffer data structure within the agent constraint maps 936, and a user space policy management process operating within the intermediate layer 920 can read the denial event from the ring buffer and evaluate whether the denied operation represents a legitimate operational requirement that warrants a policy update or an anomalous access attempt that warrants further investigation. This bidirectional communication between the kernel layer 930 and the application layer 910 through shared kernel-resident data structures enables the multi-layer enforcement stack 900 to implement closed-loop enforcement where kernel-level observations inform application-level policy decisions, and application-level policy updates are propagated back to the kernel layer 930 through atomic updates to the agent constraint maps 936 without requiring redeployment of enforcement programs or interruption of ongoing monitoring operations.
In some implementations, the multi-layer enforcement stack 900 can implement cross-layer attestation operations where the kernel layer 930 generates cryptographic attestation records that are consumed by application-layer verification processes to enable end-to-end compliance verification spanning both execution contexts. For example, when an AI agent 912 completes a computational workflow that involves multiple system call invocations across different resource types, the kernel layer 930 can generate a composite attestation record that aggregates the individual enforcement decisions for each intercepted system call into a single cryptographic digest, where the digest is computed by applying a cryptographic hash function over the concatenation of the individual attestation records generated during the workflow execution. The composite attestation record can be written to the ring buffer within the agent constraint maps 936 and subsequently read by an application-layer attestation aggregation process that packages the composite record into a verification artifact suitable for storage in the multi-agent storage (e.g., a distributed ledger or blockchain), where the verification artifact can be retrieved and validated by other AI agents operating within the multi-tiered distributed system to confirm that the originating agent's workflow execution satisfied the defined operative boundaries at every kernel-level interception point throughout the workflow.
In some implementations, the intermediate layer 920 can coordinate enforcement actions that require synchronized state between the application layer 910 and the kernel layer 930. For example, when the mapping controller 924 within the intermediate layer 920 receives a policy update that modifies the operative boundaries 914 for a particular AI agent 912, the mapping controller 924 can coordinate the propagation of the updated constraints to both the kernel-resident agent constraint maps 936 and the application-layer policy management components by first writing the updated constraint parameters to the agent constraint maps 936 through atomic memory operations, and then signaling the application-layer components through an event notification mechanism that the policy has been updated, such that both the kernel-level enforcement programs and the application-level monitoring processes reference consistent policy state when evaluating subsequent agent operations. This synchronized cross-layer policy propagation ensures that enforcement decisions made at the kernel level and compliance assessments performed at the application level are based on the same operative boundary definitions, preventing inconsistencies that could arise if kernel-level and application-level components referenced different versions of the policy during a transition period.
In some implementations, the data processing workflows executed by the AI agents 912 within the application layer 910 can include sequences of computational operations that transform, filter, aggregate, or otherwise manipulate datasets as part of the agent's assigned tasks. The data processing workflows can involve file system operations (e.g., open, read, write, close) for accessing training data, configuration files, or intermediate processing results stored on persistent storage devices 944. The data processing workflows can further involve memory allocation operations (e.g., mmap, brk, malloc) for reserving memory regions to hold data structures, buffers, and intermediate computation results during processing. Each file system operation and memory allocation operation initiated by an AI agent 912 can trigger corresponding kernel event trace points 934 within the kernel layer 930, where attached enforcement programs (e.g., eBPF programs) can evaluate the operation parameters against the agent's assigned execution constraints stored in the agent constraint maps 936. For example, a file read operation can be evaluated against per-agent file access policies that specify permitted file paths, allowable access modes (e.g., read-only versus read-write), and maximum data transfer sizes.
In some implementations, the system generates a kernel-level identity for each monitored AI agent. A kernel-level identity refers to a set of one or more identifiers that the operating system kernel assigns to or associates with a process at creation time, and that the kernel-resident monitoring programs use to attribute intercepted events to a specific AI agent. The kernel-level identity can include a process identifier, a thread identifier, a control group identifier, a namespace identifier, a container identifier, a binary measurement (e.g., a cryptographic hash of the agent's executable image), an agent registry identifier, and/or an attestation identifier.
In some implementations, the kernel-level identity can be assembled from process control block fields read by a monitoring program at a hook point associated with process or control group assignment, where the monitoring program extracts the relevant identifiers at the moment the agent process is created or assigned to a resource group. In some implementations, the identity is passed from a user-space controller to the kernel via a data structure write (e.g., a BPF map write), such that the user-space controller writes the agent identifier and associated metadata into a kernel-accessible data structure keyed by process identifier, and the kernel-resident monitoring programs read the entry on subsequent hook invocations to associate intercepted events with the agent. In some implementations, the identity is derived from process attribute introspection at agent spawn, where the user-space controller reads process attributes and writes the assembled identity into a kernel-accessible data structure before the agent begins executing operations.
The system can select among different network hook types based on the enforcement use case. Hook types that operate at the network interface driver layer before socket buffer allocation can, for example, be used for high-throughput inbound traffic filtering because packets can be dropped or redirected before the kernel allocates memory structures for packet processing. Hook types that operate after socket buffer allocation can be used to perform inbound and/or egress filtering with access to full packet metadata and socket context. In some implementations, the cross-layer management platform attaches monitoring programs at the driver layer for inbound traffic filtering and at the traffic control layer for egress enforcement. The cross-layer management platform can select data structure types (e.g., BPF map types) based on the access pattern and data structure requirements of each enforcement use case. For example, array-type data structures can be used to provide constant-time indexed access.
When transitioning an agent from one policy set to another (e.g., in response to a detected anomaly or a change in agent operational state), the user-space controller can perform a one or more updates to maintain atomicity. For example, the user-space controller can write the new policy rules (e.g., updated network rules, resource limits, or access control entries) into the target policy data structure. The user-space controller can update the agent-to-policy mapping entry using an atomic update operation that replaces the agent's current policy reference with the new policy reference. To prevent intermediate states in which the agent is mapped to a new policy before the policy rules are fully loaded, the cross-layer management platform can use a version counter stored alongside the policy entries, such that the monitoring programs check that the version counter in the agent-to-policy mapping matches the version counter in the policy rule entries before applying enforcement action(s).
The enforcement actions can further include rate limiting via a token bucket mechanism maintained in a kernel-accessible data structure, such that the monitoring program decrements a token counter on each operation and denies the operation when the counter reaches zero, thereby reducing throughput rather than applying a hard deny. The enforcement actions can further include redirecting traffic to a particular monitoring or logging endpoint, such that the monitoring program rewrites the packet destination rather than dropping the packet. In some implementations, the error code returned by the enforcement action is configurable per policy, such that the cross-layer management platform can return different error codes (e.g., operation not permitted, permission denied, or connection refused) depending on the policy configuration. In some implementations, the cross-layer management platform operates in a shadow enforcement mode in which the monitoring program evaluates each operation request against the policy and logs the enforcement decision but does not actually deny or restrict the operation. Shadow mode enables comparison of kernel-observed agent behavior against intended policy before enabling active enforcement, and can be toggled to active enforcement by updating a mode flag in a kernel-accessible data structure without reloading the monitoring programs.
In some implementations, the decision-making algorithms executed by the AI agents 912 within the application layer 910 can include rule-based evaluation routines, probabilistic inference computations, optimization solvers, and/or reinforcement learning policy evaluations that determine the agent's next action or output based on current input data and the agent's objective function. For example, a rule-based evaluation routine can evaluate a set of conditional expressions against incoming data fields to determine whether a particular workflow should be initiated, such as comparing a transaction amount against a threshold value to decide whether additional verification steps are required before proceeding. As another example, a probabilistic inference computation can apply Bayesian network evaluation to estimate the likelihood of a particular outcome given observed input features, such as computing a probability distribution over candidate actions based on historical performance data and current environmental conditions. In a further example, an optimization solver can execute a constrained optimization algorithm that identifies a resource allocation configuration satisfying multiple competing objectives, such as minimizing computational latency while maintaining a target accuracy level for model inference outputs. As yet another example, a reinforcement learning policy evaluation can process a current state representation through a trained policy network to select an action that maximizes expected cumulative reward, such as determining an optimal sequence of API calls to fulfill a multi-step task based on the agent's learned interaction patterns with external services.
The decision-making algorithms can generate state-modifying operations such as updates to internal or external datastores, outbound network requests to trigger downstream actions, or process management operations to spawn child processes for parallel task execution. For example, a state-modifying operation can include an AI agent 912 issuing a database write system call to update a record in an external datastore reflecting a compliance determination, where the write operation passes through the kernel event trace points 934 and can be evaluated against per-agent file access policies stored in the agent constraint maps 936 before the write proceeds. As a different example, an outbound network request can involve an AI agent 912 invoking a connect( ) system call followed by a send( ) system call to transmit a structured request payload to a downstream service endpoint, where the kernel layer 930 intercepts the network socket operations and evaluates the destination address and port against permitted network communication parameters defined in the operative boundaries 914. In an additional example, a process management operation can involve an AI agent 912 invoking a clone( ) system call to create a worker thread for parallel matrix computation during model inference, where the kernel event trace points 934 capture the process creation event and the enforcement programs verify that the agent's current thread count does not exceed the maximum concurrency limit specified in the agent constraint maps 936.
The response generation operations executed by the AI agents 912 can include natural language generation, structured data formatting, report compilation, and/or artifact creation operations that produce outputs responsive to received inputs or queries. For example, a natural language generation operation can involve an AI agent 912 performing a sequence of memory allocation operations to reserve buffer space for token generation, followed by iterative write operations to construct a textual response that addresses a received query, where each memory allocation request can be intercepted by the kernel layer 930 and evaluated against the agent's maximum memory allocation threshold defined in the operative boundaries 914. As another example, a structured data formatting operation can involve an AI agent 912 serializing inference results into a machine-readable format such as a JSON document, where the agent invokes file write system calls to persist the formatted output to a designated storage path, and the kernel event trace points 934 capture the file path and access mode to verify conformance with per-agent file access policies. In a further example, a report compilation operation can involve an AI agent 912 aggregating data from multiple internal data structures and generating a summary document, where the agent performs a series of file read operations to retrieve source data followed by file write operations to produce the compiled report, with each operation transparently monitored by enforcement programs attached to file operation hooks within the kernel layer 930. As an additional example, an artifact creation operation can involve an AI agent 912 generating a cryptographic proof or verification artifact by invoking cryptographic library functions that trigger system calls for memory allocation and computational resource usage, where the kernel layer 930 monitors the resource consumption patterns against the agent's assigned execution constraints to ensure the artifact creation process operates within the defined operative boundaries 914. Each of these operations can be transparently monitored by the kernel layer 930 through the kernel event trace points 934, with the enforcement programs evaluating the operations against the operative boundaries 914 propagated from the application layer 910 through the intermediate layer 920 to the kernel layer 930.
In some implementations, the standard system call interfaces through which the AI agents 912 interact with the multi-layer enforcement stack 900 can include file operations such as open( ), read( ), write( ), and close( ) that enable agents to access data stored in files, databases, or configuration repositories. For example, an AI agent 912 performing a model inference task can invoke an open( ) system call to access a model weight file stored on a persistent storage device 944, followed by a sequence of read( ) system calls to load the weight parameters into memory for forward propagation computations, where each of these file operation system calls can be intercepted by the kernel layer 930 at the kernel event trace points 934 and evaluated against per-agent file access policies stored in the agent constraint maps 936 before the file data is returned to the requesting agent process.
The standard system call interfaces can further include network socket operations such as socket( ), bind( ), connect( ), send( ), and recv( ) that enable agents to establish network connections and transfer data packets to external services or other agents. As an example, an AI agent 912 tasked with querying an external knowledge base can invoke a socket( ) system call to create a network communication endpoint, a connect( ) system call specifying the destination address and port of the external service, and a send( ) system call to transmit a structured query payload, where the kernel layer 930 can intercept each network-related system call and verify that the destination address falls within a set of permitted network endpoints defined in the operative boundaries 914 for that particular agent. The standard call interfaces can also include memory allocation operations such as mmap( ), brk( ), and munmap( ) that enable agents to reserve and release memory regions for computational tasks. To provide an example, an AI agent 912 executing a large language model inference operation can invoke mmap( ) to reserve a contiguous virtual memory region sufficient to hold the model's embedding tables and attention weight matrices, where the kernel event trace points 934 can capture the requested allocation size and compare it against a maximum memory allocation threshold specified in the agent constraint maps 936 for the requesting agent, thereby preventing any single agent from exhausting available system memory resources that other concurrently executing agents depend upon.
Additionally, the standard call interfaces can include process management operations such as fork( ), exec( ), and clone( ) that enable agents to create child processes or execution threads for parallel computation. By way of example, an AI agent 912 performing batch data processing can invoke clone( ) system calls to spawn multiple worker threads that execute matrix multiplication operations across separate processor cores, where the kernel layer 930 can monitor the cumulative number of threads created by the agent and enforce a maximum concurrency limit defined in the operative boundaries 914, such that thread creation requests exceeding the permitted threshold can be denied before the new thread begins execution.
These system call interfaces can represent the boundary between the application layer 910 and the lower layers of the multi-layer enforcement stack 900, and each system call invocation can serve as an interception point where the kernel layer 930 can evaluate the requested operation against the agent's assigned execution constraints before permitting the operation to proceed. Because the AI agents 912 interact with the multi-layer enforcement stack 900 through these standard system call interfaces, the monitoring and enforcement functionality can operate without requiring any modifications to the agent software, thereby enabling zero-modification deployment of the kernel-level monitoring infrastructure.
In some implementations, the application layer 910 can include operative boundaries 914 that define constraints, rules, and permissible operational parameters governing the behavior of the AI agents 912 within the multi-tiered distributed system. The operative boundaries 914 can be encoded as machine-readable data structures (e.g., JSON objects, XML documents, parameterized policy specifications, and/or the like) that specify permissible value ranges for model parameters, allowable data signals used in agent operations, specifications of allowable outputs for completed computational operations, and/or other constraints that can regulate agent interactions. For example, an operative boundary 914 can specify that the weight coefficients of a neural network model operated by a particular AI agent 912 can be constrained to a numerical range between negative one and positive one, such that any inference operation producing weight values outside this range can be flagged as non-compliant by the kernel layer 930. As another example, an operative boundary 914 can define a set of permissible network destination addresses to which an AI agent 912 can transmit outbound API requests, such that connection attempts to addresses not included in the permissible set can trigger enforcement actions at the kernel event trace points 934. In a further example, an operative boundary 914 can establish a maximum allowable memory allocation threshold for a given AI agent 912, where memory allocation requests exceeding the threshold can be intercepted and evaluated by enforcement programs attached to memory-related kernel event trace points 934 before the allocation proceeds. As yet another example, an operative boundary 914 can specify that output data generated by a completed computational operation of an AI agent 912 can conform to a particular data type schema or result set cardinality constraint, such that outputs deviating from the specified schema can be identified during post-execution attestation record generation within the kernel layer 930. The operative boundaries 914 can originate from an entity agent associated with a first entity and can define one or more constraints for a second AI agent associated with a second entity, thereby establishing operational parameters that can govern cross-entity interactions within the distributed system. For example, a compliance AI agent operating within an entity domain can generate operative boundaries 914 that restrict a provider AI agent in a service provider domain to accessing only designated file system paths when processing shared datasets, where the file path restrictions can be encoded as entries within the agent constraint maps 936 and enforced through file operation hooks at the kernel event trace points 934. The operative boundaries 914 can be propagated from the application layer 910 to the intermediate layer 920 and the kernel layer 930 through transformation operations that can convert high-level policy specifications into kernel-enforceable rules. As an example, the constraint compiler 922 within the intermediate layer 920 can receive an operative boundary 914 expressed as a conditional policy statement specifying that a particular AI agent 912 can be denied network socket creation privileges during a designated maintenance window, and the constraint compiler 922 can transform this high-level specification into compiled eBPF bytecode that attaches to socket-related system call hooks within the kernel layer 930 and evaluates the current system time against the maintenance window parameters stored in the agent constraint maps 936.
In some implementations, the application layer 910 can include verification artifacts 916 that represent compliance proofs generated by the AI agents 912 to demonstrate adherence to the operative boundaries 914. The verification artifacts 916 can include observed values (e.g., commitment values, hash outputs, zero-knowledge proofs, and/or the like) generated by applying transformation operation sets (e.g., cryptographic hash functions, keyed hash functions, deterministic encoding functions, zero-knowledge proof generation protocols, and/or the like) on one or more portions of an internal operational dataset of a respective AI agent 912 corresponding to the operative boundaries 914. For example, a provider AI agent 912 operating within a service provider domain can apply a SHA-256 cryptographic hash function on a subset of its model weight parameters to generate a fixed-length hash output that serves as a verification artifact 916, where the hash output can uniquely represent the current state of the model parameters without revealing the actual parameter values to other agents in the distributed system. As another example, an AI agent 912 can generate a zero-knowledge proof as a verification artifact 916 that demonstrates the agent's neural network inference outputs fall within a permissible numerical range specified by the operative boundaries 914, such that a verifying agent can confirm the output range compliance without receiving the actual inference results or the input data that produced them. In a further example, an AI agent 912 can apply a keyed hash-based message authentication code (HMAC) function on its network communication logs to produce a commitment value that cryptographically binds the agent to its reported communication patterns, enabling subsequent verification that the agent's network activity conformed to destination address restrictions defined in the operative boundaries 914.
The verification artifacts 916 can be transmitted to a multi-agent storage (e.g., a distributed ledger, a blockchain, a shared cloud repository, and/or the like) where the verification artifacts 916 can be stored in association with identifier strings identifying the respective AI agents 912 that generated the verification artifacts 916. To provide an example, the multi-agent storage can be implemented as a permissioned blockchain where each verification artifact 916 is packaged into a blockchain transaction that includes the generating agent's unique alphanumeric identifier, a timestamp from the kernel monotonic clock, and the cryptographic proof data, such that the transaction is validated by network consensus and appended to an immutable block accessible to all authorized participants in the multi-tiered distributed system. As a different example, the multi-agent storage can be implemented as a decentralized file system where the verification artifact 916 is stored as an encrypted data object with an indexed reference recorded on a distributed ledger, enabling the kernel-based management platform to retrieve the artifact by querying the ledger using the agent's identifier or transaction metadata associated with the storage operation. The verification artifacts 916 can enable cross-verification between AI agents 912 without requiring disclosure of the underlying operational data, thereby preserving operational data privacy across the multi-tiered distributed system. By way of example, a compliance AI agent 912 within an entity domain can retrieve a verification artifact 916 generated by a provider AI agent 912 from the multi-agent storage, verify the cryptographic proof contained within the artifact against the reference value representing the operative boundaries 914, and determine a verification status indicating whether the provider agent's operations satisfy the defined constraints, all without the compliance agent receiving or processing the provider agent's raw operational data such as training datasets, model architectures, or internal configuration parameters.
In some implementations, the application layer 910 can include verification records 918 that store the results of verification operations performed on the verification artifacts 916. The verification records 918 can include a representation of a verification status (e.g., a compliance status, a pass/fail indicator, a numerical confidence score, and/or the like) for a respective verification artifact 916, a timestamp indicating when the verification was performed, a digital signature of the AI agent 912 that performed the verification, and/or an indication of the operative boundaries 914 against which the verification was conducted. The verification records 918 can be generated by a verifying AI agent 912 (e.g., a second AI agent) that compares a reference value representing the operative boundaries 914 with the observed value indicated by the verification artifact 916. The verification records 918 can be stored within the multi-agent storage in association with respective identifier strings identifying both the verifying AI agent 912 and the verified AI agent 912, thereby providing an auditable record of compliance determinations across the multi-tiered distributed system.
In some implementations, the intermediate layer 920 can operate between the application layer 910 and the kernel layer 930 to facilitate policy enforcement, control provisioning, and coordination between application-level agent operations and kernel-level enforcement mechanisms. The intermediate layer 920 can bridge the semantic gap between high-level operative boundaries 914 defined at the application layer 910 and low-level atomic execution constraints enforced at the kernel layer 930. The intermediate layer 920 can include a constraint compiler 922, a mapping controller 924, and a runtime controller 926, each of which can perform a distinct function in transforming, distributing, and managing enforcement policies across the multi-layer enforcement stack 900.
In some implementations, the constraint compiler 922 can transform high-level operative boundaries 914 into kernel-enforceable rules by parsing the operative boundaries 914, extracting logical rules and conditions, and generating compiled bytecode (e.g., eBPF bytecode) suitable for kernel-level execution. The constraint compiler 922 can receive operative boundaries 914 expressed in a high-level policy language that supports logical operators (e.g., AND, OR, NOT, and/or the like), conditional expressions (e.g., IF-THEN-ELSE constructs), quantifiers (e.g., FORALL, EXISTS), and set membership operations. For example, an operative boundary 914 can be expressed as a conditional policy statement specifying that a particular AI agent 912 is denied network socket creation privileges when the agent's trust score falls below a designated threshold value, where the constraint compiler 922 can parse this conditional expression and generate corresponding bytecode that attaches to socket-related system call hooks within the kernel layer 930 and evaluates the agent's current trust score against the threshold parameter stored in the agent constraint maps 936. As another example, an operative boundary 914 can employ a set membership operation specifying that a provider AI agent 912 is permitted to access only file system paths belonging to a predefined allowable path set, where the constraint compiler 922 can translate the set membership check into a hash map lookup operation that verifies whether a requested file path exists within the permitted path entries maintained in a kernel-resident hash map data structure.
The constraint compiler 922 can analyze the policy rules to determine which kernel-resident data structures (e.g., hash maps, array maps, ring buffers, and/or the like) can be used for runtime evaluation, can generate lookup sequences that order logical expressions to reduce map accesses, and can insert helper function calls for context extraction and result computation. To provide an example, when an operative boundary 914 includes a compound logical expression combining a network destination restriction with a bandwidth consumption limit, the constraint compiler 922 can reorder the evaluation sequence such that the less computationally expensive network destination check using a hash map lookup is performed before the bandwidth consumption calculation, thereby avoiding the bandwidth computation entirely when the destination check fails. In a further example, the constraint compiler 922 can determine that an operative boundary 914 requiring per-agent memory allocation tracking is most efficiently served by a per-CPU hash map data structure that eliminates lock contention across multiple processor cores, whereas an operative boundary 914 requiring sequential audit event recording is most efficiently served by a ring buffer data structure that provides lock-free circular buffer semantics for streaming event data from kernel space to user space.
The constraint compiler 922 can output compiled bytecode using a compiler infrastructure (e.g., LLVM with a BPF backend) that can produce instructions from an instruction set architecture including registers (e.g., 64-bit registers), arithmetic operations, memory loads and stores, conditional branches, and function calls to approved kernel helper functions. As an example, the constraint compiler 922 can receive an operative boundary 914 specifying that an AI agent 912 is restricted to a maximum number of concurrent execution threads, and the constraint compiler 922 can generate bytecode instructions that load the agent's current thread count from a hash map entry using a register-based memory load operation, perform an arithmetic comparison against the maximum thread limit using a conditional branch instruction, and invoke an approved kernel helper function to return a denial error code when the thread count exceeds the permitted threshold.
In some implementations, the constraint compiler 922 can implement compiler-level instrumentation that inserts verification checkpoints into agent process code at compile time, where the verification checkpoints can interact with kernel-level programs (e.g., eBPF programs) to verify agent identity and authorization at function entry points, API calls, cross-tier communication initiations, and/or compliance verification state transitions. The compiler-level instrumentation can ensure that even if application-layer code is modified, the compiled binary can retain kernel-interaction points that enable monitoring and enforcement. By way of example, the constraint compiler 922 can insert a verification checkpoint at the entry point of a function responsible for initiating outbound API requests to external services, where the checkpoint triggers an eBPF program that validates the requesting agent's identity against an authorized agent registry stored in the agent constraint maps 936 before permitting the API request to proceed through the network stack. In yet another example, the constraint compiler 922 can insert a verification checkpoint at a cross-tier communication initiation point where a provider agent transmits cascading compliance requirements to a sub-agent, where the checkpoint triggers an eBPF program that verifies the provider agent holds a valid delegation credential and that the target sub-agent identifier corresponds to an authorized downstream entity within the multi-tiered distributed system hierarchy.
In some implementations, the cross-layer management platform performs signed binary verification and compile-time instrumentation at the compiler or build level. Compiler-level instrumentation refers to the insertion of monitoring code into an agent's executable during the compilation or linking process, such that the resulting binary contains embedded instrumentation stubs that emit telemetry data at runtime without requiring separate kernel-level hooks for function-level monitoring. The signed binary verification can be performed by a monitoring program attached to a security hook point that fires when the kernel prepares to execute a new binary. The monitoring program can read the binary's signature from an extended attribute or an appended signature block, retrieve the corresponding public key from a kernel-accessible data structure, and verify the signature before permitting execution. In some implementations, if the signature is absent, malformed, or does not match the binary's content, the monitoring program denies the execution request by returning an error code before the kernel loads the binary into memory.
The compile-time instrumentation stubs can emit telemetry data using a kernel-to-user-space streaming mechanism (e.g., a ring buffer), such that each instrumented function writes a structured event record (such as a function identifier, entry/exit timestamp, and/or resource consumption measurement) into the stream that the user-space collector reads. The compile-time instrumentation can be synchronized with the kernel-level telemetry pipeline by sharing a common event schema and/or common agent identifier, such that user-space analysis components can correlate function-level telemetry from instrumentation stubs with system-call-level telemetry from kernel hook points.
In some implementations, the constraint compiler 922 can generate signed manifests of allowed system calls and/or resources that the kernel-layer rules can enforce. For example, the constraint compiler 922 can produce a signed manifest for a compliance AI agent that enumerates the specific system calls the agent is authorized to invoke, such as file read operations for accessing audit log repositories and network send operations for transmitting compliance reports, where the manifest is cryptographically signed using a private key associated with the policy manager and stored in the agent constraint maps 936 for runtime verification by enforcement programs attached to system call hooks. The constraint compiler 922 can operate using one or more compilation approaches (e.g., an LLVM pass, a static compiler, a JIT compiler, and/or the like). As one example, the constraint compiler 922 can employ a static compilation approach to generate bytecode ahead of agent deployment, enabling the kernel-level verifier 932 to perform comprehensive safety analysis on the compiled programs before the agent begins operations. As a different example, the constraint compiler 922 can employ a JIT compilation approach to dynamically generate native machine code from bytecode at program load time, enabling architecture-specific optimizations that can reduce enforcement program execution latency on the target processor platform.
In some implementations, the mapping controller 924 can manage the correlation between agent identifiers and corresponding execution constraints by maintaining data structures that associate each AI agent 912 with a respective set of kernel-enforceable rules derived from the operative boundaries 914. For example, the mapping controller 924 can maintain a hash table data structure in which each entry maps a unique agent identifier string to a corresponding policy rule set that specifies permitted system call types, allowable network destination ranges, maximum memory allocation thresholds, and authorized file system paths for that particular agent. The mapping controller 924 can receive compiled enforcement programs from the constraint compiler 922 and can distribute the enforcement programs to the kernel layer 930 for attachment to kernel hook points. As an example, when the constraint compiler 922 produces compiled eBPF bytecode implementing a network access restriction policy for a provider AI agent, the mapping controller 924 can route the compiled program to a network-related kernel hook point such as an XDP hook or a socket system call hook within the kernel layer 930, and can update the corresponding agent constraint map entry to reflect the newly deployed enforcement program.
The mapping controller 924 can assign agent identifiers to process boundaries and/or container boundaries and can provision policy updates to kernel-resident data structures (e.g., eBPF maps) that store per-agent execution constraints. To provide an example, the mapping controller 924 can associate a compliance AI agent operating within an entity domain with a specific Linux process identifier and a corresponding control group identifier, such that eBPF enforcement programs attached to system call hooks can extract the process identifier from the execution context and perform a lookup against the agent constraint maps 936 to retrieve the applicable execution constraints for that particular agent. In a different example, when multiple AI agents execute within separate container instances on a shared host, the mapping controller 924 can assign each container a distinct namespace identifier and can populate the agent constraint maps 936 with per-namespace policy entries that enable the kernel layer 930 to differentiate enforcement rules based on the originating container of each intercepted system call.
In some implementations, the mapping controller 924 can implement controller-level policies for container orchestration platforms (e.g., Kubernetes admission controllers, resource controllers, schedulers, service mesh configurations, and/or the like) that can validate agent process specifications (e.g., pod specifications) against compliance policies before deployment. By way of example, the mapping controller 924 can operate as a validating admission webhook within a Kubernetes cluster, such that when a new agent deployment manifest is submitted to the cluster API server, the mapping controller 924 intercepts the deployment request and evaluates the pod specification against compliance requirements including resource limit declarations, security context configurations, and network policy annotations before permitting the deployment to proceed. As a further example, the mapping controller 924 can enforce that an agent deployment includes a monitoring component (e.g., an eBPF monitoring sidecar) and conforms to tier-specific network policies, such that a sub-agent classified within a lower trust tier is required to include an eBPF sidecar container that attaches additional monitoring hooks to the agent's network stack, while a provider agent classified within a higher trust tier may be deployed with a reduced monitoring configuration based on its established behavioral history.
The mapping controller 924 can synchronize controller-level policies with kernel-level enforcement programs through shared data structures (e.g., eBPF maps), thereby enabling consistent enforcement across the intermediate layer 920 and the kernel layer 930. For example, when the mapping controller 924 updates a network access policy at the orchestration platform level to restrict an agent's outbound connections to a designated set of API endpoints, the mapping controller 924 can simultaneously write the updated destination address allowlist to an eBPF hash map within the kernel layer 930, such that both the orchestration-level network policy and the kernel-level eBPF enforcement program reference the same set of permitted destinations without requiring separate manual configuration of each enforcement layer. The mapping controller 924 can map agent identifiers to control groups (e.g., cgroups) and/or namespaces and can distribute kernel policy updates to the kernel layer 930 in response to changes in agent registration, deployment configurations, and/or compliance policy specifications. As one example, when a new provider AI agent registers with the agent management platform and receives an assigned resource quota specifying maximum CPU time and memory allocation limits, the mapping controller 924 can create a corresponding cgroup hierarchy for the agent process, populate the cgroup resource limits with the assigned quota values, and write the agent identifier and associated execution constraints to the agent constraint maps 936 within the kernel layer 930, thereby enabling the eBPF enforcement programs to begin monitoring and enforcing the quota from the moment the agent commences operations. In yet another example, when an administrator modifies a compliance policy specification to add a new file access restriction for a particular class of sub-agents, the mapping controller 924 can propagate the updated restriction to all kernel-resident agent constraint map entries associated with sub-agents of that class, without requiring redeployment of the affected agent processes or reloading of the eBPF enforcement programs.
In some implementations, the runtime controller 926 can coordinate runtime operations and can manage interactions between the application layer 910 and the kernel layer 930 by configuring operating system service parameters, security policy modules, and namespace isolation settings that can complement kernel-level enforcement. The runtime controller 926 can implement operating system service configurations including service manager unit file constraints (e.g., systemd unit file constraints) that can limit agent process capabilities, mandatory access control (MAC) policy modules (e.g., SELinux policy modules, AppArmor policy modules, and/or the like) that can restrict agent process access to compliance-sensitive resources, namespace isolation configurations that can enforce tier boundaries at the operating system level, and control group (e.g., cgroup) configurations that can limit resource consumption (e.g., CPU, memory, I/O bandwidth, and/or the like) by agent processes. For example, a systemd unit file constraint can specify that a provider AI agent 912 operating within a service provider domain is restricted to a maximum number of open file descriptors and is denied the ability to acquire new system capabilities beyond those assigned at process initialization, such that the runtime controller 926 writes these constraints into the unit file configuration before the agent process launches and the operating system enforces the constraints throughout the agent's execution lifecycle. As another example, a SELinux policy module can define a security context for a compliance AI agent 912 that permits read access to audit log directories and network send operations to designated compliance reporting endpoints while denying write access to system configuration directories and execution of binary files outside a designated application directory, where the runtime controller 926 loads the policy module into the MAC enforcement subsystem and the operating system kernel evaluates every file access and network operation against the policy before permitting the operation to proceed. In a further example, a cgroup configuration can establish that a particular sub-agent operating within a lower trust tier is allocated a maximum percentage of available CPU time and a maximum memory allocation threshold, where the runtime controller 926 creates the cgroup hierarchy and populates the resource limit parameters before the agent process begins execution, thereby preventing the sub-agent from consuming computational resources beyond its assigned quota regardless of the agent's internal resource management behavior.
In some implementations, the runtime controller 926 can implement container runtime security profiles including seccomp-BPF profiles that can restrict system calls available to containerized agent processes, thereby preventing agents from making system calls that could circumvent compliance monitoring. To provide an example, a seccomp-BPF profile for a data processing AI agent 912 can enumerate a permitted set of system calls that includes file read and write operations, memory allocation operations, and network socket operations required for the agent's designated tasks, while denying system calls related to kernel module loading, raw network socket creation, and process tracing operations that could be exploited to bypass kernel-level enforcement programs attached to the kernel event trace points 934. As a different example, a seccomp-BPF profile for an entity AI agent 912 performing procurement analysis can permit database query operations and outbound HTTPS connections to approved vendor API endpoints while blocking system calls associated with mounting file systems, modifying network interface configurations, and accessing hardware device files, where the runtime controller 926 applies the profile at container initialization such that the operating system rejects any blocked system call invocation with an error code before the call reaches the kernel subsystem where the requested operation would be processed.
The runtime controller 926 can further implement OCI (Open Container Initiative) runtime hooks that can trigger loading of enforcement programs (e.g., eBPF programs) when agent containers start, thereby enabling monitoring to be active before an agent begins operations. By way of example, when a new provider AI agent container is instantiated within the multi-tiered distributed system, an OCI prestart hook configured by the runtime controller 926 can invoke a loader process that compiles and attaches eBPF enforcement programs to system call hooks, network stack hooks, and file operation hooks associated with the container's namespace, such that the kernel-level monitoring infrastructure is fully operational and intercepting system calls before the agent process within the container executes its first instruction. In yet another example, an OCI poststop hook can trigger the runtime controller 926 to detach eBPF programs and archive the accumulated behavioral data and attestation records associated with the terminated agent container, ensuring that monitoring resources are reclaimed and provenance records are preserved for subsequent audit or verification operations.
The runtime controller 926 can coordinate audit log integration and provenance chain operations between the operating system service layer and the kernel layer 930, and the runtime controller 926 can detect container escape attempts, unauthorized privilege escalation, and/or attempts to access host resources outside a container's permitted scope. As one example, the runtime controller 926 can monitor namespace boundary crossings by correlating process namespace identifiers captured by eBPF programs at the kernel event trace points 934 with the expected namespace assignments maintained in the agent constraint maps 936, where a mismatch between the observed namespace identifier and the expected namespace for a given agent identifier can indicate a container escape attempt and can trigger an automated quarantine response that restricts the agent's network access and system call permissions. As an additional example, the runtime controller 926 can detect unauthorized privilege escalation by monitoring for changes in process credential structures captured through kernel event trace points 934 attached to credential modification system calls, where an agent process that transitions from a non-privileged user identifier to a privileged user identifier without a corresponding authorization entry in the agent constraint maps 936 can be flagged as a security violation and can trigger generation of a cryptographic attestation record documenting the escalation attempt along with transmission of an alert notification to a designated security operations endpoint.
In some implementations, the kernel layer 930 can provide kernel-level enforcement mechanisms for agent verification and can operate within the privileged execution environment of the operating system where kernel code and device drivers execute with unrestricted access to system resources (e.g., physical memory, hardware devices, system control structures, and/or the like). The kernel layer 930 can include a kernel-level verifier 932, kernel event trace points 934, agent constraint maps 936, and attestation records 938. The kernel layer 930 can execute enforcement programs (e.g., eBPF programs) that attach to kernel hook points and can evaluate agent operations against defined constraints before the operations are permitted to execute, thereby providing pre-execution enforcement that can block non-compliant operations at the kernel level before any substantive operation processing occurs. Because user space processes cannot directly access or modify kernel memory where the enforcement programs execute, the kernel layer 930 can reduce tampering possibilities and can provide enforcement that cannot be circumvented by compromised application-layer code.
In some implementations, the kernel-level verifier 932 can validate enforcement programs (e.g., eBPF programs) against defined safety constraints before allowing the enforcement programs to execute in kernel space. The kernel-level verifier 932 can perform static analysis on incoming enforcement program bytecode to ensure the programs satisfy safety constraints including bounded execution time (e.g., verifying that all loops have compile-time bounded iteration counts), valid memory access patterns (e.g., verifying that no arbitrary memory dereferences occur), type safety (e.g., tracking register state to ensure type consistency across all execution paths), termination guarantees (e.g., proving that programs complete in finite time), and helper function validation (e.g., ensuring that programs call approved kernel functions). The kernel-level verifier 932 can construct a directed graph of all possible execution paths through a program and can verify that all paths lead to program termination without infinite loops or unbounded recursion. The kernel-level verifier 932 can examine memory operations to ensure the operations access authorized memory regions while preventing access to protected kernel memory or arbitrary memory locations. The kernel-level verifier 932 can reject programs that fail safety analysis, thereby preventing both accidental errors and intentional exploits from compromising kernel integrity. The kernel-level verifier 932 can communicate bidirectionally with the kernel event trace points 934 and the agent constraint maps 936 to ensure that verified programs are attached to appropriate hook points and that constraint data is stored and accessible for policy evaluation during agent operations.
In some implementations, the kernel event trace points 934 can represent hook points within the kernel where enforcement programs can be attached to intercept and evaluate agent operations. The kernel event trace points 934 can include one or more of: breakpoints, kernel probes (e.g., kprobes, kretprobes), Linux Security Module (LSM) hooks (e.g., security_file_permission( ), security_inode_permission( ), security_file_mmap( ), and/or the like), express Data Path (XDP) hooks that can intercept network packets at a network interface level before kernel network stack processing, traffic control (TC) hooks that can filter network traffic at the network stack level, tracepoints that can provide static kernel instrumentation interfaces, and/or control group (cgroup) hooks that can enforce per-container and per-process-group controls. The kernel event trace points 934 can enable monitoring of atomic operations and system calls initiated by the AI agents 912, including file operations (e.g., open, read, write, close), network operations (e.g., socket creation, bind, connect, send, receive), process creation operations (e.g., fork, exec, clone), permission modification operations (e.g., chmod, setuid), and/or memory allocation operations (e.g., mmap, brk). When an AI agent 912 initiates a system call, the kernel event trace points 934 can invoke the attached enforcement programs, passing event context including process identifiers, credentials, and operation-specific parameters to the enforcement programs for evaluation against the agent constraint maps 936.
In some implementations, the agent constraint maps 936 can be kernel-resident data structures that store the correlation between agent identifiers and atomic execution constraints within kernel-managed memory regions. The agent constraint maps 936 can include hash maps (e.g., BPF_MAP_TYPE_HASH) that can provide O(1) lookup complexity for associating agent identifiers with corresponding policy rules, array maps (e.g., BPF_MAP_TYPE_ARRAY) that can store indexed configuration parameters and per-agent metadata, ring buffers (e.g., BPF_MAP_TYPE_RINGBUF) that can provide lock-free circular buffer mechanisms for streaming event data from kernel space to user space, per-CPU maps (e.g., BPF_MAP_TYPE_PERCPU_HASH) that can eliminate lock contention by maintaining separate per-CPU instances for concurrent updates, and/or longest prefix match (LPM) trie maps for network policy enforcement. The agent constraint maps 936 can store policy rules derived from the operative boundaries 914, per-agent state information, allow/deny thresholds, behavioral baselines, and/or other enforcement parameters. The agent constraint maps 936 can reside in kernel memory space that can be directly accessed by enforcement programs without context switching to user space, and the agent constraint maps 936 can be updated at runtime through atomic memory operations without requiring enforcement program reloads or system reboots. The agent constraint maps 936 can enable communication between multiple enforcement programs and between kernel space and user space through shared memory regions that can be accessible from both execution contexts via memory-mapped interfaces.
In some implementations, the attestation records 938 can capture cryptographic records of compliance status for agent operations evaluated by the kernel layer 930. The attestation records 938 can include a cryptographic hash (e.g., a SHA-256 digest) of the event data, a timestamp (e.g., with nanosecond precision from a kernel monotonic clock and/or hardware performance counters), an agent identifier, an operation type, a compliance decision (e.g., allow or deny), and/or a digital signature binding the attestation data to a specific time period and system state. For example, when an enforcement program attached to a file operation hook evaluates a provider AI agent's attempt to read a model weight file from a restricted storage path, the attestation record 938 can include a SHA-256 hash computed over the concatenation of the agent's unique alphanumeric identifier, the intercepted file path string, the access mode flags, and the enforcement decision outcome, along with a nanosecond-precision timestamp captured from the kernel monotonic clock at the moment the compliance evaluation completed.
The attestation records 938 can be generated within the kernel layer 930 by enforcement programs that apply cryptographic hash functions on event records and compliance evaluation results, and the attestation records 938 can be stored in the agent constraint maps 936 (e.g., in ring buffer maps) for transfer to user space components and/or to the multi-agent storage (e.g., a distributed ledger). As an example, an enforcement program attached to a network socket hook can generate an attestation record 938 when a compliance AI agent initiates an outbound connection request, where the enforcement program computes a cryptographic hash over the destination address, port number, protocol type, and the compliance decision, and writes the resulting attestation record 938 to a ring buffer map within the agent constraint maps 936, from which a user space daemon process periodically reads and forwards the record to a blockchain network for immutable storage.
The attestation records 938 can provide tamper-evident records of enforcement decisions because modification to the underlying data can cause hash verification failures that indicate tampering attempts. To provide an example, if an unauthorized process attempts to alter the compliance decision field within a stored attestation record 938 from a deny status to an allow status, the recomputed hash of the modified record can produce a different digest value than the original hash stored alongside the record, and a verification process comparing the two hash values can detect the discrepancy and flag the record as compromised.
The attestation records 938 can be chained such that each attestation record 938 includes a hash of the preceding attestation record 938, creating a cryptographic dependency chain that can enable detection of any unauthorized modifications to historical records. In one example, a sequence of attestation records 938 generated for a sub-agent operating within a lower trust tier can form a hash chain where the first attestation record 938 includes a genesis hash value, the second attestation record 938 includes a hash computed over the first attestation record's data concatenated with the second record's event data, and each subsequent attestation record 938 incorporates the hash of its immediate predecessor, such that altering any single record in the chain can invalidate the hash references stored in all subsequent records and can be detected by a chain verification process that traverses the sequence and recomputes each hash for comparison against the stored values. As a further example, when multiple AI agents within the application layer 910 generate concurrent operations that produce attestation records 938, the kernel layer 930 can maintain separate hash chains per agent identifier within the agent constraint maps 936, where each agent's chain independently links its attestation records 938 through sequential hash dependencies, thereby enabling per-agent audit trail verification without requiring cross-agent chain synchronization during the hash computation process.
In some implementations, the hardware layer 940 can represent the physical resources accessible by the multi-layer enforcement stack 900 and can provide the underlying computational infrastructure upon which the kernel layer 930, the intermediate layer 920, and the application layer 910 operate. The hardware layer 940 can include allocable memory 942, storage devices 944, network interfaces 946, and cryptographic resources 948. The hardware layer 940 can provide the physical substrate for all enforcement operations, and the kernel layer 930 can intercept all access attempts by the AI agents 912 to the hardware layer 940 resources, evaluating the access attempts against the operative boundaries 914 before permitting operations to proceed.
In some implementations, the allocable memory 942 can include physical memory regions and virtual memory address spaces available for allocation to processes executing within the multi-layer enforcement stack 900. The allocable memory 942 can include user space memory regions allocated to AI agent 912 processes, kernel space memory regions used by enforcement programs and agent constraint maps 936, and shared memory regions used for communication between kernel space and user space (e.g., ring buffer memory mappings). The kernel layer 930 can monitor memory allocation operations (e.g., kmalloc, vmalloc, mmap, brk, and/or the like) initiated by the AI agents 912 and can enforce memory access constraints defined in the agent constraint maps 936, thereby preventing unauthorized access to restricted memory regions (e.g., kernel address space regions).
In some implementations, the storage devices 944 can include persistent data storage resources (e.g., hard disk drives, solid-state drives, network-attached storage, and/or the like) accessible by the AI agents 912 for reading training data, writing model outputs, storing configuration files, and/or performing other file system operations. The kernel layer 930 can intercept file system operations (e.g., open, read, write, close) directed to the storage devices 944 through kernel event trace points 934 attached to file operation system calls, and the kernel layer 930 can evaluate file access requests against per-agent file access policies stored in the agent constraint maps 936.
In some implementations, the network interfaces 946 can include network communication hardware and software interfaces (e.g., network interface cards, wireless adapters, virtual network interfaces, and/or the like) that can enable the AI agents 912 to establish network connections, transmit data packets, and receive data packets. The kernel layer 930 can intercept network operations through XDP hooks that can process packets at the network interface driver level, TC hooks that can filter traffic at the network stack level, and/or system call hooks that can monitor socket-related operations (e.g., socket creation, bind, connect, send, receive), and the kernel layer 930 can enforce network access policies (e.g., permitted destination addresses, allowed port ranges, bandwidth limits, and/or the like) stored in the agent constraint maps 936.
In some implementations, the cryptographic resources 948 can include hardware and software components that support cryptographic operations for verification and attestation functions within the multi-layer enforcement stack 900. The cryptographic resources 948 can include hardware acceleration modules (e.g., processors with specialized instructions for cryptographic operations such as SHA extensions and/or AES-NI instructions), trusted platform modules (TPMs), secure enclaves, and/or software cryptographic libraries. The cryptographic resources 948 can be used by the kernel layer 930 to generate cryptographic hashes for the attestation records 938, compute digital signatures for audit events, and/or perform other cryptographic operations that can support the verification and attestation functions of the multi-layer enforcement stack 900. The cryptographic resources 948 can store private keys used for signing attestation records 938 in hardware-protected storage that can prevent unauthorized access by user space processes.
In some implementations, the multi-layer enforcement stack 900 can implement vertical enforcement controls that span multiple system layers between the application layer 910 and the hardware layer 940, enabling the kernel-based management platform to intercept and evaluate AI agent operations at processing levels that are neither purely application-level nor purely kernel-internal. These vertical controls can operate at an operating system service level, a controller or orchestrator level, a compiler or build level, and a device driver or hardware interface level, each of which provides enforcement capabilities that complement the kernel event trace points 934 and the agent constraint maps 936 described above.
At the operating system service level, one or more enforcement programs (e.g., eBPF programs) can attach to control group (cgroup) related hook points to enforce per-agent resource quotas including CPU quotas, memory ceilings, and input/output bandwidth limits. The cgroup hook points can fire when an AI agent 912 process or container requests resource allocations that are governed by the cgroup to which the agent is assigned. The enforcement programs can compare the requested allocation against per-agent limits stored in a hash map or other kernel-resident data structure within the agent constraint maps 936. When a requested allocation exceeds the per-agent limit, the enforcement program can deny the allocation by returning an error code before the operating system kernel processes the request, thereby preventing any single AI agent 912 from consuming computational resources beyond its assigned quota. Additionally, one or more enforcement programs can monitor inter-process communication (IPC) channels such as pipes, shared-memory regions, message queues, and Unix-domain sockets used by the AI agents 912 to communicate with peer processes. The IPC monitoring programs can attach to kernel functions that mediate data transfer between processes and can capture the process identifiers of the sending and receiving processes, the size of the data transferred, and the type of IPC channel used. The enforcement programs can evaluate the captured IPC parameters against per-agent communication policies stored in the agent constraint maps 936 to detect and prevent unauthorized data exchange between agent processes that are not authorized to communicate with one another. Furthermore, namespace transitions and container runtime operations can be monitored by attaching enforcement programs to hook points associated with namespace operations. These hook points can fire when a process attempts to change its namespace membership or create a new namespace. The enforcement programs can evaluate the attempted transition against a policy stored in the agent constraint maps 936 to detect and prevent unauthorized namespace escape, unauthorized container reconfiguration, and unauthorized process migration that could allow an AI agent 912 to circumvent the isolation boundaries established by the intermediate layer 920.
At the controller or orchestrator level, one or more enforcement programs (e.g., eBPF programs) can attach to network hook points such as XDP hooks or TC hooks to intercept, inspect, and validate messages exchanged between an AI agent 912 and an orchestration controller. The orchestration controller can include a cluster management server (e.g., a Kubernetes API server), a scheduler, a service mesh controller, and the like. When an AI agent 912 transmits a message to the orchestration controller, such as a request to modify a deployment, scale a workload, or alter a network policy, the enforcement program attached to the network hook point can inspect the message payload and compare the requested operation against a set of permitted operations stored in a policy map within the agent constraint maps 936. Policy enforcement at this level can prevent the AI agent 912 from requesting unauthorized resources, modifying deployment configurations beyond its permitted scope, or altering network policies that govern communication between agents in the multi-tiered distributed system, by dropping the message at the network hook point before it reaches the orchestration controller. In some implementations, controller-to-agent communications can be monitored in the reverse direction to detect unauthorized instruction injection, where an enforcement program attached to a network hook point inspects inbound messages directed to an AI agent 912 from the orchestration controller and validates that the messages carry valid signatures or conform to expected message formats stored in the agent constraint maps 936, thereby preventing compromised or spoofed controller messages from directing an agent to perform unauthorized operations.
At the compiler or build level, one or more enforcement programs (e.g., eBPF programs) can monitor execution of compiler, linker, and build tool processes associated with generation of AI agent binaries, plugins, and policy artifacts. The enforcement programs can attach to hook points such as tracepoints or LSM hooks that fire when the compiler or build tool process performs system calls including process creation (e.g., fork, exec), file reads and writes, environment variable access, and outbound network access. The kernel-based management platform can evaluate these events against a build process policy stored in the agent constraint maps 936 to detect anomalous build behavior such as a compiler process making unexpected outbound network connections, which may indicate a supply chain compromise, or a build tool writing to file paths outside the designated build output directory. In some implementations, the kernel-based management platform can intercept execution events for a newly compiled agent binary and verify a binary measurement or signature before permitting execution. The binary measurement can be a cryptographic hash of the compiled binary's content, and the enforcement program can compare the binary measurement against an allowlist of approved measurements stored in a hash map within the agent constraint maps 936. If the binary measurement does not match any entry in the allowlist, the enforcement program can deny the execution call by returning an error code, thereby preventing unverified or tampered agent binaries from executing within the multi-layer enforcement stack 900. Additionally, dynamic linker operations can be monitored by attaching enforcement programs to hook points that fire when the dynamic linker (e.g., Id.so) loads shared libraries into an agent process address space. The enforcement programs can capture the file path and cryptographic hash of each shared library loaded by the dynamic linker and can compare the library identity against a permissioned library list stored in the agent constraint maps 936, thereby preventing an AI agent 912 from loading unauthorized shared libraries that could introduce malicious functionality or bypass enforcement mechanisms.
At the device driver or hardware interface level, one or more enforcement programs (e.g., eBPF programs) can monitor device I/O operations associated with an AI agent 912. The enforcement programs can attach to hook points such as tracepoints or kprobes within the kernel's device driver subsystem that fire when the AI agent's process issues I/O operations to a device file or device driver interface. The monitored device interfaces can include GPUs, accelerator devices, robotics interfaces, sensors, storage controllers, network interfaces, and other hardware components accessible through the device driver layer. The kernel-based management platform can evaluate each device I/O operation against a device access policy stored in the agent constraint maps 936 that specifies which device files, command codes, and memory mapping ranges are permitted for each AI agent 912. Enforcement at this level can prevent unauthorized hardware commands, such as an AI agent 912 issuing GPU commands outside its allocated compute partition, unauthorized memory transfers, such as an AI agent 912 mapping device memory regions that belong to another agent's workload, and unauthorized data exfiltration, such as an AI agent 912 writing sensitive data to a removable storage device. In some implementations, the enforcement programs can intercept device-specific ioctl commands by attaching to the kernel function that dispatches ioctl requests to device drivers, where the enforcement program can extract the command code and argument data from the ioctl invocation and compare the command against a per-agent allowlist of permitted device commands stored in the agent constraint maps 936, denying the ioctl request by returning an error code when the command is not present in the allowlist. This device driver level enforcement can ensure that AI agents 912 operating within the multi-layer enforcement stack 900 cannot bypass higher-level enforcement mechanisms by directly interacting with hardware interfaces through device driver pathways that would otherwise be invisible to application-layer or operating system service-layer monitoring.
In some implementations, the application environment 1002 represents the user space execution context within the architecture 1000 where policy specification, parsing, compilation, and loading operations occur prior to kernel-level deployment. The application environment 1002 can operate as the unprivileged execution domain in which administrative processes, governance systems, and policy management components execute with standard user-level privileges, interfacing with the kernel environment 1004 through controlled system call interfaces to transfer compiled enforcement programs and associated policy data into kernel memory regions for runtime enforcement. The application environment 1002 can include operative boundaries 914 and a policy manager 1010, each of which performs a distinct function in the transformation pipeline from high-level policy specifications to kernel-resident enforcement programs.
In some implementations, the operative boundaries 914 define the permissible operational parameters and constraints for AI agents 912 operating within the multi-tiered distributed system, as described in further detail with reference to
In some implementations, the operative boundaries 914 can specify a plurality of constraint categories that collectively define the permissible operational envelope for each AI agent 912. For example, the operative boundaries 914 can specify permissible value ranges for model parameters, such as constraining the weight coefficients of a neural network model operated by a particular AI agent 912 to a numerical range between negative one and positive one, such that any inference operation producing weight values outside this range can be flagged as non-compliant by the kernel environment 1004. The operative boundaries 914 can further specify allowable data signals used in agent operations, including feature vectors, event traces, and input data formats that the AI agent 912 is authorized to process during its computational tasks. The operative boundaries 914 can also define specifications of allowable outputs for completed computational operations, such as result set cardinality constraints, data type conformance requirements, or adherence to external regulatory normatives that govern the format and content of agent-generated outputs.
In some implementations, the operative boundaries 914 can define permitted network destination addresses to which an AI agent 912 is authorized to transmit outbound API requests, such that connection attempts to addresses not included in the permissible set can trigger enforcement actions at the kernel event trace points 934 within the kernel environment 1004. For example, a network access operative boundary 914 can enumerate a set of approved IP address ranges and port numbers that a provider AI agent is permitted to contact when querying external knowledge bases or transmitting compliance reports, where the permitted destination set can be encoded as a list of CIDR notation address blocks and associated port ranges within the machine-readable data structure. The operative boundaries 914 can further establish maximum allowable memory allocation thresholds for a given AI agent 912, where memory allocation requests exceeding the threshold can be intercepted and evaluated by enforcement programs attached to memory-related kernel event trace points 934 before the allocation proceeds, thereby preventing any single agent from exhausting available system memory resources that other concurrently executing agents depend upon. Additionally, the operative boundaries 914 can specify authorized file system paths that define the directories and files an AI agent 912 is permitted to access, such that file operation requests targeting paths outside the authorized set can be denied by enforcement programs attached to file operation hooks within the kernel environment 1004.
In some implementations, the operative boundaries 914 can originate from an entity agent associated with a first entity and can define one or more constraints for a second AI agent associated with a second entity, thereby establishing the operational parameters that govern cross-entity interactions within the distributed system. For example, a compliance AI agent operating within an entity domain can generate operative boundaries 914 that restrict a provider AI agent in a service provider domain to accessing only designated file system paths when processing shared datasets, where the file path restrictions can be encoded as entries within the agent constraint maps 936 and enforced through file operation hooks at the kernel event trace points 934. The cross-entity nature of the operative boundaries 914 can enable a first entity to define and propagate operational constraints to agents operating within a second entity's domain without requiring direct access to or modification of the second entity's agent software, because the constraints are enforced at the kernel level through the enforcement programs deployed within the kernel environment 1004. The operative boundaries 914 can be versioned and timestamped within the machine-readable data structures, enabling the architecture 1000 to track policy evolution over time and to reference specific versions of operative boundaries during compliance verification and audit operations.
In some implementations, the operative boundaries 914 can be propagated from the application environment 1002 to the kernel environment 1004 through transformation operations performed by the policy manager 1010. The policy manager 1010 can receive the operative boundaries 914 and convert the high-level policy specifications into kernel-enforceable rules by parsing the machine-readable data structures, extracting the logical rules and conditions contained therein, and generating compiled bytecode (e.g., eBPF bytecode) suitable for execution within the kernel environment 1004. This propagation process can preserve the logical meaning of the original operative boundaries 914 while producing kernel-compatible enforcement code that can be attached to the kernel event trace points 934 and evaluated against the agent constraint maps 936 during runtime agent operations. For example, the policy manager 1010 can receive an operative boundary 914 expressed as a conditional policy statement specifying that a particular AI agent 912 is denied network socket creation privileges during a designated maintenance window, and the policy manager 1010 can transform this high-level specification into compiled eBPF bytecode that attaches to socket-related system call hooks within the kernel environment 1004 and evaluates the current system time against the maintenance window parameters stored in the agent constraint maps 936.
In some implementations, the policy manager 1010 can operate within the application environment 1002 and can be responsible for receiving the operative boundaries 914 (e.g., high-level policy specifications expressed in a policy language that supports logical operators, conditional expressions, quantifiers, set membership operations, and/or the like) and transforming the operative boundaries 914 into kernel-executable enforcement programs (e.g., compiled eBPF bytecode) suitable for deployment within the kernel environment 1004. The policy manager 1010 can receive operative boundaries 914 from administrators, governance systems (e.g., the multi-tiered governance engine 702 described with reference to
In some implementations, the policy manager 1010 can be implemented as a user space daemon process or service that maintains persistent execution within the application environment 1002 and exposes one or more interfaces (e.g., API endpoints, configuration file watchers, message queue consumers, and/or the like) through which operative boundaries 914 can be submitted for processing. The policy manager 1010 can maintain an internal state that tracks currently deployed enforcement programs, their associated attachment points within the kernel environment 1004, and the operative boundaries 914 from which the enforcement programs were derived. This internal state can be represented as a data structure (e.g., an in-memory hash table, a persistent database, and/or the like) that maps policy identifiers to corresponding enforcement program metadata including program file descriptors, attachment hook identifiers, compilation timestamps, and version numbers. The policy manager 1010 can support concurrent processing of multiple operative boundaries 914 received from different sources, serializing the transformation operations through a processing queue that ensures each operative boundary 914 is fully compiled, verified, and deployed before subsequent operative boundaries 914 are processed, thereby preventing partial or inconsistent enforcement program deployments within the kernel environment 1004.
In some implementations, the operative boundaries 914 received by the policy manager 1010 can be expressed in a high-level policy language that supports a plurality of language constructs enabling precise specification of enforcement rules. The logical operators supported by the policy language can include conjunction operators (e.g., AND) that require multiple conditions to be simultaneously satisfied, disjunction operators (e.g., OR) that require at least one condition among a set to be satisfied, and negation operators (e.g., NOT) that invert the truth value of a condition. The conditional expressions supported by the policy language can include IF-THEN-ELSE constructs that specify different enforcement actions depending on whether a particular condition evaluates to true or false, enabling branching enforcement logic that can apply different constraints based on runtime context such as agent identity, operation type, or resource target. The quantifiers supported by the policy language can include universal quantifiers (e.g., FORALL) that specify a constraint applies to every element within a defined set, and existential quantifiers (e.g., EXISTS) that specify a constraint is satisfied when at least one element within a defined set meets a particular condition. The set membership operations supported by the policy language can include inclusion operators (e.g., IN) that evaluate whether a value belongs to a predefined set of permitted values, and exclusion operators (e.g., NOT IN) that evaluate whether a value falls outside a predefined set of prohibited values. For example, an operative boundary 914 can be expressed as a compound policy statement specifying that a particular AI agent 912 is denied file write access when the target file path is NOT IN a set of authorized output directories AND the current system time is within a designated restricted period, where the policy manager 1010 can parse this compound expression and decompose it into constituent logical elements for subsequent compilation into kernel-executable bytecode.
In some implementations, the transformation pipeline performed by the policy manager 1010 can proceed through a sequence of stages that progressively convert the operative boundaries 914 from high-level policy specifications into kernel-resident enforcement programs. In a first stage, the constraint parser 1012 can receive the operative boundaries 914 and perform lexical analysis, syntactic parsing, and semantic validation to produce a structured intermediate representation (e.g., an abstract syntax tree, a directed acyclic graph, and/or the like) that captures the hierarchical structure and logical relationships of the policy rules. In a second stage, the bytecode compiler 1014 can receive the structured intermediate representation from the constraint parser 1012 and generate source code (e.g., eBPF C source code) that implements the enforcement logic, followed by compilation of the source code into bytecode (e.g., eBPF bytecode) using a compiler infrastructure (e.g., LLVM with a BPF backend, clang with a BPF target, and/or the like). In a third stage, the kernel interface 1016 can receive the compiled bytecode from the bytecode compiler 1014 and transfer the bytecode to the kernel environment 1004 through system call interfaces (e.g., the bpf( ) system call), where the kernel-level verifier 932 can validate the bytecode against safety constraints before permitting kernel space execution. Upon successful verification, the enforcement program can be attached to the appropriate kernel event trace points 934 and can begin intercepting and evaluating AI agent operations against the agent constraint maps 936. The transformation pipeline can preserve the logical meaning of the original operative boundaries 914 at each stage, such that the enforcement behavior of the deployed kernel-resident program corresponds to the policy intent expressed in the high-level specification.
In some implementations, the constraint parser 1012 within the policy manager 1010 can perform the initial processing of the operative boundaries 914 by tokenizing the policy specification into language elements (e.g., keywords, operators, identifiers, literal values, delimiters, and/or the like) and constructing one or more data structures (e.g., abstract syntax trees, directed acyclic graphs, and/or the like) that represent the hierarchical structure of policy statements, control flow constructs, data declarations, and logical expressions. The constraint parser 1012 can perform semantic validation on the parsed operative boundaries 914 to verify that the policy specifications are internally consistent, that referenced agent identifiers correspond to registered agents within the agent management platform, and that specified resource identifiers (e.g., file paths, network addresses, memory regions) conform to expected formats. The constraint parser 1012 can further analyze the parsed policy rules to determine which kernel-resident data structures (e.g., hash maps, array maps, ring buffers, per-CPU maps, longest prefix match trie maps, and/or the like) can be used for runtime evaluation within the kernel environment 1004, and can annotate the parsed representation with data structure selection metadata that informs subsequent compilation stages performed by the bytecode compiler 1014. For example, the constraint parser 1012 can receive an operative boundary 914 specifying that a provider AI agent is permitted to access only file system paths belonging to a predefined allowable path set, and the constraint parser 1012 can decompose this specification into a set membership check operation, identify that a hash map data structure can provide efficient O(1) lookup for the path membership evaluation, and annotate the intermediate representation with this data structure selection for use by the bytecode compiler 1014.
In some implementations, the bytecode compiler 1014 within the policy manager 1010 can receive the parsed and validated intermediate representation from the constraint parser 1012 and transform the intermediate representation into compiled bytecode (e.g., eBPF bytecode) suitable for kernel-level execution within the kernel environment 1004. The bytecode compiler 1014 can generate source code (e.g., eBPF C source code) from the parsed policy representation by mapping each logical rule and condition into corresponding program instructions that implement the enforcement logic. The bytecode compiler 1014 can analyze the parsed policy rules to determine which BPF map types (e.g., hash maps for O(1) policy rule lookup, array maps for indexed configuration parameters, ring buffers for lock-free event streaming, per-CPU maps for concurrent updates without lock contention, and/or the like) can be used for runtime evaluation, and can generate map definition code that declares the data structures with appropriate key types, value types, and maximum entry counts. The bytecode compiler 1014 can generate lookup sequences that order logical expressions to reduce map accesses, such that less computationally expensive checks (e.g., hash map lookups) can be performed before more computationally expensive calculations, thereby avoiding the more expensive computation entirely when the less expensive check fails. The bytecode compiler 1014 can compile the generated source code to bytecode using a compiler infrastructure (e.g., LLVM with a BPF backend) that produces instructions from an instruction set architecture including registers (e.g., 64-bit registers), arithmetic operations, memory loads and stores, conditional branches, and function calls to approved kernel helper functions. For example, the bytecode compiler 1014 can receive an operative boundary 914 specifying that an AI agent 912 is restricted to a maximum number of concurrent execution threads, and the bytecode compiler 1014 can generate bytecode instructions that load the agent's current thread count from a hash map entry using a register-based memory load operation, perform an arithmetic comparison against the maximum thread limit using a conditional branch instruction, and invoke an approved kernel helper function to return a denial error code when the thread count exceeds the permitted threshold.
In some implementations, the bytecode compiler 1014 can implement code generation optimizations that reduce enforcement program execution latency and resource consumption within the kernel environment 1004. For example, the bytecode compiler 1014 can determine that an operative boundary 914 requiring per-agent memory allocation tracking is served by a per-CPU hash map data structure (e.g., BPF_MAP_TYPE_PERCPU_HASH) that eliminates lock contention across multiple processor cores, whereas an operative boundary 914 requiring sequential audit event recording is served by a ring buffer data structure (e.g., BPF_MAP_TYPE_RINGBUF) that provides lock-free circular buffer semantics for streaming event data from kernel space to user space. The bytecode compiler 1014 can further generate code that extracts agent identifiers from execution context structures (e.g., process identifiers, control group identifiers, namespace identifiers, and/or the like) and performs map lookups to retrieve per-agent execution constraints stored in the agent constraint maps 936, thereby enabling per-agent policy enforcement within a shared kernel execution environment.
In some implementations, the bytecode compiler 1014 can leverage industrial code generation techniques that address the specialized requirements of kernel-level program synthesis. The generation of eBPF enforcement programs from operative boundaries 914 can present challenges that differ from conventional software code generation, because the correctness of kernel-level enforcement code can only be established by executing the code within the same privileged kernel execution environment where the code will ultimately be deployed. Unlike application-layer code that operates within user space abstractions, the eBPF bytecode produced by the bytecode compiler 1014 can be subject to strict resource constraints including bounded execution time requirements, restricted memory access patterns, and limited instruction counts that are enforced by the kernel-level verifier 932 before the code is permitted to execute within the kernel environment 1004. These constraints can impose requirements on the code generation process that fundamentally differ from conventional software engineering, because the generated code must satisfy specialized language semantics governing eBPF instruction set operations, strict timing and resource constraints that prevent enforcement programs from blocking kernel operations, reasoning about hardware behavior including processor register states and memory access patterns, and rigorous verification methodologies implemented by the kernel-level verifier 932 that perform static analysis to prove program safety properties before permitting kernel space execution.
In some implementations, the specialized language semantics governing eBPF instruction set operations that the bytecode compiler 1014 can satisfy during code generation can encompass the syntactic and semantic rules that define valid eBPF program constructs within the kernel execution environment 1004. The eBPF instruction set architecture can include a fixed set of 64-bit registers (e.g., registers designated R0 through R10), where each register can hold scalar values, pointers to authorized memory regions, or return values from helper function invocations. The bytecode compiler 1014 can generate code that adheres to the register usage conventions of the eBPF instruction set, such as ensuring that register R0 is used to hold the return value of the enforcement program and that register R10 serves as a read-only frame pointer to the program's stack memory. The specialized language semantics can further govern the types of instructions that the bytecode compiler 1014 is permitted to emit, including arithmetic operations (e.g., addition, subtraction, multiplication, division, modulo) that operate on register operands, memory load and store instructions that transfer data between registers and authorized memory regions, conditional branch instructions that alter control flow based on register comparisons, and function call instructions that invoke approved kernel helper functions. The bytecode compiler 1014 can ensure that the generated instruction sequences conform to these semantic rules by maintaining an internal representation of the eBPF instruction set constraints during the compilation process, such that each emitted instruction is validated against the permitted instruction formats and operand types before being included in the compiled bytecode output.
In some implementations, the strict timing and resource constraints that the bytecode compiler 1014 can satisfy during code generation can ensure that the resulting enforcement programs do not block kernel operations or degrade system responsiveness for concurrently executing AI agents 912. The bounded execution time requirement can mandate that every enforcement program generated by the bytecode compiler 1014 completes its execution within a finite and determinable number of instructions, such that the kernel-level verifier 932 can statically prove that the program terminates before permitting kernel space execution. To satisfy this requirement, the bytecode compiler 1014 can generate loop constructs that use explicit compile-time upper bound constants as iteration limits rather than data-dependent termination conditions, because the kernel-level verifier 932 performs static analysis to confirm that each loop has a determinable iteration count. For example, when an operative boundary 914 requires iterating over entries in an agent constraint map to evaluate a set membership condition, the bytecode compiler 1014 can emit a bounded loop that iterates from zero to a fixed maximum entry count constant, with an early exit condition when the target entry is found, rather than generating a while-loop that terminates based on a runtime-computed value that the verifier cannot statically resolve. The limited instruction count constraint can further require that the total number of instructions in the generated enforcement program does not exceed a maximum instruction limit (e.g., one million verified instructions), such that the bytecode compiler 1014 can structure the generated code to minimize instruction count by consolidating redundant operations, eliminating dead code paths, and reusing intermediate computation results stored in registers rather than performing redundant memory accesses or map lookups.
In some implementations, the reasoning about hardware behavior that the bytecode compiler 1014 can perform during code generation can encompass the management of processor register states and memory access patterns within the generated enforcement programs. The bytecode compiler 1014 can track the state of each eBPF register throughout the generated instruction sequence, maintaining an internal model of which registers hold scalar values, which registers hold pointers to specific memory regions (e.g., stack memory, map value entries, context structures), and which registers are uninitialized. This register state tracking can enable the bytecode compiler 1014 to generate code that avoids type confusion errors, such as dereferencing a register that holds a scalar value as though it were a pointer, or performing arithmetic on a register that holds a context pointer without appropriate bounds checking. For memory access patterns, the bytecode compiler 1014 can generate code that accesses only authorized memory regions, including the program's allocated stack space (e.g., a fixed-size region such as 512 bytes), map data structures accessed through approved helper functions (e.g., bpf_map_lookup_elem( ), and context structures provided by the kernel hook point to which the enforcement program is attached. The bytecode compiler 1014 can insert null-pointer checks after map lookup operations, because the bpf_map_lookup_elem( ) helper function can return a null pointer when the requested key does not exist in the map, and dereferencing a null pointer would cause the kernel-level verifier 932 to reject the program during safety analysis. The bytecode compiler 1014 can further generate code that performs bounds-checked pointer arithmetic, such that when accessing a field within a context structure or map value entry, the generated offset plus the access size does not exceed the declared size of the target data structure, thereby preventing out-of-bounds memory reads or writes that could access adjacent kernel memory regions.
In some implementations, the rigorous verification methodologies implemented by the kernel-level verifier 932 that the bytecode compiler 1014 can account for during code generation can encompass the static analysis procedures that the verifier applies to prove program safety properties before permitting kernel space execution. The kernel-level verifier 932 can construct a directed graph of all possible execution paths through the compiled bytecode and can traverse each path to verify that the program satisfies safety constraints at every instruction along every reachable path. The bytecode compiler 1014 can structure the generated code to facilitate this verification process by producing enforcement programs with well-defined control flow structures that minimize the number of execution paths the verifier must analyze, such as using structured conditional branches with explicit merge points rather than complex nested branching patterns that increase the combinatorial complexity of path enumeration. The bytecode compiler 1014 can further generate code that satisfies the helper function validation requirements of the kernel-level verifier 932 by maintaining a mapping between the target hook point type (e.g., XDP hooks, LSM hooks, tracepoint hooks, cgroup hooks) and the corresponding set of permitted helper functions, and by emitting function call instructions that invoke only functions within the permitted set for the enforcement program's declared program type. For example, when generating an enforcement program for attachment to an LSM hook such as security_file_permission( ), the bytecode compiler 1014 can restrict the generated code to invoking helper functions available in the LSM program context (e.g., bpf_get_current_pid_tgid( ), bpf_get_current_task( ), bpf_map_lookup_elem( ), bpf_ringbuf_output( ), while excluding helper functions that are only available in other program contexts such as XDP-specific functions (e.g., bpf_xdp_adjust_head( ), bpf_redirect( ). By structuring the generated code to align with the verification procedures of the kernel-level verifier 932, the bytecode compiler 1014 can increase the likelihood that the compiled enforcement programs pass safety analysis on the first submission, thereby reducing the need for iterative recompilation and resubmission cycles that could delay the deployment of updated operative boundaries 914 within the kernel environment 1004.
In some implementations, the bytecode compiler 1014 can incorporate a code generation model that unifies code intelligence across multiple categories of hardware-proximate programming domains, including kernel-level program optimization, embedded systems code generation, and compiler optimization techniques. The code generation model can be implemented as a machine learning model (e.g., a large language model with parameters numbering in the billions) that has been trained on code repositories spanning kernel programming patterns, hardware description languages, embedded firmware implementations, and compiler intermediate representations. The training data for the code generation model can include eBPF program examples that demonstrate correct usage of kernel helper functions, proper map access patterns, compliant loop structures, and appropriate return value conventions for different hook point types, as well as examples from adjacent hardware-proximate domains such as GPU kernel optimization code that demonstrates resource-constrained computation patterns, hardware description language code that demonstrates timing-sensitive logic synthesis, and embedded systems firmware code that demonstrates operation within strict memory and execution time budgets. By training on code repositories that span these hardware-proximate domains, the code generation model can learn shared patterns of resource-constrained code generation that transfer to the eBPF enforcement program generation task, because the constraints imposed by the kernel-level verifier 932 on eBPF programs (e.g., bounded loops, valid memory access patterns, restricted helper function usage, termination guarantees) share structural similarities with constraints encountered in GPU kernel optimization (e.g., thread block size limits, shared memory capacity constraints), embedded firmware programming (e.g., stack size limits, interrupt latency requirements), and compiler optimization (e.g., register allocation constraints, instruction scheduling requirements).
In some implementations, the code generation model within the bytecode compiler 1014 can be represented as a neural network architecture comprising an embedding layer that maps source code tokens and policy specification tokens into a high-dimensional vector space, one or more transformer layers that process the embedded token sequences through self-attention mechanisms to capture long-range dependencies between code constructs, and a decoder layer that generates output token sequences corresponding to eBPF C source code. The code generation model can be stored as a set of weight matrices and bias vectors within persistent storage accessible to the bytecode compiler 1014, where the weight matrices encode the learned relationships between input policy specifications and output enforcement program code. The code generation model can receive as input a structured representation of the operative boundaries 914 concatenated with contextual metadata specifying the target hook point type (e.g., XDP, LSM, tracepoint, cgroup), the required map data structures, and the agent identifier schema, and can produce as output a sequence of source code tokens that, when assembled, form a syntactically correct eBPF C program implementing the specified enforcement logic. The code generation model can maintain an internal vocabulary that maps between natural language policy terms and corresponding eBPF programming constructs, such that policy terms specifying network destination restrictions can be mapped to socket-related hook attachment annotations and LPM trie map lookup operations, and policy terms specifying file access restrictions can be mapped to LSM hook attachment annotations and hash map membership verification operations.
In some implementations, the multiple categories of hardware-proximate programming domains from which the code generation model derives its training data can each contribute distinct patterns of resource-constrained code generation that collectively enhance the model's ability to produce verifier-compliant eBPF enforcement programs. The kernel-level program optimization domain can contribute training examples that demonstrate how to structure code for execution within a privileged kernel execution environment, including patterns for accessing kernel data structures through approved helper functions, managing register state across function boundaries, and implementing control flow structures that satisfy static analysis requirements imposed by kernel-level verification systems. The training examples from the kernel-level program optimization domain can include annotated eBPF programs that pair source code with corresponding verifier analysis outputs, enabling the code generation model to learn the relationship between specific code patterns and their verification outcomes, such that the model can predict which code structures are likely to pass verification and which are likely to be rejected.
In some implementations, the embedded systems code generation domain can contribute training examples that demonstrate how to implement computational logic within strict memory and execution time budgets, including patterns for minimizing stack usage by reusing local variables across non-overlapping scopes, reducing instruction counts by consolidating redundant operations, and structuring loop constructs with explicit compile-time bounded iteration counts rather than data-dependent termination conditions. These patterns from the embedded systems domain can transfer to the eBPF enforcement program generation task because eBPF programs operate under analogous constraints, such as a fixed-size stack space (e.g., 512 bytes) that limits local variable allocation, a maximum instruction count (e.g., one million verified instructions) that constrains program complexity, and a requirement for bounded loop iteration counts that the kernel-level verifier 932 can statically analyze. The embedded firmware training examples can further demonstrate interrupt-safe programming patterns where code segments must complete within deterministic time bounds without blocking or yielding execution, which corresponds to the requirement that eBPF enforcement programs attached to kernel event trace points 934 must complete execution within bounded time to avoid blocking kernel operations and degrading system responsiveness for concurrently executing AI agents 912.
In some implementations, the GPU kernel optimization domain can contribute training examples that demonstrate how to structure parallel computation within hardware-imposed resource limits, including patterns for managing shared memory allocation across thread blocks, coordinating data access patterns to avoid bank conflicts, and structuring computation to maximize occupancy within register file capacity constraints. The structural similarities between GPU kernel optimization constraints and eBPF verifier constraints can enable the code generation model to transfer learned patterns across domains. For example, the GPU constraint that thread block dimensions must be specified as compile-time constants shares structural similarity with the eBPF constraint that loop iteration bounds must be compile-time determinable, and the GPU constraint that shared memory allocations must not exceed a hardware-defined capacity limit shares structural similarity with the eBPF constraint that stack memory usage must not exceed the fixed-size stack allocation. By learning these cross-domain structural correspondences, the code generation model can apply optimization strategies originally developed for GPU programming to the generation of eBPF enforcement programs, such as reordering computation sequences to minimize memory access latency and consolidating data accesses to reduce the total number of map lookup operations performed per enforcement program invocation.
In some implementations, the compiler optimization domain can contribute training examples that demonstrate how to transform high-level program representations into efficient low-level instruction sequences, including patterns for register allocation that minimize memory spills, instruction scheduling that reduces pipeline stalls, and dead code elimination that removes unreachable or redundant computation paths. These compiler optimization patterns can transfer to the eBPF enforcement program generation task because the bytecode compiler 1014 must produce eBPF bytecode that efficiently utilizes the limited set of 64-bit registers (e.g., registers R0 through R10) available in the eBPF instruction set architecture, schedules instructions to minimize the total execution time of the enforcement program, and eliminates dead code paths that would consume instruction budget without contributing to the enforcement logic. The compiler intermediate representation training examples can further demonstrate how to perform type-aware code transformations that preserve semantic correctness while improving execution efficiency, which corresponds to the requirement that the bytecode compiler 1014 must generate code that maintains type safety across all execution paths as verified by the kernel-level verifier 932 through register state tracking.
In some implementations, the hardware description language domain can contribute training examples that demonstrate how to express timing-sensitive logic within hardware synthesis constraints, including patterns for specifying combinational logic that must evaluate within a single clock cycle, sequential logic that must satisfy setup and hold time requirements, and state machine implementations that must transition between states within deterministic time bounds. The timing-sensitive logic synthesis patterns from the hardware description language domain can transfer to the eBPF enforcement program generation task because eBPF enforcement programs must similarly complete their evaluation logic within deterministic time bounds at each kernel event trace point 934 invocation, and the enforcement decision (e.g., permit or deny) must be produced as a single atomic outcome without intermediate states that could leave the kernel in an inconsistent enforcement posture. By incorporating training examples from hardware description language repositories, the code generation model can learn to structure enforcement program logic as deterministic evaluation pipelines where each stage produces a well-defined intermediate result that feeds into the subsequent stage, culminating in a final enforcement decision that is returned to the kernel within the bounded execution time constraint.
In some implementations, the training process for the code generation model can involve a multi-phase approach where the model is first pre-trained on a broad corpus of code repositories spanning the multiple hardware-proximate programming domains to learn general patterns of resource-constrained code generation, and subsequently fine-tuned on a curated dataset of eBPF program examples paired with corresponding policy specifications to specialize the model for the enforcement program generation task. The pre-training phase can expose the model to millions of code examples across the kernel programming, GPU optimization, embedded firmware, hardware description language, and compiler optimization domains, enabling the model to develop internal representations that capture cross-domain patterns such as bounded iteration constructs, memory-safe access patterns, and deterministic execution flow structures. The fine-tuning phase can use a smaller dataset of validated eBPF enforcement programs that have been confirmed to pass the kernel-level verifier 932 safety analysis, where each training example pairs a policy specification input with a corresponding verified eBPF program output, enabling the model to learn the specific mapping between operative boundary specifications and verifier-compliant enforcement code. The fine-tuning dataset can be augmented with negative examples comprising eBPF programs that failed verification along with the corresponding verifier error messages, enabling the model to learn which code patterns cause verification failures and how to avoid them during generation.
In some implementations, the code generation model within the bytecode compiler 1014 can be configured to address the verification requirements specific to kernel-level enforcement programs by incorporating knowledge of the safety constraints analyzed by the kernel-level verifier 932. The code generation model can produce eBPF C source code that structurally satisfies the bounded execution time constraint by generating loop constructs with explicit compile-time upper bound constants rather than data-dependent termination conditions, because the kernel-level verifier 932 performs static analysis to confirm that each loop has a determinable iteration count. The code generation model can further produce code that satisfies the valid memory access pattern constraint by generating memory access operations that target only authorized memory regions including the program's allocated stack space, map data structures accessed through approved helper functions (e.g., bpf_map_lookup_elem( ), and context structures provided by the hook point, while avoiding arbitrary pointer arithmetic or unchecked memory dereferences that the kernel-level verifier 932 would reject during safety analysis. The code generation model can additionally produce code that satisfies the restricted helper function usage constraint by maintaining an internal mapping between hook point types (e.g., XDP hooks, LSM hooks, tracepoint hooks, cgroup hooks) and their corresponding sets of permitted helper functions, and by generating code that invokes only functions within the permitted set for the target hook point specified in the operative boundaries 914. Because the correctness of the generated enforcement programs can only be fully established by submitting the compiled bytecode to the kernel-level verifier 932 within the kernel environment 1004, the bytecode compiler 1014 can implement an iterative refinement process where candidate programs that fail verification are returned to the code generation model with error feedback identifying the specific safety constraint violations, enabling the model to regenerate corrected code that addresses the identified verification failures while preserving the enforcement logic specified by the operative boundaries 914.
In some implementations, the bounded execution time constraint addressed by the code generation model can require that every loop construct within the generated eBPF C source code includes a compile-time determinable upper bound that the kernel-level verifier 932 can statically resolve during safety analysis. The compile-time upper bound constants can be represented as integer literal values embedded directly within the loop control expressions of the generated source code, such as a for-loop iterating from an initial index value of zero to a fixed maximum iteration count specified as a preprocessor constant or an inline literal. The code generation model can determine the appropriate upper bound constant for each loop based on the enforcement logic specified by the operative boundaries 914, such that a loop iterating over entries in an agent constraint map 936 to evaluate a set membership condition can use a maximum entry count constant corresponding to the declared maximum size of the target map data structure. When the operative boundaries 914 require evaluation of multiple constraint categories within a single enforcement program invocation, the code generation model can generate separate bounded loops for each constraint category rather than a single nested loop structure, because separate loops can reduce the combinatorial complexity of the execution path analysis performed by the kernel-level verifier 932 and can decrease the likelihood of verification rejection due to path explosion. The code generation model can further insert early exit conditions within bounded loops, such as break statements triggered when a target entry is found during a membership check, to reduce the average execution time of the enforcement program while maintaining the compile-time bounded iteration count that satisfies the verifier's static analysis requirements.
In some implementations, the valid memory access pattern constraint addressed by the code generation model can govern the set of memory regions that the generated enforcement program is permitted to access during execution within the kernel environment 1004. The authorized memory regions can include the program's allocated stack space, which can be a fixed-size memory region (e.g., 512 bytes) reserved by the eBPF runtime for local variable storage and temporary computation results. The code generation model can track the cumulative stack usage of the generated program by maintaining an internal counter that accumulates the sizes of all local variable declarations and temporary buffers, and can restructure the generated code to reuse stack-allocated variables across non-overlapping scopes when the cumulative usage approaches the fixed-size stack limit, thereby preventing stack overflow conditions that the kernel-level verifier 932 would detect and reject. The authorized memory regions can further include map data structures within the agent constraint maps 936, which can be accessed exclusively through approved helper functions such as bpf_map_lookup_elem( ), that return pointers to map value entries. The code generation model can generate null-pointer checks immediately following each map lookup operation, because the bpf_map_lookup_elem( ), helper function can return a null pointer when the requested key does not exist in the map, and the kernel-level verifier 932 can reject programs that dereference pointers without first verifying that the pointer is non-null. The authorized memory regions can also include context structures provided by the kernel hook point to which the enforcement program is attached, where the context structure can contain event-specific parameters such as process identifiers, file descriptors, network packet headers, and system call arguments. The code generation model can generate bounds-checked access operations for context structure fields by computing the field offset plus the access size and verifying that the result does not exceed the declared size of the context structure, thereby preventing out-of-bounds memory reads that could access adjacent kernel memory regions.
In some implementations, the restricted helper function usage constraint addressed by the code generation model can govern which kernel-provided utility functions the generated enforcement program is permitted to invoke during execution. The internal mapping maintained by the code generation model between hook point types and their corresponding sets of permitted helper functions can be represented as a data structure (e.g., a hash table, a lookup table, or an associative array) stored within the bytecode compiler 1014, where each entry associates a hook point type identifier (e.g., an enumerated value or string identifier corresponding to XDP, LSM, tracepoint, cgroup, or other hook point categories) with a list of helper function identifiers that the kernel-level verifier 932 permits for programs attached to that hook point type. For example, when the operative boundaries 914 specify that an enforcement program is to be attached to an LSM hook such as security_file_permission( ), the code generation model can consult the internal mapping to retrieve the set of permitted helper functions for the LSM program context, which can include functions such as bpf_get_current_pid_tgid( ) for retrieving the process identifier and thread group identifier of the intercepted system call, bpf_get_current_task( ) for accessing the current task structure, bpf_map_lookup_elem( ) for performing map lookups against the agent constraint maps 936, bpf_map_update_elem( ) for updating map entries, and bpf_ringbuf_output( ) for writing attestation records to ring buffer data structures. The code generation model can exclude from the generated code any helper functions that are not present in the permitted set for the target hook point, such as XDP-specific functions (e.g., bpf_xdp_adjust_head( ), bpf_redirect( )) that are available only in the XDP program context. By restricting the generated code to the permitted helper function set for the declared program type, the code generation model can increase the likelihood that the compiled enforcement program passes the helper function validation performed by the kernel-level verifier 932 without requiring iterative recompilation.
In some implementations, the iterative refinement process implemented by the bytecode compiler 1014 can operate as a feedback loop between the code generation model and the kernel-level verifier 932 within the kernel environment 1004. When the code generation model produces a candidate eBPF C source code program, the bytecode compiler 1014 can compile the source code into eBPF bytecode using a compiler infrastructure (e.g., LLVM with a BPF backend), and the kernel interface 1016 can submit the compiled bytecode to the kernel-level verifier 932 for safety analysis. If the kernel-level verifier 932 rejects the candidate program, the verifier can generate an error report that identifies the specific instruction offset or code path that caused the verification failure, the type of safety constraint that was violated (e.g., an unbounded loop detected at a particular instruction offset, an invalid memory access at a particular program counter value, a call to a disallowed helper function, a type inconsistency between register operands, or a failure to check for a null pointer after a map lookup operation), and diagnostic information characterizing the nature of the violation. The error report can be transmitted back to the code generation model through the kernel interface 1016 and the policy manager 1010, where the code generation model can incorporate the error information into a corrective input that instructs the model to regenerate the eBPF program with modifications that address the identified verification failures. The corrective input can include the original operative boundaries 914, the previously generated source code that failed verification, and the specific error report from the kernel-level verifier 932, enabling the code generation model to identify the relationship between the failed code pattern and the verification constraint that was violated.
In some implementations, the iterative refinement process can continue for a configurable maximum number of iterations (e.g., three to five iterations), where each iteration involves the code generation model producing a revised candidate program that attempts to correct the verification failures identified in the preceding iteration while preserving the enforcement logic specified by the operative boundaries 914. The bytecode compiler 1014 can maintain a history of verification failures across iterations to prevent the code generation model from reintroducing previously corrected errors in subsequent iterations. For example, if a first iteration produces a program rejected due to an unbounded loop and a second iteration corrects the loop but introduces an invalid memory access, the corrective input for the third iteration can include both the current invalid memory access error and the historical unbounded loop error, enabling the code generation model to generate code that simultaneously avoids both failure modes. If the iterative refinement process exhausts the maximum number of iterations without producing a verifier-compliant program, the bytecode compiler 1014 can escalate the generation failure to the policy manager 1010 for alternative handling, which can include manual intervention by an administrator, selection of an alternative enforcement strategy that uses a different combination of hook points and map data structures, or decomposition of the operative boundary 914 into simpler sub-policies that can be individually compiled into separate enforcement programs with reduced complexity that are more likely to pass the kernel-level verifier 932 safety analysis.
In some implementations, the code generation model can preserve the enforcement logic specified by the operative boundaries 914 throughout the iterative refinement process by maintaining a semantic representation of the policy intent that is independent of the specific code patterns used to implement the enforcement behavior. The semantic representation can capture the logical relationships between policy conditions (e.g., agent identifier matching, resource target evaluation, threshold comparisons) and enforcement actions (e.g., permit, deny, log) specified by the operative boundaries 914, such that when the code generation model regenerates code to address a verification failure, the model can modify the implementation approach (e.g., restructuring a loop, adding a null-pointer check, replacing a disallowed helper function with a permitted alternative) while ensuring that the regenerated code continues to implement the same logical enforcement behavior. For example, if a verification failure occurs because the generated code uses an unbounded loop to iterate over map entries, the code generation model can replace the unbounded loop with a bounded loop that uses a fixed maximum iteration count while preserving the set membership evaluation logic that the loop implements, such that the enforcement program continues to correctly evaluate whether a target resource identifier exists within the permitted set defined by the operative boundaries 914. This preservation of enforcement logic across refinement iterations can ensure that the final verifier-compliant program faithfully implements the policy intent expressed in the operative boundaries 914, even when multiple code modifications are required to satisfy the safety constraints of the kernel-level verifier 932.
In some implementations, the kernel interface 1016 within the policy manager 1010 can manage the communication pathway between the application environment 1002 and the kernel environment 1004, facilitating the loading of compiled enforcement programs (e.g., compiled eBPF bytecode produced by the bytecode compiler 1014) into kernel space for attachment to kernel hook points. The kernel interface 1016 can invoke system call interfaces (e.g., the bpf( ) system call) to transfer the compiled bytecode and associated metadata (e.g., program type, expected attachment point, map file descriptors, and/or the like) from user space memory regions within the application environment 1002 to kernel memory regions within the kernel environment 1004. The kernel interface 1016 can manage the lifecycle of loaded enforcement programs by tracking program file descriptors, maintaining references to attached hook points, and coordinating program updates (e.g., replacing an existing enforcement program with an updated version) without requiring system reboots or interruption of ongoing agent monitoring operations. The kernel interface 1016 can further manage the creation and initialization of kernel-resident data structures (e.g., eBPF maps) that store policy rules, per-agent execution constraints, behavioral baselines, and/or other enforcement parameters, and can populate the data structures with initial values derived from the operative boundaries 914 before the enforcement programs begin execution. For example, when the bytecode compiler 1014 produces compiled eBPF bytecode implementing a file access restriction policy for a compliance AI agent, the kernel interface 1016 can create the necessary hash map data structures within the kernel environment 1004, populate the hash maps with the permitted file path entries specified in the operative boundaries 914, load the compiled bytecode into kernel memory, submit the bytecode to the kernel-level verifier 932 for safety analysis, and upon successful verification, attach the enforcement program to a file operation-related kernel event trace point 934 (e.g., an LSM hook such as security_file_permission( )) where the program can begin intercepting and evaluating file access requests from the compliance AI agent.
In some implementations, the policy manager 1010 can support dynamic policy updates by enabling modifications to operative boundaries 914 to be propagated to the kernel environment 1004 without requiring redeployment of AI agent processes or reloading of the entire enforcement program infrastructure. When an updated operative boundary 914 is received by the policy manager 1010, the constraint parser 1012 can parse and validate the updated specification, the bytecode compiler 1014 can generate updated bytecode if the policy change requires new enforcement logic, and the kernel interface 1016 can either update the agent constraint maps 936 through atomic memory operations (e.g., when the policy change involves modifying parameter values within existing enforcement rules) or replace the enforcement program attached to the kernel event trace points 934 with an updated version (e.g., when the policy change requires new enforcement logic that cannot be expressed through map updates alone). The atomic update capability of the agent constraint maps 936 can enable the policy manager 1010 to modify per-agent execution constraints, adjust threshold values, add or remove permitted resource identifiers, and update behavioral baselines without interrupting the continuous monitoring and enforcement operations performed by the kernel layer 930. For example, when an administrator modifies a network access policy to add a new permitted destination address for a particular AI agent 912, the policy manager 1010 can propagate the change by instructing the kernel interface 1016 to insert a new entry into the hash map within the agent constraint maps 936 that stores the permitted destination address set for that agent, without requiring recompilation of the enforcement program bytecode or reattachment of the program to the network-related kernel event trace point 934.
In some implementations, the architecture 1000 can include an AI code generation component that generates eBPF programs from high-level compliance policy specifications. The AI code generation component can receive as input a policy specification (e.g., the operative boundaries 914) defining permitted and prohibited operations for AI agent processes and can output syntactically correct eBPF C code that, when compiled by the bytecode compiler 1014 (e.g., using an eBPF-compatible compiler such as clang with a BPF target) and loaded into the kernel environment 1004, enforces the specified policy. The AI code generation component can be configured to generate eBPF programs that comply with eBPF verifier constraints (e.g., bounded loops, valid memory access patterns, restricted helper function usage, and/or the like), use appropriate eBPF map types for the data access patterns required by the compliance policy (e.g., hash maps for agent lookups, arrays for configuration, ring buffers for event streaming, and/or the like), attach to the correct hook points for the type of monitoring or enforcement required (e.g., XDP hooks for network interception, LSM hooks for access control, kprobes for system call monitoring, and/or the like), and implement data path processing that reduces latency impact on monitored operations. In some implementations, the AI code generation component can include a large language model (e.g., a machine learning model trained on code repositories containing eBPF program examples and kernel programming patterns) configured with domain-specific prompts and examples for eBPF program generation. The AI code generation component can generate candidate eBPF programs that are subsequently verified by the kernel-level verifier 932 within the kernel environment 1004 before loading, such that programs failing verification are returned to the AI code generation component with error feedback for correction and regeneration. In alternative implementations, the AI code generation component can include any machine learning model capable of generating syntactically correct and verifier-compliant eBPF programs from policy specifications.
In some implementations, the AI code generation component can be implemented as a software module operating within the application environment 1002 that interfaces with the policy manager 1010 to receive policy specifications and deliver generated eBPF program source code to the bytecode compiler 1014 for compilation. The AI code generation component can maintain an internal representation of the policy specification as a structured data object (e.g., an abstract syntax tree, a policy graph, a constraint specification document, and/or the like) that captures the logical relationships between policy rules, the target agent identifiers to which the rules apply, the resource types subject to enforcement, and the enforcement actions to be taken upon policy violations. The structured data object can be serialized into a prompt format suitable for consumption by the underlying machine learning model, where the prompt format can include a system-level instruction specifying the role of the model as an eBPF program generator, a description of the target kernel hook points and map data structures, and the policy rules expressed in a structured notation that the model can interpret to produce corresponding enforcement logic. The AI code generation component can maintain a library of validated eBPF program templates that serve as reference examples provided to the machine learning model during prompt construction, where each template can demonstrate correct usage of eBPF helper functions, proper map access patterns, compliant loop structures, and appropriate return value conventions for different hook point types.
In some implementations, the policy specification received by the AI code generation component can define permitted and prohibited operations for AI agent processes through a structured format that enumerates one or more enforcement rules. Each enforcement rule within the policy specification can include a rule identifier that uniquely distinguishes the rule within the policy, a target agent identifier or agent class descriptor that specifies which AI agents 912 are subject to the rule, an operation type descriptor that identifies the category of system operation to which the rule applies (e.g., file access operations, network communication operations, memory allocation operations, process management operations, and/or the like), one or more condition expressions that define the circumstances under which the rule is triggered (e.g., a file path matching a restricted pattern, a network destination address falling outside a permitted range, a memory allocation request exceeding a threshold size, and/or the like), and an enforcement action that specifies the response to be taken when the condition expressions are satisfied (e.g., deny the operation by returning an error code, permit the operation and generate an audit event, throttle the operation by introducing a delay, and/or the like). The AI code generation component can parse the policy specification to extract these rule components and can map each rule to a corresponding code generation task that produces eBPF program logic implementing the specified enforcement behavior.
In some implementations, the AI code generation component can be configured to generate eBPF programs that comply with eBPF verifier constraints by incorporating structural patterns into the generated code that satisfy the safety analysis performed by the kernel-level verifier 932. The bounded loop constraint can require that all loops within the generated eBPF program have compile-time determinable iteration counts, such that the AI code generation component can generate loop constructs with explicit upper bound constants (e.g., a for-loop iterating from zero to a fixed maximum value) rather than data-dependent loop termination conditions that the verifier cannot statically analyze. The valid memory access pattern constraint can require that all memory dereferences within the generated eBPF program target authorized memory regions, such that the AI code generation component can generate code that accesses only the program's allocated stack space, map data structures through approved helper functions (e.g., bpf_map_lookup_elem( )), and context structures provided by the hook point, while avoiding arbitrary pointer arithmetic or unchecked memory accesses that the verifier would reject. The restricted helper function usage constraint can require that the generated eBPF program invokes only kernel-approved helper functions appropriate for the program type and hook point, such that the AI code generation component can maintain a mapping between hook point types and their corresponding sets of permitted helper functions and can generate code that calls only functions within the permitted set for the target hook point. For example, an eBPF program generated for attachment to an XDP hook point can be restricted to helper functions available in the XDP program context (e.g., bpf_xdp_adjust_head( ), bpf_redirect( ), bpf_map_lookup_elem( ), and/or the like), while an eBPF program generated for attachment to an LSM hook point can use helper functions available in the LSM program context (e.g., bpf_get_current_pid_tgid( ), bpf_get_current_task( ), bpf_map_lookup_elem( ), and/or the like).
In some implementations, the AI code generation component can be configured to select appropriate eBPF map types for the data access patterns required by the compliance policy. The selection of map types can be determined based on the nature of the policy rules and the runtime access patterns that the enforcement programs require. For policy rules that require associating agent identifiers with corresponding execution constraints, the AI code generation component can generate code that declares and uses hash map data structures (e.g., BPF_MAP_TYPE_HASH) that provide O(1) expected-time lookup complexity for retrieving per-agent policy parameters during enforcement program execution. For policy rules that require storing indexed configuration parameters such as threshold values, rate limits, or enumerated permitted resource identifiers, the AI code generation component can generate code that declares and uses array map data structures (e.g., BPF_MAP_TYPE_ARRAY) that provide direct index-based access to configuration entries. For policy rules that require streaming enforcement events, audit records, or attestation data from kernel space to user space components, the AI code generation component can generate code that declares and uses ring buffer data structures (e.g., BPF_MAP_TYPE_RINGBUF) that provide lock-free circular buffer semantics enabling high-throughput event transfer without per-event system call overhead. For policy rules that require concurrent per-CPU tracking of resource consumption metrics without lock contention, the AI code generation component can generate code that declares and uses per-CPU map data structures (e.g., BPF_MAP_TYPE_PERCPU_HASH) that maintain separate per-CPU instances for concurrent updates across multiple processor cores. The AI code generation component can analyze the policy specification to determine which combination of map types is required and can generate the corresponding map declarations, initialization code, and access patterns within the eBPF program source code.
In some implementations, the AI code generation component can be configured to attach generated eBPF programs to the correct hook points for the type of monitoring or enforcement required by the compliance policy. The hook point selection can be determined based on the operation types specified in the policy rules. For policy rules that govern network communication operations, such as restricting outbound connections to permitted destination addresses or enforcing bandwidth limits, the AI code generation component can generate eBPF programs configured for attachment to XDP hooks that intercept network packets at the network interface driver level before kernel network stack processing, enabling wire-speed packet filtering with sub-microsecond per-packet latency. For policy rules that govern file access operations, such as restricting file system paths accessible to particular AI agents or enforcing read-only access modes on sensitive directories, the AI code generation component can generate eBPF programs configured for attachment to LSM hooks (e.g., security_file_permission( ), security_inode_permission( ), and/or the like) that intercept file access requests at the security module layer and evaluate the requests against per-agent file access policies before permitting the operations to proceed. For policy rules that govern system call behavior, such as monitoring process creation patterns or tracking resource allocation requests, the AI code generation component can generate eBPF programs configured for attachment to kprobes or tracepoints that intercept specific kernel functions or system call entry and exit points, capturing operation parameters and execution context for evaluation against the defined constraints. The AI code generation component can encode the hook point selection as program section annotations (e.g., SEC (“xdp”), SEC (“Ism/file_permission”), SEC (“tracepoint/syscalls/sys_enter_open”), and/or the like) within the generated eBPF C source code, such that the bytecode compiler 1014 and the kernel interface 1016 can determine the appropriate attachment point when loading the compiled program into the kernel environment 1004.
In some implementations, the AI code generation component can be configured to implement data path processing within the generated eBPF programs that reduces latency impact on monitored operations. The data path processing can be structured to minimize the number of map lookup operations performed per intercepted event by ordering evaluation logic such that less computationally expensive checks (e.g., comparing a process identifier against a fixed value) are performed before more computationally expensive operations (e.g., hash map lookups to retrieve per-agent policy parameters), thereby enabling early termination of the evaluation when initial checks indicate that the intercepted operation does not require further policy analysis. The AI code generation component can generate code that caches frequently accessed map values in eBPF program registers to avoid redundant map lookups within a single program invocation, and can structure conditional branches to follow the most common execution path (e.g., the path where the operation is permitted) with minimal instruction count, placing the less common enforcement path (e.g., the path where the operation is denied) in a separate code block that is reached only when a policy violation is detected. The AI code generation component can further generate code that batches multiple audit event fields into a single ring buffer write operation rather than performing separate writes for each field, reducing the per-event overhead of audit record generation within the enforcement program.
In some implementations, the large language model included within the AI code generation component can be configured with domain-specific prompts and examples for eBPF program generation. The domain-specific prompts can include a system-level instruction that establishes the model's role as an eBPF enforcement program generator, specifying that the model is to produce eBPF C source code that compiles to valid bytecode, passes the kernel-level verifier 932 safety analysis, and implements the enforcement logic described in the accompanying policy specification. The domain-specific examples can include a curated set of input-output pairs where each input is a policy specification expressed in the high-level policy language supported by the constraint parser 1012 and each output is a corresponding verified eBPF C program that correctly implements the specified enforcement behavior. The examples can cover a range of enforcement scenarios including network access restriction programs attached to XDP hooks, file access control programs attached to LSM hooks, system call monitoring programs attached to tracepoints, and resource quota enforcement programs attached to cgroup hooks, thereby providing the large language model with reference patterns for each major category of enforcement program that the architecture 1000 can deploy. The domain-specific prompts can further include annotations describing the available eBPF helper functions, the permitted map types and their access semantics, the context structures available at each hook point type, and the return value conventions that determine whether an intercepted operation is permitted or denied, enabling the large language model to generate code that correctly interfaces with the kernel environment 1004.
In some implementations, the verification and correction feedback loop between the AI code generation component and the kernel-level verifier 932 can operate as an iterative refinement process. When the AI code generation component produces a candidate eBPF program, the candidate program can be transmitted through the bytecode compiler 1014 for compilation into eBPF bytecode and subsequently submitted to the kernel-level verifier 932 via the kernel interface 1016 for safety analysis. If the kernel-level verifier 932 determines that the candidate program satisfies all safety constraints (e.g., bounded execution time, valid memory access patterns, type safety, termination guarantees, and helper function validation), the program can be accepted for attachment to the designated kernel event trace points 934 and can begin enforcement operations. If the kernel-level verifier 932 rejects the candidate program due to one or more safety constraint violations, the verifier can generate an error report that identifies the specific instruction or code path that caused the verification failure, the type of safety constraint that was violated (e.g., an unbounded loop detected at a particular instruction offset, an invalid memory access at a particular program counter value, a call to a disallowed helper function, and/or the like), and diagnostic information that characterizes the nature of the violation. The error report can be transmitted back to the AI code generation component through the kernel interface 1016 and the policy manager 1010, where the AI code generation component can incorporate the error information into a corrective prompt that instructs the underlying machine learning model to regenerate the eBPF program with modifications that address the identified verification failures. The iterative refinement process can continue for a configurable maximum number of iterations (e.g., three to five iterations), after which the AI code generation component can escalate the generation failure to the policy manager 1010 for manual intervention or alternative enforcement strategy selection if a verifier-compliant program has not been produced.
In some implementations, the kernel interface 1016 within the policy manager 1010 manages the communication pathway between the application environment 1002 and the kernel environment 1004, facilitating the loading of compiled enforcement programs (e.g., compiled eBPF bytecode produced by the bytecode compiler 1014) into kernel space for attachment to kernel hook points. The kernel interface 1016 can invoke system call interfaces (e.g., the bpf( ) system call) to transfer the compiled bytecode and associated metadata (e.g., program type, expected attachment point, map file descriptors, and/or the like) from user space memory regions within the application environment 1002 to kernel memory regions within the kernel environment 1004. The kernel interface 1016 can manage the lifecycle of loaded enforcement programs by tracking program file descriptors, maintaining references to attached hook points, and coordinating program updates (e.g., replacing an existing enforcement program with an updated version) without requiring system reboots or interruption of ongoing agent monitoring operations. The kernel interface 1016 can further manage the creation and initialization of kernel-resident data structures (e.g., eBPF maps) that store policy rules, per-agent execution constraints, behavioral baselines, and/or other enforcement parameters, and can populate the data structures with initial values derived from the operative boundaries 914 before the enforcement programs begin execution.
In some implementations, the kernel environment 1004 represents the privileged execution context within the architecture 1000 where enforcement programs execute with kernel-level privileges and evaluate AI agent operations against defined constraints before the operations are permitted to proceed. The kernel environment 1004 can include a kernel-level verifier 932, kernel event trace points 934, and agent constraint maps 936, each of which performs a distinct function in the runtime enforcement of operative boundaries 914 within the kernel space.
In some implementations, the kernel-level verifier 932 within the kernel environment 1004 can receive compiled bytecode from the kernel interface 1016 and can perform static analysis on the compiled enforcement programs to ensure the programs satisfy safety constraints before allowing kernel space execution. The compiled bytecode can be received as a sequence of instructions encoded in the eBPF instruction set architecture, where each instruction can include an opcode field specifying the operation type, register operand fields identifying source and destination registers, an offset field for memory access and branch operations, and an immediate value field for constant operands. Upon receiving the compiled bytecode, the kernel-level verifier 932 can parse the instruction sequence and construct an internal representation of the program's control flow and data flow characteristics for subsequent safety analysis. The kernel-level verifier 932 can reject programs that fail safety analysis, thereby preventing both accidental errors and intentional exploits from compromising kernel integrity. When the AI code generation component generates enforcement programs, the kernel-level verifier 932 can provide a safety mechanism ensuring that generated programs cannot compromise kernel integrity regardless of the generation model's output quality.
In some implementations, the safety constraints analyzed by the kernel-level verifier 932 can include bounded execution time verification. Bounded execution time verification can involve the kernel-level verifier 932 examining all loop constructs within the compiled bytecode to confirm that each loop has a compile-time bounded iteration count, such that the program can be guaranteed to terminate within a finite number of instructions. The kernel-level verifier 932 can identify loop structures by detecting backward branch instructions within the bytecode instruction sequence, where a backward branch instruction transfers control flow to a program counter value that precedes the current instruction's position. For each identified loop, the kernel-level verifier 932 can analyze the loop's termination condition by tracking the register values and memory state modifications that occur within the loop body, determining whether the loop counter or termination variable progresses monotonically toward a bound that causes the loop to exit. For example, the kernel-level verifier 932 can verify that a loop iterating over entries in an agent constraint map uses a fixed upper bound constant as the maximum iteration count, such as iterating from zero to a compile-time constant representing the maximum number of map entries to examine, rather than using a data-dependent termination condition that the verifier cannot statically resolve. If the kernel-level verifier 932 encounters a loop construct where the iteration count cannot be statically determined to be bounded, the verifier can reject the program and can generate an error report identifying the specific instruction offset of the unbounded loop and the register or memory location whose convergence toward a termination value cannot be proven.
In some implementations, the safety constraints analyzed by the kernel-level verifier 932 can include valid memory access pattern verification. Valid memory access pattern verification can involve the kernel-level verifier 932 examining all memory load and store instructions within the compiled bytecode to confirm that no arbitrary memory dereferences occur and that all memory accesses target authorized memory regions. The authorized memory regions can include the program's allocated stack space, which can be a fixed-size memory region (e.g., 512 bytes) reserved for local variables and temporary computation results during program execution. The authorized memory regions can further include map data structures, which can be accessed through approved helper functions such as bpf_map_lookup_elem( ) that return pointers to map value entries, where the kernel-level verifier 932 can track the returned pointer's validity and can ensure that subsequent memory accesses through the pointer remain within the bounds of the map value's declared size. The authorized memory regions can also include context structures provided by the hook point, which can contain event-specific parameters such as process identifiers, file descriptors, network packet headers, and system call arguments that the enforcement program is permitted to read during policy evaluation. The kernel-level verifier 932 can track pointer arithmetic operations applied to authorized pointers and can verify that the resulting memory addresses remain within the bounds of the original authorized region. For example, if an enforcement program receives a pointer to a context structure of a declared size and applies an offset to access a specific field within the structure, the kernel-level verifier 932 can verify that the offset value plus the access size does not exceed the declared structure size, thereby preventing out-of-bounds memory reads that could access adjacent kernel memory regions containing sensitive data or control structures.
In some implementations, the safety constraints analyzed by the kernel-level verifier 932 can include type safety verification. Type safety verification can involve the kernel-level verifier 932 tracking register state across all execution paths within the compiled bytecode to ensure type consistency and prevent type confusion errors. The kernel-level verifier 932 can maintain a state record for each of the registers available in the eBPF instruction set architecture (e.g., 64-bit registers designated R0 through R10), where each state record can indicate the current type classification of the register's contents, such as whether the register holds a scalar value, a pointer to stack memory, a pointer to a map value, a pointer to a context structure, or an uninitialized value. As the kernel-level verifier 932 traverses each instruction in the program, the verifier can update the register state records to reflect the type transformations produced by each instruction. For example, when a bpf_map_lookup_elem( ) helper function call returns, the kernel-level verifier 932 can classify the return value in register R0 as either a pointer to a map value or a null pointer, and can require that subsequent code paths check for the null case before dereferencing the pointer. If the kernel-level verifier 932 detects an instruction that performs an operation inconsistent with the current type classification of its operand registers, such as dereferencing a register classified as a scalar value or performing arithmetic on a register classified as a context pointer without appropriate bounds checking, the verifier can reject the program and can generate an error report identifying the instruction offset and the type inconsistency detected.
In some implementations, the safety constraints analyzed by the kernel-level verifier 932 can include termination guarantee verification. Termination guarantee verification can involve the kernel-level verifier 932 constructing a directed graph of all possible execution paths through the compiled bytecode and verifying that all paths lead to program termination without infinite loops or unbounded recursion. The directed graph can be represented as a control flow graph (CFG) where each node corresponds to a basic block of sequential instructions without internal branches, and each edge corresponds to a conditional or unconditional branch instruction that transfers control flow between basic blocks. The kernel-level verifier 932 can traverse the control flow graph using depth-first search or breadth-first search algorithms to enumerate all reachable execution paths from the program entry point to the program exit instruction. During traversal, the kernel-level verifier 932 can detect cycles in the control flow graph, where a cycle can indicate a loop construct or recursive control flow pattern. For each detected cycle, the kernel-level verifier 932 can apply the bounded execution time analysis described above to verify that the cycle executes a finite number of iterations. If the kernel-level verifier 932 identifies an execution path that does not terminate at a program exit instruction, or identifies a cycle whose iteration count cannot be statically bounded, the verifier can reject the program. The termination guarantee can ensure that enforcement programs attached to kernel event trace points 934 complete execution within a bounded time, preventing enforcement programs from blocking kernel operations indefinitely and maintaining system responsiveness for all concurrently executing AI agents 912.
In some implementations, the safety constraints analyzed by the kernel-level verifier 932 can include helper function validation. Helper function validation can involve the kernel-level verifier 932 examining all function call instructions within the compiled bytecode to ensure that the program invokes only approved kernel helper functions and that the function arguments conform to expected types and value ranges. The approved kernel helper functions can represent a curated set of kernel-provided utility functions that enforcement programs are permitted to call, where each helper function can expose a specific kernel capability such as map lookup operations (e.g., bpf_map_lookup_elem( )), map update operations (e.g., bpf_map_update_elem( )), current process identifier retrieval (e.g., bpf_get_current_pid_tgid( )), current task structure access (e.g., bpf_get_current_task( )), ring buffer output operations (e.g., bpf_ringbuf_output( )), and timestamp retrieval (e.g., bpf_ktime_get_ns( )). The set of approved helper functions can vary based on the program type and the hook point to which the enforcement program is attached. For example, an enforcement program configured for attachment to an XDP hook point can be restricted to helper functions available in the XDP program context, while an enforcement program configured for attachment to an LSM hook point can use helper functions available in the LSM program context. The kernel-level verifier 932 can maintain a mapping between program types and their corresponding sets of permitted helper functions, and can verify that each function call instruction in the compiled bytecode references a helper function identifier that exists within the permitted set for the program's declared type. Additionally, the kernel-level verifier 932 can verify that the register state at each function call site conforms to the expected argument types for the invoked helper function, such as verifying that a pointer argument points to a valid map descriptor when calling bpf_map_lookup_elem( ), or that a size argument does not exceed the bounds of the source data region when calling bpf_ringbuf_output( ).
In some implementations, the kernel-level verifier 932 can employ abstract interpretation and symbolic execution techniques to prove program safety. Abstract interpretation can involve the kernel-level verifier 932 computing an over-approximation of the possible values that each register and memory location can hold at each program point, where the over-approximation can capture value ranges, pointer types, and alignment constraints without enumerating every concrete execution scenario. For example, the kernel-level verifier 932 can track that a particular register holds a value within a numerical range of zero to one thousand at a specific instruction offset, enabling the verifier to determine whether a subsequent memory access using that register as an offset falls within the bounds of an authorized memory region. Symbolic execution can involve the kernel-level verifier 932 representing register and memory values as symbolic expressions rather than concrete values, enabling the verifier to reason about program behavior across all possible input combinations by evaluating path conditions that determine which execution paths are feasible. The combination of abstract interpretation and symbolic execution can enable the kernel-level verifier 932 to analyze programs with conditional branches that depend on runtime values, such as agent identifiers extracted from execution context structures or policy parameters retrieved from agent constraint maps 936, by reasoning about the program's behavior across all possible values of these runtime-dependent inputs. The kernel-level verifier 932 can apply these techniques during a single pass through the program's control flow graph, maintaining the abstract state at each program point and propagating state information along control flow edges to build a complete picture of the program's safety properties before permitting kernel space execution.
In some implementations, the kernel-level verifier 932 communicates bidirectionally with both the kernel event trace points 934 and the agent constraint maps 936 within the kernel environment 1004. The kernel-level verifier 932 can ensure that verified programs are attached to appropriate hook points within the kernel event trace points 934 based on the program type and the enforcement function specified by the operative boundaries 914. For example, an enforcement program implementing a network access restriction policy can be attached to a network-related kernel event trace point 934 (e.g., an XDP hook, a TC hook, a socket-related system call hook, and/or the like), while an enforcement program implementing a file access restriction policy can be attached to a file operation-related kernel event trace point 934 (e.g., an LSM hook such as security_file_permission( ), a file system tracepoint, and/or the like). The kernel-level verifier 932 can further ensure that constraint data derived from the operative boundaries 914 is stored in the agent constraint maps 936 and is accessible for policy evaluation during agent operations.
In some implementations, the kernel event trace points 934 within the kernel environment 1004 represent the hook points within the kernel where enforcement programs (e.g., verified eBPF programs) are attached to intercept and evaluate AI agent operations. The kernel event trace points 934 can include breakpoints, kernel probes (e.g., kprobes, kretprobes), Linux Security Module (LSM) hooks (e.g., security_file_permission( ), security_inode_permission( ), security_file_mmap( ), and/or the like), express Data Path (XDP) hooks that intercept network packets at a network interface level before kernel network stack processing, traffic control (TC) hooks that filter network traffic at the network stack level, tracepoints that provide static kernel instrumentation interfaces, and/or control group (cgroup) hooks that enforce per-container and per-process-group controls. When an AI agent 912 initiates a system call (e.g., a file operation, a network operation, a process creation operation, a permission modification operation, a memory allocation operation, and/or the like), the kernel event trace points 934 invoke the attached enforcement programs, passing event context (e.g., process identifiers, credentials, operation-specific parameters, timestamps, and/or the like) to the enforcement programs for evaluation against the agent constraint maps 936.
In some implementations, the agent constraint maps 936 within the kernel environment 1004 are kernel-resident data structures that store the correlation between AI agent identifiers and atomic execution constraints derived from the operative boundaries 914. The agent constraint maps 936 can include hash maps (e.g., BPF_MAP_TYPE_HASH) that provide O(1) lookup complexity for associating agent identifiers with corresponding policy rules, array maps (e.g., BPF_MAP_TYPE_ARRAY) that store indexed configuration parameters and per-agent metadata, ring buffers (e.g., BPF_MAP_TYPE_RINGBUF) that provide lock-free circular buffer mechanisms for streaming event data from kernel space to user space, per-CPU maps (e.g., BPF_MAP_TYPE_PERCPU_HASH) that eliminate lock contention by maintaining separate per-CPU instances for concurrent updates, and/or longest prefix match (LPM) trie maps for network policy enforcement. The agent constraint maps 936 can store policy rules, per-agent state information, allow/deny thresholds, behavioral baselines, and/or other enforcement parameters. The agent constraint maps 936 reside in kernel memory space that can be directly accessed by enforcement programs without context switching to user space, and the agent constraint maps 936 can be updated at runtime through atomic memory operations (e.g., via the kernel interface 1016 or through shared memory-mapped interfaces) without requiring enforcement program reloads or system reboots. The agent constraint maps 936 can enable communication between multiple enforcement programs and between kernel space and user space through shared memory regions accessible from both execution contexts.
In some implementations, the hash maps within the agent constraint maps 936 can be implemented as data structures that associate fixed-size key entries with fixed-size value entries through a hash table indexing mechanism. Each hash map entry can use an AI agent identifier as the key, where the identifier can be represented as a fixed-length byte sequence derived from a process identifier, a control group identifier, a namespace identifier, or a cryptographic hash of an agent registration credential. The corresponding value for each key entry can be a structured data record that encodes the policy rules applicable to the identified agent, where the structured data record can include fields specifying permitted system call types as a bitmask of allowed system call numbers, allowable network destination ranges as arrays of CIDR notation address blocks and associated port ranges, maximum memory allocation thresholds as unsigned 64-bit integer values representing byte limits, authorized file system paths as arrays of path string hashes, maximum concurrent thread counts as unsigned integer values, and/or other constraint parameters derived from the operative boundaries 914. The hash map can be configured with a maximum entry count that determines the number of concurrent agent policy entries the map can accommodate, where the maximum entry count can be set based on the expected number of AI agents 912 operating within the multi-tiered distributed system. When an enforcement program attached to a kernel event trace point 934 intercepts a system call from an AI agent 912, the enforcement program can extract the agent identifier from the execution context (e.g., by invoking a kernel helper function such as bpf_get_current_pid_tgid( ) to retrieve the process identifier) and perform a hash map lookup operation (e.g., by invoking bpf_map_lookup_elem( ) with the agent identifier as the key) to retrieve the corresponding policy rule record in O(1) expected time, enabling per-agent constraint evaluation without iterating through all stored entries.
In some implementations, the array maps within the agent constraint maps 936 can be implemented as data structures that store entries indexed by integer keys ranging from zero to a maximum index value. Array maps can provide direct index-based access to configuration entries without requiring hash computation, enabling deterministic access latency for retrieving indexed parameters. The array maps can store per-agent metadata such as agent classification identifiers that indicate the trust tier to which an agent is assigned (e.g., a numerical tier value corresponding to Tier 1, Tier 2, or Tier 3 classifications as described with reference to
In some implementations, the ring buffers within the agent constraint maps 936 can be implemented as data structures that provide a lock-free circular buffer mechanism for transferring event data from kernel space enforcement programs to user space monitoring applications. The ring buffer can be allocated as a contiguous memory region of a configurable size (e.g., 64 megabytes) that is shared between kernel space and user space through memory-mapped interfaces. Enforcement programs executing within the kernel environment 1004 can write event records to the ring buffer by invoking a kernel helper function (e.g., bpf_ringbuf_output( )) that copies event data from the enforcement program's stack memory into the next available position within the circular buffer. The ring buffer can maintain separate producer and consumer position indicators, where the producer position tracks the write location used by kernel space enforcement programs and the consumer position tracks the read location used by user space applications, enabling concurrent read and write operations without requiring mutual exclusion locks. When the ring buffer reaches capacity, the system can either overwrite the oldest unread entries or signal a buffer-full condition to the producing enforcement program, depending on the configuration specified at map creation time. User space components such as the policy manager 1010 or audit logging processes can poll the ring buffer using event notification mechanisms (e.g., epoll-based file descriptor monitoring) to detect when new event data is available for consumption, enabling asynchronous transfer of attestation records 938, compliance evaluation results, and enforcement decision logs from the kernel environment 1004 to the application environment 1002 without requiring per-event system call overhead.
In some implementations, the per-CPU maps within the agent constraint maps 936 can be implemented as data structures that maintain separate instances of each map entry for each processor core in the system. Each processor core can access and modify its own instance of a map entry without requiring synchronization primitives such as spinlocks or atomic compare-and-swap operations, thereby eliminating lock contention that can arise when multiple enforcement programs executing concurrently on different processor cores attempt to update shared counters or state variables. Per-CPU maps can be used for tracking per-agent resource consumption metrics that are updated frequently during runtime monitoring, such as cumulative CPU time counters that are incremented each time a scheduler hook records a context switch event for an agent process, memory allocation counters that are updated each time a memory allocation hook intercepts an allocation request from an agent, and network bandwidth counters that are updated each time a network hook captures a packet transmission or reception event associated with an agent. When a user space component requires an aggregate view of a per-CPU metric (e.g., to compute a total CPU time consumption value for a particular agent across all processor cores), the user space component can read all per-CPU instances of the map entry and sum the individual values to produce the aggregate measurement. This aggregation can be performed by the policy manager 1010 or the billing system during periodic reporting intervals without interrupting the kernel-level enforcement programs that continue to update their respective per-CPU instances concurrently.
In some implementations, the LPM trie maps within the agent constraint maps 936 can be implemented as longest prefix match trie data structures that enable network policy enforcement by matching network addresses against stored prefix entries. Each entry in the LPM trie map can associate a network address prefix (e.g., an IP address combined with a prefix length specifying the number of significant bits) with a policy action value that indicates whether network communication to or from addresses matching the prefix is permitted or denied for a particular AI agent 912. When an enforcement program attached to a network-related kernel event trace point 934 (e.g., an XDP hook or a socket system call hook) intercepts an outbound connection attempt from an AI agent 912, the enforcement program can extract the destination IP address from the network packet or socket parameters and perform an LPM trie lookup to determine whether the destination address matches any stored prefix entry. The LPM trie lookup can traverse the trie structure from the root node toward leaf nodes, comparing successive bits of the destination address against the trie branches, and can return the policy action associated with the longest matching prefix, thereby enabling hierarchical network access policies where more specific address ranges can override broader network-level rules. For example, a broad prefix entry can deny access to an entire address range while a more specific prefix entry within that range can permit access to a particular approved API endpoint, enabling fine-grained network access control for AI agents 912 operating within the multi-tiered distributed system.
In some implementations, the agent constraint maps 936 can store policy rules as structured data records within the kernel-resident map entries, where each policy rule can encode a conditional enforcement expression that specifies the circumstances under which a particular agent operation is permitted or denied. A policy rule can include a rule identifier field that uniquely distinguishes the rule within the agent's policy set, an operation type field that specifies the category of system operation to which the rule applies (e.g., file access, network communication, memory allocation, process management), one or more condition fields that define parameter ranges or value sets against which intercepted operation parameters are evaluated, and an action field that specifies the enforcement response (e.g., permit, deny, log-only, throttle) to be applied when the condition fields are satisfied. The allow/deny thresholds stored in the agent constraint maps 936 can be represented as numerical boundary values that define the limits within which agent operations are considered compliant, such as maximum memory allocation sizes expressed as unsigned 64-bit integer byte counts, maximum network bandwidth consumption rates expressed as bytes per time interval, maximum file access frequencies expressed as operation counts per time window, and maximum concurrent thread counts expressed as unsigned integer values. The behavioral baselines stored in the agent constraint maps 936 can be represented as statistical parameter sets that characterize expected agent operational patterns, including mean and standard deviation values for system call frequencies, network communication rates, and resource consumption levels, enabling enforcement programs to evaluate whether observed agent behavior deviates from established norms by computing statistical distances between current measurements and stored baseline parameters.
In some implementations, the kernel memory residency of the agent constraint maps 936 can enable enforcement programs to access policy data and agent state information through direct memory load instructions without incurring the overhead of context switches between kernel space and user space. Because the agent constraint maps 936 are allocated within kernel-managed memory regions, enforcement programs attached to kernel event trace points 934 can invoke map lookup helper functions (e.g., bpf_map_lookup_elem( )), that execute entirely within the kernel execution context, returning pointers to map value entries that the enforcement program can dereference using standard memory load instructions. This direct access pattern can enable enforcement programs to retrieve per-agent policy rules and evaluate intercepted operations against stored constraints within microsecond-scale or sub-microsecond-scale time intervals, thereby enabling pre-execution enforcement that evaluates compliance before the intercepted operation proceeds to substantive processing. The runtime update capability of the agent constraint maps 936 can enable the policy manager 1010 to modify per-agent execution constraints, adjust threshold values, add or remove permitted resource identifiers, and update behavioral baselines through atomic memory operations that modify individual map entries without requiring the enforcement programs to be detached from their kernel hook points, recompiled, or reloaded. For example, when the policy manager 1010 receives an updated operative boundary 914 that adds a new permitted network destination address for a particular AI agent 912, the kernel interface 1016 can invoke a map update helper function (e.g., bpf_map_update_elem( )), to insert a new entry into the hash map or LPM trie map that stores the permitted destination set for that agent, and the updated entry can become immediately visible to enforcement programs that subsequently perform lookup operations against the map, without any interruption to the continuous monitoring and enforcement operations performed by the kernel layer 930.
In some implementations, the shared memory regions provided by the agent constraint maps 936 can enable bidirectional communication between multiple enforcement programs executing within the kernel environment 1004 and between the kernel environment 1004 and the application environment 1002. Multiple enforcement programs attached to different kernel event trace points 934 (e.g., a file operation hook, a network socket hook, and a process management hook) can read from and write to the same agent constraint map entries, enabling coordinated enforcement where the outcome of one enforcement program's evaluation can influence the behavior of another enforcement program. For example, an enforcement program attached to a network hook can update a per-agent network activity counter in a per-CPU hash map, and a separate enforcement program attached to a timer hook can periodically read the accumulated counter values to determine whether the agent's network activity rate exceeds a threshold defined in the policy rules, triggering a quarantine action that is communicated to other enforcement programs through a shared quarantine status flag stored in a hash map entry. The shared memory regions can also enable user space components within the application environment 1002 to access map data through memory-mapped file descriptors that provide direct read and write access to the kernel-managed map memory without requiring per-access system call overhead. The memory-mapped interface can enable the policy manager 1010 to monitor enforcement program state, retrieve accumulated metrics, and push configuration updates to the agent constraint maps 936 through standard memory store operations that are visible to kernel space enforcement programs through the shared memory mapping.
In some implementations, the architecture 1000 operates as a pipeline that transforms operative boundaries 914 from the application environment 1002 into kernel-level enforcement within the kernel environment 1004 through a sequence of operations. The constraint parser 1012 receives and parses the operative boundaries 914 into a structured intermediate representation. The bytecode compiler 1014 transforms the intermediate representation into compiled eBPF bytecode. The kernel interface 1016 transfers the compiled bytecode to the kernel environment 1004. The kernel-level verifier 932 validates the compiled bytecode against safety constraints. Upon successful verification, the enforcement program is attached to the kernel event trace points 934 and begins intercepting AI agent operations. During runtime, when an AI agent 912 initiates a system call, the attached enforcement program retrieves the agent's execution constraints from the agent constraint maps 936 using the agent identifier extracted from the execution context, evaluates the requested operation against the retrieved constraints, and returns an enforcement decision (e.g., permit the operation, deny the operation by returning an error code, and/or the like) before the requested operation proceeds. The architecture 1000 thereby enables pre-execution enforcement that can block non-compliant operations at the kernel level before substantive operation processing occurs, and because user space processes cannot directly access or modify kernel memory where the enforcement programs execute, the architecture 1000 reduces tampering possibilities and provides enforcement that cannot be circumvented by compromised application-layer code.
In some implementations, within the application environment 1102, a runtime query 1110 represents a request from an AI agent to execute one or more transformation operations on an internal operational dataset. The runtime query 1110 includes transform operations 1112 and an operable dataset 1114. The transform operations 1112 define the specific computational operations (e.g., cryptographic hash functions, keyed hash functions, deterministic encoding functions, matrix multiplication operations, data serialization operations, and/or the like) that the AI agent requests to perform on the operable dataset 1114. The operable dataset 1114 represents the data upon which the transform operations 1112 are to be executed, and the operable dataset 1114 can include one or more portions of the AI agent's internal operational dataset (e.g., model weight parameters, feature vectors, event traces, configuration data, inference results, and/or the like) corresponding to one or more operative boundaries defined for the AI agent. The runtime query 1110 can be initiated by the AI agent through standard system call interfaces (e.g., file operations such as open( ), read( ), write( ), and close( ); network socket operations such as socket( ), connect( ), send( ), and recv( ); memory allocation operations such as mmap( ) and brk( ); process management operations such as fork( ), exec( ), and clone( ); and/or the like) that request services from the kernel environment 1104. Each system call invocation associated with the runtime query 1110 can serve as an interception point where the kernel environment 1104 evaluates the requested operation against the AI agent's assigned execution constraints before permitting the operation to proceed.
In some implementations, the runtime query 1110 connects to both an execution 1132 path and a disablement 1134 path within the application environment 1102, indicating that the runtime query 1110 can either proceed to execution 1132 or be subject to disablement 1134 based on compliance evaluation results generated by the kernel environment 1104. The execution 1132 path represents the outcome where the kernel environment 1104 determines that the transform operations 1112 of the runtime query 1110 satisfy the one or more operative boundaries defined for the AI agent, and the transform operations 1112 are permitted to proceed to substantive processing on the operable dataset 1114. The disablement 1134 path represents the outcome where the kernel environment 1104 determines that the transform operations 1112 of the runtime query 1110 fail to satisfy the one or more operative boundaries, and the transform operations 1112 are blocked before substantive operation processing occurs. Disablement 1134 can include one or more enforcement actions such as returning an error code (e.g., −EPERM indicating permission denied, −EACCES indicating access denied, and/or the like) to the requesting AI agent process, dropping a network packet associated with the non-compliant operation at an XDP processing layer or a TC processing layer, denying file access by returning a denial indicator from a Linux Security Module (LSM) hook, throttling the operation by introducing a scheduling delay, and/or the like. The branching between execution 1132 and disablement 1134 occurs based on the compliance determination performed by the kernel environment 1104, and the AI agent process within the application environment 1102 receives either a success return code (e.g., indicating that the operation completed) or an error return code (e.g., indicating that the operation was denied) without awareness that the enforcement is occurring at the kernel level.
In some implementations, the kernel environment 1104 includes a kernel event trace point 934 that intercepts and monitors the runtime query 1110 as the runtime query 1110 transitions from the application environment 1102 to the kernel environment 1104. The kernel event trace point 934 can include one or more of: a breakpoint, a kernel probe (e.g., kprobe, kretprobe), a Linux Security Module (LSM) hook (e.g., security_file_permission( ), security_inode_permission( ), security_file_mmap( ), and/or the like), an express Data Path (XDP) hook that intercepts network packets at a network interface level before kernel network stack processing, a traffic control (TC) hook that filters network traffic at the network stack level, a tracepoint that provides a static kernel instrumentation interface, and/or a control group (cgroup) hook that enforces per-container and per-process-group controls. The kernel event trace point 934 captures event data associated with the runtime query 1110 and generates an event context record 1120 that includes contextual information about the intercepted operation. The event context record 1120 can include one or more of: a process identifier (e.g., PID) assigned by a scheduler of the operating system that identifies the AI agent process that initiated the runtime query 1110, a type of resource interaction (e.g., file read, file write, network send, network receive, memory allocation, process creation, and/or the like) that characterizes the category of system operation requested by the runtime query 1110, a timestamp (e.g., with nanosecond precision from a kernel monotonic clock and/or hardware performance counters) that records when the interception occurred, an identifier of a resource (e.g., a file path, a network destination address, a memory address range, a process identifier of a target process, and/or the like) identified by the runtime query 1110, user credentials (e.g., user identifier, group identifier, and/or the like) associated with the AI agent process, and/or additional metadata (e.g., system call arguments, file descriptor values, socket parameters, and/or the like) captured from the execution context at the moment of interception. The kernel event trace point 934 can be monitored via one or more extended Berkeley Packet Filter (eBPF) processes deployed on the system kernel, where the eBPF processes execute as verified code segments within the kernel environment 1104 that attach to the kernel event trace point 934 and execute monitoring and enforcement logic whenever the AI agent performs system operations.
In some implementations, the kernel environment 1104 includes agent constraint maps 936 that store execution constraints and policy rules correlating AI agent identifiers to respective operative boundaries. The agent constraint maps 936 can be implemented as kernel-resident data structures (e.g., hash maps of type BPF_MAP_TYPE_HASH providing O(1) lookup complexity, array maps of type BPF_MAP_TYPE_ARRAY providing direct index-based access, per-CPU maps of type BPF_MAP_TYPE_PERCPU_HASH eliminating lock contention across multiple processor cores, longest prefix match (LPM) trie maps for network policy enforcement, and/or the like) that reside in kernel memory space and can be directly accessed by enforcement programs without context switching to user space. Each entry in the agent constraint maps 936 can associate an AI agent identifier (e.g., a process identifier, a control group identifier, a namespace identifier, a cryptographic hash of an agent registration credential, and/or the like) with a structured data record encoding the policy rules applicable to the identified agent. The structured data record can include fields specifying permitted system call types (e.g., as a bitmask of allowed system call numbers), allowable network destination ranges (e.g., as arrays of CIDR notation address blocks and associated port ranges), maximum memory allocation thresholds (e.g., as unsigned 64-bit integer values representing byte limits), authorized file system paths (e.g., as arrays of path string hashes), maximum concurrent thread counts (e.g., as unsigned integer values), behavioral baselines (e.g., as statistical parameter sets characterizing expected agent operational patterns), and/or other constraint parameters derived from the operative boundaries. The agent constraint maps 936 can be updated at runtime through atomic memory operations (e.g., via a kernel interface or through shared memory-mapped interfaces) without requiring enforcement program reloads or system reboots, and the agent constraint maps 936 can enable communication between multiple enforcement programs and between kernel space and user space through shared memory regions accessible from both execution contexts.
In some implementations, a kernel-level verifier 932 within the kernel environment 1104 can retrieve the one or more execution constraints from the agent constraint maps 936 that correspond to the AI agent identifier extracted from the event context record 1120, and can evaluate the runtime query 1110 against the retrieved execution constraints to determine a compliance status. The kernel-level verifier 932 can receive input from both the kernel event trace point 934 and the event context record 1120 to perform the compliance evaluation. The compliance evaluation can include comparing the transform operations 1112 of the runtime query 1110 against the execution constraints stored in the agent constraint maps 936 to determine whether the requested operations fall within the permissible operational parameters defined by the operative boundaries. For example, the kernel-level verifier 932 can evaluate whether a file access operation targets a file path that exists within the set of authorized file system paths stored in the agent constraint maps 936 for the requesting agent, whether a network connection attempt specifies a destination address that falls within the permitted network destination ranges, whether a memory allocation request specifies a size that does not exceed the maximum memory allocation threshold, whether a process creation operation would cause the agent's current thread count to exceed the maximum concurrency limit, and/or the like. The compliance evaluation can occur prior to execution of subsequent atomic operations following activation of the kernel event trace point 934, such that non-compliant operations can be blocked at the kernel level before substantive operation processing occurs. Based on the compliance determination, the kernel-level verifier 932 can either permit execution 1132 of the transform operations 1112 or trigger disablement 1134 to block non-compliant operations.
In some implementations, the retrieval of execution constraints from the agent constraint maps 936 by the kernel-level verifier 932 can be performed through a hash map lookup operation that uses the AI agent identifier as a key to locate the corresponding constraint entry within the kernel-resident data structure. The AI agent identifier can be extracted from the event context record 1120 by invoking a kernel helper function that returns the process identifier and thread group identifier associated with the intercepted system call. The kernel-level verifier 932 can use this extracted identifier to invoke a map lookup helper function that traverses the hash map within the agent constraint maps 936 and returns a pointer to the structured data record containing the execution constraints applicable to the identified agent. The hash map lookup can provide O(1) expected-time complexity, enabling the kernel-level verifier 932 to retrieve per-agent execution constraints within sub-microsecond time intervals. In cases where the lookup returns a null pointer indicating that no constraint entry exists for the extracted agent identifier, the kernel-level verifier 932 can apply a default enforcement policy (e.g., denying the operation, applying a system-wide baseline constraint set, and/or the like) to ensure that unregistered or unrecognized agents cannot bypass the enforcement infrastructure.
In some implementations, the execution constraints retrieved from the agent constraint maps 936 can be represented as a structured data record that encodes multiple categories of permissible operational parameters for the identified AI agent. The structured data record can include fields specifying permitted system call types encoded as a bitmask of allowed system call numbers, such that the kernel-level verifier 932 can perform a bitwise AND operation between the intercepted system call number and the bitmask to determine whether the system call type is authorized for the requesting agent. The structured data record can further include fields specifying allowable network destination ranges encoded as arrays of CIDR notation address blocks and associated port ranges, maximum memory allocation thresholds encoded as unsigned 64-bit integer values representing byte limits, authorized file system paths encoded as arrays of path string hashes that enable efficient membership verification through hash comparison operations, and maximum concurrent thread counts encoded as unsigned integer values. Each field within the structured data record can correspond to a distinct category of operative boundary defined for the agent, enabling the kernel-level verifier 932 to evaluate multiple constraint categories within a single enforcement program invocation.
In some implementations, the event context record 1120 can provide the kernel-level verifier 932 with the contextual information necessary to evaluate the runtime query 1110 against the retrieved execution constraints. The event context record 1120 can be generated by the kernel event trace point 934 at the moment of interception and can include a process identifier (e.g., PID) assigned by the operating system scheduler that identifies the AI agent process that initiated the runtime query 1110, a type of resource interaction (e.g., file read, file write, network send, network receive, memory allocation, process creation, and/or the like) that characterizes the category of system operation requested, a timestamp captured from a kernel monotonic clock with nanosecond precision that records when the interception occurred, an identifier of the target resource (e.g., a file path string, a network destination address and port number, a memory address range, a process identifier of a target process, and/or the like) specified by the runtime query 1110, and user credentials (e.g., user identifier, group identifier, and/or the like) associated with the AI agent process. The kernel-level verifier 932 can extract specific fields from the event context record 1120 based on the type of resource interaction indicated therein, such that file access evaluations extract the file path field, network evaluations extract the destination address and port fields, memory evaluations extract the requested allocation size field, and process management evaluations extract the current thread count field.
In some implementations, the compliance evaluation performed by the kernel-level verifier 932 can involve a sequence of comparison operations that evaluate the parameters of the intercepted runtime query 1110 against the corresponding constraint fields within the retrieved execution constraints. For file access operations, the kernel-level verifier 932 can compute a hash of the target file path string extracted from the event context record 1120 and can perform a lookup against the authorized file system path hashes stored in the agent constraint maps 936 to determine whether the target path exists within the permitted set. For network connection operations, the kernel-level verifier 932 can extract the destination IP address and port number from the event context record 1120 and can perform a longest prefix match (LPM) trie lookup or a hash map lookup against the permitted network destination entries stored in the agent constraint maps 936 to determine whether the destination falls within an authorized address range. For memory allocation operations, the kernel-level verifier 932 can extract the requested allocation size from the event context record 1120 and can perform an arithmetic comparison against the maximum memory allocation threshold stored in the agent constraint maps 936, where the comparison can further account for the agent's cumulative memory consumption by reading a per-agent memory usage counter maintained in a per-CPU map within the agent constraint maps 936 and adding the requested allocation size to determine whether the resulting total would exceed the threshold. For process creation operations, the kernel-level verifier 932 can read the agent's current thread count from a counter maintained in the agent constraint maps 936 and can perform an arithmetic comparison against the maximum concurrency limit to determine whether spawning an additional thread would exceed the permitted threshold.
In some implementations, the compliance evaluation can be structured to order the comparison operations such that less computationally expensive checks are performed before more computationally expensive checks, enabling early termination of the evaluation when an initial check determines that the intercepted operation is non-compliant. For example, the kernel-level verifier 932 can first verify that the intercepted system call type is included in the permitted system call bitmask for the requesting agent using a single bitwise AND operation, and can immediately return a denial indicator if the system call type is not authorized, thereby avoiding the more computationally expensive constraint evaluations (e.g., hash map lookups for file path verification, LPM trie traversals for network destination matching, and/or the like) that would otherwise be performed. This ordered evaluation approach can reduce the average execution time of the enforcement program by minimizing the number of map access operations performed per intercepted event, particularly for agents that attempt operations outside their authorized system call set.
In some implementations, the pre-execution nature of the compliance evaluation ensures that the kernel-level verifier 932 completes the constraint comparison and generates the compliance determination before the kernel proceeds with substantive processing of the intercepted operation. Because the enforcement program executes within the kernel call path at the kernel event trace point 934, the compliance evaluation occurs synchronously with the system call processing, such that the kernel awaits the enforcement program's return value before advancing the intercepted operation to subsequent processing stages. When the kernel-level verifier 932 determines that the runtime query 1110 satisfies all applicable execution constraints, the enforcement program can return a success indicator (e.g., a zero value) that permits the kernel to proceed with normal processing of the system call, resulting in execution 1132 of the transform operations 1112. When the kernel-level verifier 932 determines that the runtime query 1110 fails to satisfy one or more execution constraints, the enforcement program can return a denial indicator (e.g., a negative error code such as −EPERM indicating permission denied or −EACCES indicating access denied) that causes the kernel to abort processing of the system call, resulting in disablement 1134 of the non-compliant transform operations 1112. The AI agent process within the application environment 1102 can receive the error code as the return value of the system call invocation without awareness that the enforcement is occurring at the kernel level, because the error code is indistinguishable from a standard permission denial generated by the operating system's native access control mechanisms.
In some implementations, the kernel environment 1104 generates an attestation record 1140 that documents the compliance status of the evaluated runtime query 1110. The attestation record 1140 provides a cryptographic record of the enforcement decision generated within the kernel environment 1104. The attestation record 1140 can include one or more of: a cryptographic hash (e.g., a SHA-256 digest, a SHA-512 digest, and/or the like) computed over the concatenation of the event data and the compliance evaluation result, a timestamp (e.g., with nanosecond precision from a kernel monotonic clock and/or hardware performance counters) indicating when the compliance evaluation completed, an agent identifier (e.g., the unique alphanumeric string, process identifier, or cryptographic hash that identifies the AI agent whose operation was evaluated), an operation type (e.g., file read, file write, network send, network receive, memory allocation, process creation, and/or the like) characterizing the intercepted operation, a compliance decision (e.g., allow or deny) indicating the enforcement outcome, and/or a digital signature binding the attestation data to a specific time period and system state. The attestation record 1140 can be digitally signed using algorithms such as Ed25519, ECDSA with P-256 curve, or RSA with 2048-bit or larger keys, with the signature stored alongside the attestation record 1140 to enable verification of authenticity and integrity by downstream agents or audit systems. The digital signature can be generated using a private key stored in hardware-protected storage (e.g., a trusted platform module, a secure enclave, and/or the like) that prevents unauthorized access by user space processes, such that the signature provides non-repudiable proof that the attestation record 1140 originated from the kernel environment 1104 and has not been modified since generation.
In some implementations, the cryptographic hash included within the attestation record 1140 can be computed by an enforcement program executing within the kernel environment 1104 at the time the compliance evaluation completes. The cryptographic hash can be generated by concatenating the constituent data fields of the attestation record 1140 into a single byte sequence in a canonical order, such as agent identifier followed by operation type followed by compliance decision followed by timestamp followed by event-specific parameters (e.g., file path string, network destination address and port, memory allocation size, and/or the like), and applying a cryptographic hash function (e.g., SHA-256, SHA-512) to the concatenated byte sequence to produce a fixed-length digest value. For example, when the enforcement program evaluates a file read operation initiated by a provider AI agent and determines that the operation satisfies the per-agent file access policies stored in the agent constraint maps 936, the enforcement program can concatenate the agent's unique alphanumeric identifier, the string “file_read” representing the operation type, the string “allow” representing the compliance decision, the nanosecond-precision timestamp captured from the kernel monotonic clock, and the intercepted file path string into a contiguous byte buffer, and can invoke a kernel helper function or inline hash computation routine to apply SHA-256 to the buffer contents, producing a 256-bit digest that uniquely represents the specific enforcement event. The resulting cryptographic hash can serve as a tamper-evident fingerprint of the attestation record 1140, such that any modification to any constituent data field after hash computation can produce a different digest value upon recomputation, thereby enabling detection of unauthorized alterations to the attestation data.
In some implementations, the timestamp included within the attestation record 1140 can be captured from a kernel monotonic clock that provides a time reference independent of wall-clock adjustments, such that the timestamp value increases monotonically regardless of system time changes, daylight saving time transitions, or network time protocol synchronization events. The kernel monotonic clock can provide nanosecond-precision time measurements by reading hardware performance counters or high-resolution timer registers available within the processor architecture. The nanosecond precision can enable the kernel environment 1104 to establish a precise temporal ordering of attestation records 1140 generated for concurrent or near-concurrent agent operations, such that when multiple AI agents within the application environment 1102 initiate system calls within overlapping time intervals, the timestamps within the respective attestation records 1140 can distinguish the chronological sequence of compliance evaluations with sub-microsecond granularity. The timestamp can be captured at the moment the enforcement program completes the compliance evaluation and generates the compliance decision, rather than at the moment the system call was initially intercepted by the kernel event trace point 934, thereby recording the time at which the enforcement outcome was determined. In some implementations, the attestation record 1140 can include both an interception timestamp indicating when the kernel event trace point 934 captured the system call and a decision timestamp indicating when the compliance evaluation completed, enabling measurement of the enforcement program's execution latency for performance monitoring purposes.
In some implementations, the agent identifier included within the attestation record 1140 can be represented as a fixed-length byte sequence derived from one or more process-level attributes associated with the AI agent whose operation was evaluated. The agent identifier can be implemented as a process identifier (PID) assigned by the operating system scheduler that uniquely distinguishes the agent process from other concurrently executing processes, a control group (cgroup) identifier that associates the agent process with a resource management group, a namespace identifier that identifies the isolation context within which the agent process executes, or a cryptographic hash computed over an agent registration credential that was assigned during agent enrollment with the kernel-based management platform. The enforcement program executing within the kernel environment 1104 can extract the agent identifier from the execution context at the kernel event trace point 934 by invoking a kernel helper function (e.g., bpf_get_current_pid_tgid( )) that returns the process identifier and thread group identifier associated with the intercepted system call. The extracted agent identifier can serve as a lookup key for retrieving per-agent execution constraints from the agent constraint maps 936 during the compliance evaluation, and can be embedded within the attestation record 1140 to enable subsequent correlation of the attestation record 1140 with the specific AI agent whose operation was evaluated, thereby supporting per-agent audit trail construction and cross-verification operations performed by other AI agents within the multi-tiered distributed system.
In some implementations, the operation type field included within the attestation record 1140 can be represented as an enumerated value or a string identifier that categorizes the intercepted system call into a predefined classification of resource interaction types. The operation type can indicate the category of kernel service requested by the AI agent, such as a file read operation corresponding to a read( ) or pread( ) system call that retrieves data from a storage device 944, a file write operation corresponding to a write( ) or pwrite( ) system call that persists data to a storage device 944, a network send operation corresponding to a send( ) or sendto( ) system call that transmits data through a network interface 946, a network receive operation corresponding to a recv( ) or recvfrom( ) system call that receives data from a network interface 946, a memory allocation operation corresponding to an mmap( ) or brk( ) system call that reserves allocable memory 942, or a process creation operation corresponding to a fork( ), exec( ), or clone( ) system call that spawns a new execution context. The operation type field can enable downstream consumers of the attestation record 1140, such as audit logging processes, compliance verification agents, or forensic analysis systems, to filter and categorize attestation records 1140 based on the nature of the evaluated operations without requiring access to the full event context data, thereby supporting efficient querying and analysis of enforcement decision histories across large volumes of attestation records.
In some implementations, the compliance decision field included within the attestation record 1140 can be represented as a binary indicator or a structured decision record that captures the enforcement outcome determined by the kernel-level verifier 932 during the compliance evaluation. The compliance decision can indicate an allow outcome when the kernel-level verifier 932 determines that the runtime query 1110 satisfies all applicable execution constraints retrieved from the agent constraint maps 936, resulting in the enforcement program returning a success indicator (e.g., a zero value) that permits the kernel to proceed with normal processing of the intercepted system call along the execution 1132 path. The compliance decision can alternatively indicate a deny outcome when the kernel-level verifier 932 determines that the runtime query 1110 fails to satisfy one or more execution constraints, resulting in the enforcement program returning a denial indicator (e.g., a negative error code such as −EPERM or −EACCES) that causes the kernel to abort processing of the intercepted system call along the disablement 1134 path. In some implementations, the compliance decision field can further include a rule identifier that specifies which particular execution constraint within the agent constraint maps 936 triggered the enforcement action, enabling forensic analysis to determine the specific policy rule that caused an operation to be permitted or denied.
In some implementations, the digital signature included within the attestation record 1140 can be generated by applying an asymmetric cryptographic signing operation on the cryptographic hash of the attestation record data using a private key that is accessible only within the kernel environment 1104 or within hardware-protected storage. When the Ed25519 algorithm is used, the enforcement program or a kernel-resident signing module can apply the Ed25519 signature function to the SHA-256 or SHA-512 digest of the attestation record data using a 256-bit private key, producing a 512-bit (64-byte) signature value that can be appended to the attestation record 1140. When ECDSA with the P-256 curve is used, the signing operation can produce a signature comprising two 256-bit integer values (r, s) that together form the ECDSA signature over the hash digest. When RSA with 2048-bit or larger keys is used, the signing operation can produce a signature of length equal to the key size (e.g., 256 bytes for a 2048-bit key) by applying the RSA signing function to the hash digest using the private key. The private key used for signing can be stored within a trusted platform module (TPM) that provides hardware-isolated key storage with access controls preventing extraction of the key material by any software process, or within a secure enclave (e.g., Intel SGX, ARM TrustZone) that provides an isolated execution environment where the signing operation can be performed without exposing the private key to the general-purpose kernel or user space processes. The corresponding public key can be distributed to downstream verification entities, such as the second AI agent, audit logging processes, or blockchain smart contracts, enabling these entities to verify the digital signature by applying the corresponding public key verification operation to the attestation record data and the signature value, confirming that the attestation record 1140 was generated by an authorized kernel environment 1104 and has not been modified since the signature was applied.
In some implementations, the attestation record 1140 can be structured as a fixed-size or variable-size data record within the kernel environment 1104, where the data fields are serialized into a contiguous byte sequence according to a predefined schema that specifies the byte offset, data type, and length of each field. The predefined schema can enable both kernel-space enforcement programs and user-space components to parse and interpret the attestation record 1140 without ambiguity. For example, the attestation record 1140 can be serialized with the agent identifier occupying the first fixed number of bytes (e.g., 8 bytes for a 64-bit process identifier or 32 bytes for a SHA-256 hash of an agent credential), followed by the operation type encoded as a fixed-length enumerated value (e.g., 4 bytes), followed by the compliance decision encoded as a single byte (e.g., 0x01 for allow, 0x00 for deny), followed by the timestamp encoded as an unsigned 64-bit integer representing nanoseconds since system boot, followed by the cryptographic hash occupying 32 bytes (for SHA-256) or 64 bytes (for SHA-512), and followed by the digital signature occupying a length determined by the signing algorithm (e.g., 64 bytes for Ed25519, 64 bytes for ECDSA P-256, or 256 bytes for RSA-2048). The enforcement program within the kernel environment 1104 can write the serialized attestation record 1140 to the ring buffer 1150 by invoking a kernel helper function (e.g., bpf_ringbuf_output( )) that copies the serialized byte sequence from the enforcement program's stack memory into the next available position within the ring buffer 1150, enabling asynchronous transfer to user space components for persistent storage, audit logging, and transmission to the multi-agent storage 1160.
In some implementations, the attestation record 1140 can include forensic data that captures detailed information about the evaluated runtime query 1110 and the enforcement decision. The forensic data can include a unique event identifier (e.g., a monotonically increasing sequence number, a UUID, and/or the like) that enables correlation and deduplication of attestation records across the kernel environment 1104, high-resolution timestamps with nanosecond precision (e.g., captured from a kernel monotonic clock and/or hardware performance counters) that record the exact timing of the intercepted operation and the enforcement decision, an agent identifier (e.g., the process identifier, control group identifier, namespace identifier, and/or cryptographic hash) that links the attestation record 1140 to the specific AI agent whose operation was evaluated, full event context (e.g., all parameters and state information available at the kernel event trace point 934 at the moment of interception, including system call arguments, file descriptors, network socket parameters, memory addresses, and/or the like), a feature vector (e.g., a numerical vector representation of behavioral characteristics extracted from the event data) used for machine learning inference during the compliance evaluation, baseline deviation scores (e.g., numerical values quantifying how each feature of the observed behavior diverged from the established behavioral baseline stored in the agent constraint maps 936), a computed anomaly score (e.g., a continuous value between 0.0 and 1.0 generated by a machine learning model evaluating the behavioral features against learned representations of reference operational patterns), and an enforcement decision (e.g., a structured record indicating the decision outcome such as allow or deny, quarantine flags, restriction types applied, and/or the rule identifier that triggered the enforcement action). The forensic data within the attestation record 1140 can enable post-incident analysis, compliance verification, and continuous improvement of detection models by providing a record of the enforcement decision and the data upon which the decision was based.
In some implementations, the attestation record 1140 can be chained such that each attestation record 1140 includes a hash of a preceding attestation record, creating a cryptographic dependency chain that enables detection of unauthorized modifications to historical records. The chaining can be implemented by including a previous hash field within each attestation record 1140 that stores the cryptographic hash of the immediately preceding attestation record in the sequence, such that altering any single record in the chain invalidates the hash references stored in all subsequent records and can be detected by a chain verification process that traverses the sequence and recomputes each hash for comparison against the stored values. The kernel environment 1104 can maintain separate hash chains per agent identifier within the agent constraint maps 936, where each agent's chain independently links the agent's attestation records through sequential hash dependencies, thereby enabling per-agent audit trail verification without requiring cross-agent chain synchronization during the hash computation process.
In some implementations, a ring buffer 1150 within the kernel environment 1104 facilitates the transfer of event data and attestation records from the kernel environment 1104 to user space components for audit logging and further processing. The ring buffer 1150 can be implemented as a kernel-resident data structure (e.g., of type BPF_MAP_TYPE_RINGBUF) that provides a lock-free circular buffer mechanism for streaming event data from kernel space to user space applications. The ring buffer 1150 can be allocated as a contiguous memory region of a configurable size (e.g., 64 megabytes) that is shared between kernel space and user space through memory-mapped interfaces. Enforcement programs executing within the kernel environment 1104 can write attestation records 1140 and event data to the ring buffer 1150 by invoking a kernel helper function (e.g., bpf_ringbuf_output( )) that copies event data from the enforcement program's stack memory into the next available position within the circular buffer. The ring buffer 1150 can maintain separate producer and consumer position indicators, where the producer position tracks the write location used by kernel space enforcement programs and the consumer position tracks the read location used by user space applications, enabling concurrent read and write operations without requiring mutual exclusion locks. User space components (e.g., a policy manager, an audit logging process, a billing system, and/or the like) can poll the ring buffer 1150 using event notification mechanisms (e.g., epoll-based file descriptor monitoring) to detect when new event data is available for consumption, enabling asynchronous transfer of attestation records 1140, compliance evaluation results, and enforcement decision logs from the kernel environment 1104 to the application environment 1102 without requiring per-event system call overhead.
In some implementations, the ring buffer 1150 connects to a multi-agent storage 1160 that stores verification records, attestation records, and other compliance-related data accessible to multiple AI agents within the distributed system. The multi-agent storage 1160 can include a memory structure (e.g., a distributed ledger, a blockchain, a shared cloud repository, a decentralized file system, and/or the like) accessible to multiple AI agents including a first AI agent and a second AI agent. The multi-agent storage 1160 can store the attestation records 1140 generated by the kernel environment 1104 in association with identifier strings identifying the respective AI agents whose operations were evaluated. The multi-agent storage 1160 can further store reference values (e.g., unique fixed reference values generated by applying transformation operation sets on machine-readable data structures defining operative boundaries) representing the one or more operative boundaries for AI agents, verification artifacts (e.g., compliance proofs generated by AI agents to demonstrate adherence to operative boundaries), and verification records (e.g., records including representations of verification statuses determined by comparing reference values with observed values indicated by verification artifacts). The execution 1132 and disablement 1134 paths feed back to the multi-agent storage 1160, which maintains records of agent operations and compliance decisions. For example, when the kernel environment 1104 permits execution 1132 of the transform operations 1112, the resulting output data and the associated attestation record 1140 can be stored in the multi-agent storage 1160 in association with the AI agent's identifier, enabling a second AI agent to retrieve the attestation record 1140 and the verification artifact from the multi-agent storage 1160 for cross-verification purposes. When the kernel environment 1104 triggers disablement 1134, the denial event and the associated attestation record 1140 can be stored in the multi-agent storage 1160 to provide an auditable record of the enforcement action.
In some implementations, the multi-agent storage 1160 enables cross-verification between AI agents without requiring disclosure of the underlying operational data, thereby preserving operational data privacy across the multi-tiered distributed system. A second AI agent can retrieve a verification artifact generated by a first AI agent from the multi-agent storage 1160, where the verification artifact indicates an observed value (e.g., a commitment value, a hash output, a zero-knowledge proof, and/or the like) generated by applying the transform operations 1112 on the operable dataset 1114 of the first AI agent. The second AI agent can determine a verification status of the verification artifact by comparing a reference value (e.g., a unique fixed reference value representing the operative boundaries for the first AI agent stored in the multi-agent storage 1160) with the observed value indicated by the verification artifact. The second AI agent can generate a verification record stored within the multi-agent storage 1160 in association with respective identifier strings identifying both the first AI agent and the second AI agent, the verification record indicating the verification status of the verification artifact. The verification record can include one or more of: a timestamp indicating when the verification was performed, a digital signature of the second AI agent, and/or an indication of the operative boundaries against which the verification was conducted. The multi-agent storage 1160 can be implemented as a distributed ledger where each verification record is stored as a transaction validated by network consensus and appended to an immutable block accessible to authorized participants in the multi-tiered distributed system.
In some implementations, the architecture 1100 operates as a pipeline that transforms a runtime query 1110 from the application environment 1102 into a compliance-evaluated operation within the kernel environment 1104 through a sequence of operations. The kernel event trace point 934 intercepts the runtime query 1110 as the runtime query 1110 transitions from the application environment 1102 to the kernel environment 1104. The kernel event trace point 934 generates the event context record 1120 capturing contextual information about the intercepted operation. The kernel-level verifier 932 retrieves the execution constraints from the agent constraint maps 936 using the agent identifier extracted from the event context record 1120. The kernel-level verifier 932 evaluates the runtime query 1110 against the retrieved execution constraints to determine the compliance status. Based on the compliance determination, the kernel environment 1104 either permits execution 1132 or triggers disablement 1134. The kernel environment 1104 generates the attestation record 1140 documenting the compliance status and the enforcement decision. The attestation record 1140 is written to the ring buffer 1150 for transfer to user space components. The ring buffer 1150 streams the attestation record 1140 to the multi-agent storage 1160 for immutable storage and subsequent cross-verification by other AI agents within the multi-tiered distributed system. Because user space processes cannot directly access or modify kernel memory where the enforcement programs execute, the architecture 1100 reduces tampering possibilities and provides enforcement that cannot be circumvented by compromised application-layer code within the application environment 1102.
At step 1202, the kernel-based management platform can detect, using kernel-level event trace points (e.g., the kernel event trace points 934 described with reference to
In some implementations, the detection at step 1202 can involve the kernel-level event trace points intercepting system call invocations initiated by the first AI agent as the system call invocations transition from an application environment (e.g., user space) to a kernel environment (e.g., kernel space). The kernel-level event trace points can capture event data associated with the runtime query and can generate an event context record (e.g., the event context record 1120 described with reference to
In some implementations, the kernel-level event trace points at step 1202 can be configured to intercept at least one of a file operation, a network operation, a process creation operation, or a permission modification operation. A file operation can include open, read, write, close calls, and/or the like, and can enable the first AI agent to access data stored in files, databases, or configuration repositories. A network operation can include socket creation, bind, connect, send, receive calls, and/or the like, and can enable the first AI agent to establish network connections and transfer data packets to external services or other agents. A process creation operation can include fork, exec, clone calls, and/or the like, and can enable the first AI agent to create child processes or execution threads for parallel computation. A permission modification operation can include change mode, set user identity calls, and/or the like, and can enable the first AI agent to alter security contexts or access permissions. Each intercepted system call invocation can serve as an interception point where the kernel environment evaluates the requested operation against the first AI agent's assigned execution constraints before permitting the operation to proceed.
In some implementations, a multi-agent storage (e.g., the multi-agent storage 1160 described with reference to
In some implementations, an operative map (e.g., the agent constraint maps 936 described with reference to
At step 1204, the kernel-based management platform can retrieve one or more execution constraints that correlate to the first AI agent using a kernel-level mapping (e.g., the operative map described above, the agent constraint maps 936 described with reference to
In some implementations, the execution constraints retrieved at step 1204 can be represented as a structured data record that encodes multiple categories of permissible operational parameters for the identified first AI agent. The structured data record can include fields specifying permitted system call types encoded as a bitmask of allowed system call numbers, such that the kernel-based management platform can perform a bitwise AND operation between the intercepted system call number and the bitmask to determine whether the system call type is authorized for the requesting agent. The structured data record can further include fields specifying allowable network destination ranges encoded as arrays of CIDR notation address blocks and associated port ranges. The structured data record can also include maximum memory allocation thresholds encoded as unsigned 64-bit integer values representing byte limits. The structured data record can additionally include authorized file system paths encoded as arrays of path string hashes that enable efficient membership verification through hash comparison operations, and/or maximum concurrent thread counts encoded as unsigned integer values. Each field within the structured data record can correspond to a distinct category of operative boundary defined for the first AI agent, enabling the kernel-based management platform to evaluate multiple constraint categories within a single enforcement program invocation.
In some implementations, when the lookup at step 1204 returns a null pointer indicating that no constraint entry exists for the extracted agent identifier, the kernel-based management platform can apply a default enforcement policy to ensure that unregistered or unrecognized agents cannot bypass the enforcement infrastructure. The default enforcement policy can include denying the operation, applying a system-wide baseline constraint set, and/or the like. The operative map can be updated at runtime through atomic memory operations (e.g., via a kernel interface or through shared memory-mapped interfaces) without requiring enforcement program reloads or system reboots. The operative map can also enable communication between multiple enforcement programs and between kernel space and user space through shared memory regions accessible from both execution contexts.
At step 1206, the kernel-based management platform can determine a compliance status by comparing the execution constraints retrieved at step 1204 with the transformation operations of the runtime query detected at step 1202. The compliance determination can occur prior to execution of subsequent atomic operations following activation of the kernel-level event trace points, such that non-compliant operations can be blocked at the kernel level before substantive operation processing occurs. The kernel-based management platform can evaluate whether the requested operations fall within the permissible operational parameters defined by the operative boundaries by performing a sequence of comparison operations that evaluate the parameters of the intercepted runtime query against the corresponding constraint fields within the retrieved execution constraints.
In some implementations, the compliance evaluation at step 1206 can involve different comparison operations depending on the type of resource interaction indicated by the event context record. For file access operations, the kernel-based management platform can compute a hash of the target file path string extracted from the event context record and can perform a lookup against the authorized file system path hashes stored in the operative map to determine whether the target path exists within the permitted set. For network connection operations, the kernel-based management platform can extract the destination IP address and port number from the event context record and can perform a longest prefix match (LPM) trie lookup or a hash map lookup against the permitted network destination entries stored in the operative map to determine whether the destination falls within an authorized address range. For memory allocation operations, the kernel-based management platform can extract the requested allocation size from the event context record and can perform an arithmetic comparison against the maximum memory allocation threshold stored in the operative map. The comparison can further account for the first AI agent's cumulative memory consumption by reading a per-agent memory usage counter maintained in a per-CPU map within the operative map and adding the requested allocation size to determine whether the resulting total would exceed the threshold. For process creation operations, the kernel-based management platform can read the first AI agent's current thread count from a counter maintained in the operative map and can perform an arithmetic comparison against the maximum concurrency limit to determine whether spawning an additional thread would exceed the permitted threshold.
In some implementations, the compliance evaluation at step 1206 can be structured to order the comparison operations such that less computationally expensive checks are performed before more computationally expensive checks, enabling early termination of the evaluation when an initial check determines that the intercepted operation is non-compliant. For example, the kernel-based management platform can first verify that the intercepted system call type is included in the permitted system call bitmask for the requesting agent using a single bitwise AND operation, and can return a denial indicator if the system call type is not authorized. This approach can avoid the more computationally expensive constraint evaluations (e.g., hash map lookups for file path verification, LPM trie traversals for network destination matching, and/or the like) that would otherwise be performed. Based on the compliance determination, the kernel-based management platform can either permit execution of the transformation operations or trigger disablement of non-compliant operations. Permitting execution can involve returning a success indicator such as a zero value that permits the kernel to proceed with normal processing of the system call. Triggering disablement can involve returning a denial indicator such as a negative error code including EPERM indicating permission denied or EACCES indicating access denied. Triggering disablement can also involve dropping a network packet associated with the non-compliant operation at an XDP processing layer or a TC processing layer, or denying file access by returning a denial indicator from an LSM hook.
At step 1208, the kernel-based management platform can generate a cryptographic attestation record (e.g., the attestation record 1140 described with reference to
In some implementations, the cryptographic hash included within the cryptographic attestation record at step 1208 can be computed by an enforcement program (e.g., an eBPF program) executing within the kernel environment at the time the compliance evaluation completes. The enforcement program can concatenate the constituent data fields of the cryptographic attestation record into a single byte sequence in a canonical order. This canonical order can include the agent identifier followed by the operation type followed by the compliance decision followed by the timestamp followed by event-specific parameters such as file path string, network destination address and port, memory allocation size, and/or the like. The enforcement program can then apply a cryptographic hash function (e.g., SHA-256, SHA-512, and/or the like) to the concatenated byte sequence to produce a fixed-length digest value. The resulting cryptographic hash can serve as a tamper-evident fingerprint of the cryptographic attestation record, such that modification to any constituent data field after hash computation can produce a different digest value upon recomputation, thereby enabling detection of unauthorized alterations to the attestation data.
In some implementations, the cryptographic attestation record generated at step 1208 can be digitally signed using algorithms such as Ed25519, ECDSA with P-256 curve, or RSA with 2048-bit or larger keys. The signature can be stored alongside the cryptographic attestation record to enable verification of authenticity and integrity by downstream agents or audit systems. The digital signature can be generated using a private key stored in hardware-protected storage (e.g., a trusted platform module, a secure enclave, and/or the like) that prevents unauthorized access by user space processes. The signature can thereby provide non-repudiable proof that the cryptographic attestation record originated from the kernel environment and has not been modified since generation. The cryptographic attestation record can be written to a ring buffer (e.g., the ring buffer 1150 described with reference to
In some implementations, the cryptographic attestation record generated at step 1208 can be chained such that each cryptographic attestation record includes a hash of a preceding cryptographic attestation record, creating a cryptographic dependency chain that enables detection of unauthorized modifications to historical records. The chaining can be implemented by including a previous hash field within each cryptographic attestation record that stores the cryptographic hash of the immediately preceding cryptographic attestation record in the sequence. Altering any single record in the chain can invalidate the hash references stored in all subsequent records and can be detected by a chain verification process that traverses the sequence and recomputes each hash for comparison against the stored values.
At step 1210, the kernel-based management platform can receive a verification artifact from the first AI agent indicating an observed value based on the cryptographic attestation record and application of the transformation operations on the internal operational dataset. The verification artifact can be received via the multi-agent storage from the first AI agent. The verification artifact can include an observed value (e.g., a commitment value, a hash output, a zero-knowledge proof, and/or the like) generated by the first AI agent by applying the transformation operations on one or more portions of the internal operational dataset of the first AI agent corresponding to the one or more operative boundaries. The transformation operations can include a cryptographic hash function, a keyed hash function, a deterministic encoding function, a zero-knowledge proof generation protocol, and/or the like. For example, the first AI agent can apply a SHA-256 cryptographic hash function on a subset of model weight parameters to generate a fixed-length hash output that serves as the verification artifact. The hash output can uniquely represent the current state of the model parameters without revealing the actual parameter values to other agents in the distributed system.
In some implementations, the verification artifact received at step 1210 can include a zero-knowledge proof generated by the first AI agent. The zero-knowledge proof can indicate that the internal operational dataset of the first AI agent satisfies the one or more operative boundaries defined by the machine-readable data structure without revealing the underlying operational data. For example, the first AI agent can generate a zero-knowledge proof demonstrating that neural network inference outputs fall within a permissible numerical range specified by the operative boundaries, such that a verifying agent can confirm the output range compliance without receiving the actual inference results or the input data that produced the inference results. In another example, the first AI agent can apply a keyed hash-based message authentication code (HMAC) function on network communication logs to produce a commitment value that cryptographically binds the first AI agent to reported communication patterns. This can enable subsequent verification that the first AI agent's network activity conformed to destination address restrictions defined in the operative boundaries.
In some implementations, the first AI agent can generate a transaction that includes the verification artifact (e.g., the hash, the proof, and/or the like) and can transmit the transaction to the multi-agent storage (e.g., a blockchain, a distributed ledger, and/or the like), where the transaction is stored immutably and associated with the first AI agent's unique identifier. The kernel-based management platform can obtain the verification artifact by querying the multi-agent storage using the first AI agent's identifier or other transaction metadata. The kernel-based management platform can retrieve the verification artifact and/or associated metadata such as timestamps or digital signatures.
At step 1212, the kernel-based management platform can validate the verification artifact using a second AI agent (e.g., an entity agent associated with a first entity, a compliance AI agent, and/or the like) by comparing a reference value with the observed value of the verification artifact. The reference value can represent operative boundaries for the first AI agent stored in the multi-agent storage. The second AI agent can retrieve the verification artifact generated by the first AI agent from the multi-agent storage and can determine a verification status of the verification artifact by comparing the reference value (e.g., the unique fixed reference value generated by the second AI agent and stored in the multi-agent storage) with the observed value indicated by the verification artifact. The comparison can involve different verification operations depending on the type of verification artifact received.
In some implementations, when both the reference value and the observed value are cryptographic hashes, the kernel-based management platform can perform a direct byte-to-byte equality check at step 1212. A match can confirm that the first AI agent's internal dataset satisfies the operative boundaries, resulting in a positive verification status, while a mismatch can trigger a noncompliance flag. In some implementations, when the verification artifact includes a zero-knowledge proof, the second AI agent can operate as a verifier by using the original reference value and the zero-knowledge proof to validate that the first AI agent's internal dataset meets the operative boundaries without revealing the data. The validation can use cryptographic operations such as verifying elliptic curve pairings for zk-SNARKs or checking inner product equations for Bulletproofs. If the zero-knowledge proof is valid, the verification status can indicate that the first AI agent is verified. The verification status can be determined using the zero-knowledge proof.
In some implementations, the validation at step 1212 can involve sequential approvals where the verification artifact is routed to a plurality of AI agents within the second AI agent set in a predetermined sequence. Each AI agent in the predetermined sequence can generate an agent-specific verification status indicating satisfaction of the verification artifact with the one or more operative boundaries. The kernel-based management platform can determine the verification status based on a number of respective agent-specific verification statuses indicating satisfaction of the first AI agent with the one or more operative boundaries exceeding a predetermined threshold. The predetermined threshold can require a simple majority, supermajority, or a minimum reputation-weighted score.
In some implementations, the kernel-based management platform can determine, using the second AI agent, a reputation score for the first AI agent based on a plurality of verification artifacts associated with the first AI agent. The reputation score can be determined by a weighted average of one or more verification statuses indicating satisfaction of a respective observed value with a respective reference value. The reputation score can also incorporate a decay value applied on one or more verification statuses based on a time since last failure of satisfaction of the respective observed value with the respective reference value. The reputation score can further incorporate a penalty value applied on one or more verification statuses indicating a failure of satisfaction of the respective observed value with the respective reference value. The kernel-based management platform can automatically approve or verify, using the second AI agent, a transaction associated with the first AI agent in response to the reputation score exceeding a predetermined threshold.
At step 1214, the kernel-based management platform can generate a verification record stored within the multi-agent storage indicating a validation status of the verification artifact. The verification record can be stored in association with identifiers for both the first AI agent and the second AI agent. The verification record can include a representation of the verification status (e.g., a compliance status, a pass/fail indicator, a numerical confidence score, and/or the like) for the verification artifact. The verification record can also include a timestamp indicating when the verification was performed. The verification record can further include a digital signature of the second AI agent that performed the verification, and/or an indication of the one or more operative boundaries against which the verification was conducted.
In some implementations, the kernel-based management platform can transmit (e.g., via APIs or direct smart contract calls) the verification record to the multi-agent storage at step 1214, where the verification record is stored in association with respective identifier strings identifying the first AI agent and the second AI agent. The multi-agent storage can be implemented as a distributed ledger where each verification record is stored as a transaction validated by network consensus and appended to an immutable block accessible to authorized participants in the multi-tiered distributed system. The verification record can provide an auditable record of the compliance determination, enabling subsequent retrieval and analysis by authorized agents, audit logging processes, or forensic analysis systems within the multi-tiered distributed system.
In some implementations, to notify an administrator or supervisor of noncompliance in cases where the verification status indicates that the observed value fails to satisfy the reference value, the kernel-based management platform can transmit, by the second AI agent, a notification message to a predetermined network address indicating the verification status for the verification artifact. The kernel-based management platform can further generate, by the first AI agent, a second verification record including a representation of a second verification status for a third AI agent associated with a third entity. The kernel-based management platform can store the second verification record in the multi-agent storage in association with respective identifier strings identifying the first AI agent and the third AI agent, thereby enabling cascading verification across multiple tiers of the distributed system.
In some implementations, the process 1200 can operate as a pipeline that combines kernel-level enforcement with cross-agent verification to provide a multi-layered compliance framework for AI agent operations across the multi-tiered distributed system. The kernel-level event trace points at step 1202 can provide pre-execution enforcement that evaluates AI agent operations against defined constraints before the operations proceed to substantive processing, such that non-compliant operations can be blocked at the kernel level before any resource access or state modification occurs. The cryptographic attestation records generated at step 1208 can provide tamper-evident records of enforcement decisions that can be independently verified by other agents within the multi-tiered distributed system, where each attestation record can include a cryptographic hash computed over the concatenation of event data and compliance evaluation results, a nanosecond-precision timestamp, an agent identifier, an operation type, a compliance decision, and a digital signature binding the attestation data to a specific time period and system state. The verification artifacts received at step 1210 and validated at step 1212 can enable cross-verification between AI agents without requiring disclosure of the underlying operational data, thereby preserving operational data privacy across the multi-tiered distributed system. The verification records generated at step 1214 can provide an immutable audit trail of compliance determinations that can be stored on a distributed ledger and accessed by authorized participants for audit, compliance reporting, and forensic analysis purposes. Because user space processes cannot directly access or modify kernel memory where the enforcement programs execute, the process 1200 can reduce tampering possibilities and can provide enforcement that cannot be circumvented by compromised application-layer code.
In some implementations, the pre-execution enforcement provided by the kernel-level event trace points at step 1202 can operate synchronously within the kernel call path, such that the enforcement program executes and completes its compliance evaluation before the kernel proceeds with substantive processing of the intercepted system call. When an AI agent initiates a system call (e.g., a file operation, a network operation, a memory allocation operation, a process creation operation, and/or the like), the kernel-level event trace points can invoke attached enforcement programs (e.g., eBPF programs) that receive event context including process identifiers, credentials, and operation-specific parameters. The enforcement programs can extract the agent identifier from the execution context by invoking a kernel helper function and can perform a hash map lookup against the operative map (e.g., the agent constraint maps 936 described with reference to
In some implementations, the cryptographic attestation records generated at step 1208 can be structured as fixed-size or variable-size data records serialized into contiguous byte sequences according to a predefined schema. Each cryptographic attestation record can include a cryptographic hash (e.g., a SHA-256 digest or a SHA-512 digest) computed by an enforcement program executing within the kernel environment at the time the compliance evaluation completes. The enforcement program can concatenate the constituent data fields of the attestation record into a single byte sequence in a canonical order, such as the agent identifier followed by the operation type followed by the compliance decision followed by the timestamp followed by event-specific parameters (e.g., file path string, network destination address and port, memory allocation size, and/or the like), and can apply a cryptographic hash function to the concatenated byte sequence to produce a fixed-length digest value that uniquely represents the specific enforcement event. The resulting cryptographic hash can serve as a tamper-evident fingerprint, such that any modification to any constituent data field after hash computation can produce a different digest value upon recomputation, thereby enabling detection of unauthorized alterations to the attestation data. The cryptographic attestation records can further be digitally signed using algorithms such as Ed25519, ECDSA with P-256 curve, or RSA with 2048-bit or larger keys, where the digital signature can be generated using a private key stored in hardware-protected storage (e.g., a trusted platform module, a secure enclave, and/or the like) that prevents unauthorized access by user space processes. The digital signature can provide non-repudiable proof that the cryptographic attestation record originated from the kernel environment and has not been modified since generation. In some implementations, the cryptographic attestation records can be chained such that each attestation record includes a hash of a preceding attestation record, creating a cryptographic dependency chain that can enable detection of unauthorized modifications to historical records.
In some implementations, the cross-verification enabled by the verification artifacts at step 1210 and the validation at step 1212 can preserve operational data privacy by allowing a verifying AI agent (e.g., the second AI agent) to confirm that a verified AI agent (e.g., the first AI agent) operates within defined operative boundaries without the verifying agent receiving or processing the verified agent's raw operational data such as training datasets, model architectures, internal configuration parameters, or inference results. The verification artifact can include an observed value (e.g., a commitment value, a hash output, a zero-knowledge proof, and/or the like) generated by the first AI agent by applying the transformation operations on one or more portions of the internal operational dataset corresponding to the operative boundaries. When the verification artifact includes a zero-knowledge proof, the second AI agent can operate as a verifier by using the original reference value stored in the multi-agent storage and the zero-knowledge proof to validate that the first AI agent's internal dataset meets the operative boundaries, using cryptographic operations specific to the chosen zero-knowledge proof protocol (e.g., verifying elliptic curve pairings for zk-SNARKs or checking inner product equations for Bulletproofs). When both the reference value and the observed value are cryptographic hashes, the kernel-based management platform can perform a direct byte-to-byte equality check, where a match can confirm that the first AI agent's internal dataset satisfies the operative boundaries, resulting in a positive verification status, while a mismatch can trigger a noncompliance flag. This cross-verification approach can enable compliance assessment across organizational boundaries within the multi-tiered distributed system without requiring any party to disclose sensitive operational information to another party.
In some implementations, the verification records generated at step 1214 can be stored within the multi-agent storage (e.g., a distributed ledger, a blockchain, and/or the like) in association with respective identifier strings identifying both the verifying AI agent (e.g., the second AI agent) and the verified AI agent (e.g., the first AI agent). Each verification record can include a representation of the verification status (e.g., a compliance status, a pass/fail indicator, a numerical confidence score, and/or the like) for the corresponding verification artifact, a timestamp indicating when the verification was performed, a digital signature of the AI agent that performed the verification, and an indication of the operative boundaries against which the verification was conducted. The multi-agent storage can be implemented as a permissioned blockchain where each verification record is packaged into a blockchain transaction that includes the generating agent's unique identifier, the verification outcome, and the cryptographic proof data, such that the transaction is validated by network consensus and appended to an immutable block accessible to all authorized participants in the multi-tiered distributed system. The immutable nature of the distributed ledger can ensure that verification records cannot be retroactively modified or deleted, thereby providing a permanent and auditable record of compliance determinations that can be retrieved by authorized agents, audit logging processes, or forensic analysis systems for subsequent review, compliance reporting, or dispute resolution purposes.
In some implementations, the tamper resistance provided by the kernel-level execution of enforcement programs within the process 1200 can derive from the architectural separation between user space and kernel space within the operating system. Because enforcement programs (e.g., eBPF programs) execute within kernel memory regions that are inaccessible to user space processes, a compromised AI agent operating within user space cannot directly read, modify, or disable the enforcement programs, the agent constraint maps storing execution constraints, or the attestation records generated during compliance evaluation. Even if an AI agent's application-layer code is fully compromised by an attacker, the kernel-level enforcement infrastructure can continue to intercept and evaluate the agent's system calls against the defined operative boundaries, because every user space process must request kernel services through system call interfaces to perform computational work such as file access, network communication, memory allocation, or process management. The enforcement programs can be validated by a kernel-level verifier (e.g., the kernel-level verifier 932 described with reference to
The input 1302 refers to user inputs, sensory data, structured data, unstructured data, and so forth, and can include a set of instructions to generate an output using the agents 1304. For instance, the input 1302 can include textual data, image data, audio data, video data, multi-modal data, and so forth. For instance, textual data can include documents, emails, chat messages, and/or logs. Image data can include photographs, diagrams, scanned documents, and/or other visual representations. In some implementations, multi-modal data combines two or more data types, such as annotated images, which might include both visual data and text data in the annotations, or videos with corresponding subtitles. In some implementations, the input 1302 includes a link (e.g., a URL) pointing to a knowledge base and/or a website.
The agents 1304 are autonomous (or semiautonomous) software and/or hardware entity that processes the input 1302 and generates a set of actions to fulfill the user's request. For example, a first agent 1304A can perform data cleaning, a second agent 1304B can perform feature extraction, and so forth. In some implementations, the agents 1304 are AI-based and use outputs from AI models (e.g., LLMs) and predefined objectives to autonomously generate and execute actions. The actions can be intended to fulfill specific tasks or requests made by the user, as well as other tasks or requests that are related to or associated with requests made by the user. In some implementations, actions can include tasks such as data retrieval, transaction processing, or system configuration changes. The predefined objectives of the agents 1304 are the specific goals or targets that the agents 1304 aim to achieve when generating the actions. The objectives can be set when constructing the agents 1304 or defined by the user through input parameters. In some implementations, predefined objectives are encoded within the architecture of the agents 1304. For example, when the agents 1304 adopt a neural network architecture, these objectives can weigh the activations of neurons within the network to influence the decision-making process. Certain neurons can be activated to prioritize actions that ensure compliance with specific guidelines or align with specific user preferences.
The agents 1304 can include a series of modules such as a natural language processing (NLP) module to interpret user inputs, a decision-making engine to determine the appropriate actions, and/or an execution module to carry out the actions on hardware or software assets. The agents 1304 can have access to various databases (e.g., knowledge bases) and APIs to retrieve particular information (e.g., domain-specific information, historical data, user preferences, and so forth). Additionally, the agents 1304 can operate in different modes, such as fully autonomous, semiautonomous with human oversight, or in collaboration with other agents. In fully autonomous mode, the agents 1304 can make decisions and execute actions without human intervention, relying entirely on the agents' 1304 programming and/or learned behaviors. Semiautonomous mode incorporates human oversight, allowing for manual review or approval of certain actions (e.g., in high-stakes or sensitive scenarios). The collaborative mode enables the agents 1304 to work in conjunction with other agents (i.e., different agents specializing in different tasks or domains to achieve more complex objectives). For example, the agents 1304 can be a specialized AI model designed for specific tasks, such as a virtual assistant, a chatbot, or an automation bot.
The agents 1304 can automatically generate and/or execute the smart contract 1306 based on the input 1302. The smart contract 1306 refers to a computational workflow (e.g., a series of computer-executable commands, a computer program, or a transaction protocol) that include rules, conditions, and/or execution logic governing the transformation of data within the agent management platform. A smart contract automatically executes, controls or documents events and actions according to the terms of the conditions. The smart contract 1306 can translate variable inputs 1302 into predetermined, executable commands that can subsequently be audited. The computational workflow includes instructions that dictate the operations to be performed, the order in which they should be executed, and the conditions under which certain actions should be triggered. For instance, the rules can specify that if a certain variable meets a particular threshold, a specific computational task will be initiated.
In some implementations, the data source 1308 injects additional context and parameters, in addition to the input 1302, used to generate the smart contract. The data source 1308 can include one or more database systems, external APIs, or real-time/near real-time data feeds to ensure that the smart contracts are according to the up-to-date data. The databases can be structured (e.g., SQL databases) or unstructured (e.g., NoSQL databases). For example, a database can store historical loan repayment data, which can be retrieved to assess a risk profile of a new loan application. External APIs can be used to fetch data from third-party services. These APIs can interface with various external systems to supply real-time or near-real-time data used for the operations of smart contracts. For example, real-time or near real-time data can be used if the conditions of a smart contract 1306 depend on live data. In some implementations, the data source 1308 can be managed by an agent. The agent can selectively transmit data to the agents 1304 to, for example, prevent the dissemination of personal data to certain agents 1304.
The transactions 1310 delineate one or more operations recorded as the smart contract 1306 executes its computational workflow. The transactions 1310 can indicate the occurrence of specific operations, such as data transformations, decision points, or events triggered within the smart contract 1306, that are determined, validated, and/or stored within the blockchain 1312. Each transaction can be associated with metadata that is stored along with the transaction on an immutable ledger such as the blockchain 1312. The metadata can include the timestamp of the transaction, which records the date and/or time the operation occurred, the parties involved in the transaction 1310, the nature of the operation (e.g., specific actions taken or conditions met), parameters or conditions that were applied during the operation, and so forth.
The blockchain 1312 can include a series of blocks 1314. Each block within blockchain 1312 can refer to a repository for one or more transactions 1310. Each block can be cryptographically linked to its predecessor to create a chain of transaction logs. Thus, any attempt to change the data within a block would require altering all subsequent blocks, making tampering computationally infeasible. Each block 1314 can include a block header and a block body. The block header includes metadata about the block 1314 itself, such as a unique identifier (hash) of the block 1314, the hash of the previous block 1314 in the chain, a timestamp providing the creation time of the block 1314, and/or a nonce (e.g., a number that increases sequentially in every attempt to generate a hash). The block body can include the transactions 1310 that have been validated and included in the block 1314. For example, users generate transactions broadcasted to the network. Network nodes (miners or validators) can verify transactions based on set rules and criteria, the validated transactions can be bundled into a new block by a miner or validator. The miner or validator can solve a cryptographic puzzle (proof of work) and/or demonstrate ownership (proof of stake) to add the block. Once verified, the new block can be added to the blockchain 1312, updating the chain across all nodes in the network.
Upon receiving a user interaction (e.g., clicking the “Extract Instructions” button in
Before automatically executing the computer-executable commands, the AI-based agent can first validate that the artifact 1410 created by, for example, a different AI-based agent, includes complete information (e.g., validating that the unstructured data 1402 is complete). In some implementations, when the unstructured data 1402 is incomplete, the agent management platform flags and/or alerts the user of the incomplete data.
The screenshot 1500 displays the generated artifact 1502. The artifact 1502 can include the set of variables 1504. Variables 1504 represent the data fields extracted from the unstructured dataset. In the screenshot 1500, the variables 1504 include the currency, amount, source account name, source account number, destination account name, destination account number, and routing number. Each variable can correspond to information used to process the wire transfer. For instance, the variable indicating the currency is denoted as “USD,” specifies the currency in which the transfer is to be executed.
Corresponding values 1506 denote the specific data points associated with each variable 1504. Corresponding values 1506 can be extracted from the unstructured dataset and populated into their respective fields within the artifact 1502. For example, the currency variable holds the value “USD,” the transfer amount variable holds the value “4,4500.90,” the source account name holds the value “My personal checking,” and so forth. In some implementations, the agent management platform can display additional metadata such as the confidence reliability or historical usage patterns associated with the extracted variables 1504. Interactive buttons within the interface, such as “Close” and “Process Payment,” can enable users to trigger or modify the computational workflow. In some implementations, the agent management platform automatically triggers the computational workflow.
In operation 1602, the agent management platform obtains (e.g., receives from a graphical user interface (GUI) of a computing device) an output generation request (e.g., a wire request) to generate an output using an unstructured dataset. The requested output can satisfy a guideline set defining an operative boundary set of the output generation request. In some implementations, the agent management platform establishes a communication channel with the GUI of the computing device. For example, the GUI can transmit a request to the agent management platform's server endpoint. The request can include metadata defining the output generation request, such as the type of output required, specific parameters, and/or the dataset to be used.
In operation 1604, the agent management platform determines, using a first AI model set, a feature set of the unstructured dataset that includes a variable set and/or a corresponding value set of each variable in the variable set within the unstructured dataset. For text data, the agent management platform can tokenize the text into words or subwords, and convert these tokens into numerical representations using methods such as word embeddings (e.g., Word2Vec, GloVe) or contextual embeddings (e.g., BERT embeddings). The first AI model set can identify variables such as named entities, parts of speech, and/or syntactic dependencies, and assign corresponding values to the variables based on the context within the text. For example, the agent management platform can identify features (e.g., variables) such as named entities (e.g., people, organizations, locations), parts of speech (e.g., nouns, verbs, adjectives), and syntactic dependencies (e.g., subject, object relationships). For instance, in the sentence “The quick brown fox jumps over the lazy dog,” the model identifies “fox” and “dog” as nouns, “jumps” as a verb, and “quick” and “lazy” as adjectives.
For image data, the AI model set can use a model such as a CNN to identify features including edges, textures, shapes, and/or higher-level patterns. The model can identify variables and assign corresponding values to these variables based on the detected features within the images. For instance, in an image of a cat, the model can first detect edges that form the outline of the cat, and then identify textures such as fur, and subsequently identify the overall shape and specific features such as eyes and ears. The model can assign variables such as object classes (e.g., cat, dog), bounding box coordinates (e.g., the position of the cat in the image), and pixel intensities (e.g., color values).
For audio data, the AI model set can convert the raw audio signals into spectrograms or other time-frequency representations. The model can extract features such as pitch (frequency of the sound), timbre (quality of the sound), and/or rhythm (timing patterns). For example, in a piece of music, the model can identify the pitch of each note, the sound characteristics of different instruments, and so forth. Variables such as frequency bands (e.g., low, mid, high frequencies), amplitude levels (e.g., loudness), and temporal patterns (e.g., beats per minute) can be identified and assigned corresponding values.
The agent management platform can generate confidence scores for each feature of the feature set and compare the confidence score to a particular threshold. Each feature included in the feature set can satisfy the particular threshold. In some implementations, confidence scores can be generated (e.g., agents 1304) based on a chatter index, or an indication of the amount of time agent spent communicating with another system. For text data, the agent management platform can use NLP models to assign confidence scores to features such as named entities, parts of speech, and/or syntactic dependencies. For example, if the model identifies “New York” as a location in a sentence, the model generates a confidence score indicating how certain it is that “New York” is a location. The confidence score can be based on the context in which the term appears and calculated by converting the model's raw output into a probabilities that sum to one. The resulting probability for each term indicates the model's confidence in its prediction, with higher probabilities reflecting greater confidence.
For image data, CNNs can be used to assign confidence scores to features such as object classes, bounding box coordinates, and/or pixel intensities. For instance, if the model detects a cat in an image, the model generates a confidence score reflecting the likelihood that the detected object is a cat. The confidence score can be derived from the activation levels of the neurons in the final layers of the CNN, which indicate the model's certainty about the classification. The confidence score can be typically a value between 0 and 1, where higher values indicate greater confidence. For audio data, the agent management platform can use spectrograms to assign confidence scores to features such as pitch, timbre, and/pr rhythm. For example, if the model identifies a specific musical note, the model generates a confidence score indicating how certain it is about the note's pitch. The confidence score can be calculated based on the probability of the feature given the observed data.
Once the confidence scores are generated, the agent management platform can compare each score to a predefined threshold. This threshold can be set based on the desired level of certainty for the features to be considered valid. The agent management platform can iterate through each feature and its corresponding confidence score, checking if the score meets or exceeds the threshold.
Responsive to one or more values in the corresponding value set of each variable satisfying a predefined threshold, in operation 1606, the agent management platform dynamically generates, using a second AI model set (same as or different from the first AI model set), a programmatic workflow set (e.g., a smart contract) configured to be stored in a distributed database (e.g., a blockchain network) by mapping a vector representation of each feature of the feature set to an antecedent set (e.g., conditional statements) representative of the feature, a corresponding programmatic workflow of the programmatic workflow set satisfying the operative boundary set of the guideline set, and/or one or more nodes of the distributed database (e.g., blocks on a blockchain network). For example, the agent management platform can determine that if a loanable value within the output generation request is greater than $10 million, the agent management platform automatically generates additional smart contract code to be executed on the computing device.
The antecedent set can include conditional statements that represent the logical conditions and rules associated with each feature. For example, if the feature is a loanable value, the antecedent set can include conditions such as “if loanable value>$10 million.” The agent management platform can use these conditional statements to construct the programmatic workflow. The programmatic workflow can be a sequence of programmatic instructions or code that defines the actions to be taken based on the conditions specified in the antecedent set. In the case of a smart contract, the programmatic workflow can include the logic and rules that govern the execution of the contract. For example, the programmatic workflow can specify that if the loanable value exceeds $10 million, additional clauses or conditions are added to the smart contract.
To ensure that the generated programmatic workflow satisfies the operative boundary set of the guideline set, the agent management platform can cross-reference the workflow with the predefined guidelines. Once the programmatic workflow is generated and validated, the agent management platform can store the programmatic workflow in a distributed database, such as a blockchain network. In some implementations, the corresponding programmatic workflow triggers a sequence of computer-executable commands responsive to satisfying the antecedent set. For example, if the agent management platform determines that a loanable value within the output generation request is greater than $10 million, the agent management platform automatically generates additional smart contract code to handle this condition. This code is stored on the blockchain, where it can be executed by the computing device when the specified conditions are met.
Each node of the one or more nodes can be assigned a unique cryptographic hash by applying a particular hash function on the node. The one or more nodes can each be linked to a corresponding unique cryptographic hash of a different node in the distributed database. The hash function uses the data contained within the node as input to generate a fixed-size string of characters, which is the cryptographic hash. This hash uniquely represents the data in the node, ensuring that changes in the node's data results in a different hash. The agent management platform applies the hash function to the data of each node. The agent management platform links each node to a corresponding unique cryptographic hash of a different node in the distributed database. For example, the agent management platform can link the hash of the previous node in the data of the current node before applying the hash function. For instance, if Node A is followed by Node B, the data of Node B can include the hash of Node A. When the hash function is applied to Node B, it generates a hash that includes the hash of Node A, creating a cryptographic link between the two nodes. Thus, if any data in a node is altered, the hash of that node will change, which will also affect the hashes of all subsequent nodes.
To generate the smart contract based on previous similar contracts, in some implementations, the agent management platform generates a similarity score between the feature set and a plurality of historical feature sets by determining a degree of similarity between vector representations of one or more features within the feature set with vector representations of one or more historical features of the historical feature set. Similarity measures can include cosine similarity, Euclidean distance, or other metrics that quantify how close the vectors are to each other in the high-dimensional space. For example, cosine similarity measures the cosine of the angle between two vectors, with values closer to 1 indicating higher similarity. The agent management platform can generate the programmatic workflow set using a historical programmatic workflow set associated with a historical feature set that has a highest similarity score with the feature set.
In operation 1608, the agent management platform automatically executes, using a third AI model set (same as or different from the first and second AI model sets), the sequence of computer-executable commands triggered by the programmatic workflow set on the computing device to generate an artifact (e.g., a wire transfer ticket) responsive to the output generation request. Each command can be processed in order. As the agent management platform executes each command, the agent management platform can dynamically update the state of the computing device and the data being used.
In operation 1610, the agent management platform displays, on the GUI of the computing device, a graphical layout that includes a first graphical representation indicative of the output generation request, a second graphical representation indicative of the programmatic workflow set, and/or a third graphical representation indicative of the generated artifact. The first, second, and/or third graphical representation can include a preview of the content, such as an embedded PDF viewer, a link, or an image viewer, or can include the entirety of the content.
To keep track of who accessed which data and/or executed which contracts, in some implementations, the agent management platform, responsive to the execution of the sequence of the computer-executable commands, stores an indication of the execution in the distributed database. The indication can be linked to the one or more nodes of the distributed database. The agent management platform can capture information associated with execution (e.g., execution metadata) of the computer-executable commands, such as the identity of the user or system that initiated the execution, the specific commands that were executed, the time and date of execution, data used by the commands, and so forth. Once the execution metadata is collected, the agent management platform can format the metadata into a structured record such as one that includes fields for the information, such as user ID, command details, timestamp, and so forth. The agent management platform can generate a unique identifier for the execution record. The identifier can be a cryptographic hash to ensure the immutability of the execution record, as changes to the metadata would result in a different hash.
The agent management platform can create a new node in the distributed database to store the execution record. The node can include the execution metadata and the generated hash value. The node can be linked to the relevant nodes in the distributed database, such as the nodes representing the data accessed or the contracts executed, by including references to the unique cryptographic hashes of the related nodes within the new node. To store the new node in the distributed database, the agent management platform can initiate a transaction on the blockchain network.
To maintain auditability, in some implementations, each programmatic workflow of the programmatic workflow set is associated with an explanation associated with the antecedent set and/or the sequence of computer-executable commands, a timestamp, and/or a version identifier. The explanation associated with the antecedent set and the sequence of computer-executable commands can be a human-readable description of the logic and conditions associated with the programmatic workflow. For example, if the workflow includes a conditional statement such as “if loanable value>$10 million,” the explanation can describe the condition and/or its corresponding consequent. The explanations can be stored as text strings and can be included in the metadata for each workflow.
The agent management platform can record a timestamp for each workflow using the system clock and include the timestamp in the metadata to provide a chronological record of the workflow's history. The agent management platform can assign, in some implementations, a version identifier to each workflow. This identifier can be a unique string or number that distinguishes different versions of the workflow. Each time the workflow is updated or modified, the agent management platform can increment or otherwise modify the version identifier to reflect the changes. The version identifier enables users and auditors to track the evolution of the workflow over time and to reference specific versions when needed. Once the metadata is generated, the agent management platform can associate it with the corresponding programmatic workflow in the structured record. The agent management platform can store the metadata record alongside the workflow in the distributed database.
The environment 1700 includes multiple AI agents 1702, such as a first AI agent 1702A, a second AI agent 1702B, a third AI agent 1702C, and so forth. These AI agents 1702 can be specialized for different tasks or domains (i.e., trained on domain-specific data). The AI agents 1702 interact with the system through an agent interface 1704, which provides a standardized communication protocol to manage the agents' interactions with other components of the agent management platform. The agent interface 1704 can include modules to perform, for example, authentication, transaction formatting, data encryption/decryption, and/or communication with other system components. Examples and methods of operating the agent interface 1704 are further discussed with reference to
The blockchain network 1706 refers to a distributed and immutable ledger for recording transactions and decisions. The blockchain network 1706 can use consensus mechanisms such as multiple rounds of communication between nodes to validate transactions, propose new blocks, and/or reach agreement on the state of the ledger. By ensuring that all participating nodes agree on the state of the blockchain, the agent management platform can provide a reliable and tamper-resistant foundation for recording and executing decisions made by the AI agents. In some implementations, the blockchain network 1706 can be implemented as a private, permissioned network to control access and refine the management of AI agent interactions. The smart contract layer 1708 is communicatively connected to the blockchain network 1706, and can include pre-programmed rules and conditions that govern the execution of transactions. The smart contract layer 1708 can include consensus protocols that define voting mechanisms and/or thresholds for different decision types, verification contracts that validate agent credentials and/or contributions, execution contracts that trigger actions based on decision outcomes, and so forth.
Records of decisions made by the AI agents, including proposals, evidence, votes, and/or outcomes can be stored and/or managed by the decision registry 1710. The decision registry 1710, for example, can be structured as a structured database within the blockchain. The governance module 1712 can be used to enforce rules and policies within the agent management platform. In some implementations the governance module 1712 is enabled to dynamically adjust parameters of one or more rules (e.g., smart contracts) based on predefined criteria or collective decisions by the AI agents 1702. To provide reliability and effectiveness of the AI agents, the reputation module 1714 is enabled to track and evaluate the performance and/or assign a degree of reliability to individual AI agents 1702 based on, for example, previous actions and decisions. The reputation scores maintained by the reputation module 1714 can influence the weight given to each agent's input in collective decision-making processes.
To ensure the security of the agent management platform, the cryptographic verification module 1716 can perform one or more cryptographic techniques such as zero-knowledge proofs to verify transactions, agent reasoning, and/or decisions without revealing sensitive information. To facilitate interoperability with other blockchain networks or external systems, the cross-chain connector 1718 enables the exchange of data and execution of transactions across different blockchain networks to expand the capabilities of the agent management platform. The cross-chain connector 1718 can enable interoperability with other blockchain networks for decisions that span multiple domains. The cross-chain connector 1718 can interface with external systems 1720 to enable the integration of external data sources, services, or applications into the decision-making process.
The AI agent 1802 interacts with the blockchain network through the agent interface 1804. When the AI agent 1802 generates a decision, evidence, action, vote, query, and so forth (e.g., based on the agent's internal algorithms, which can include machine learning models, rule-based systems, or other decision-making mechanisms), it can trigger a series of processes within the agent interface 1804 to interact with the blockchain 1818 (e.g., transactions, events, state queries, verifications, and so forth). Within the agent interface 1804, the authentication module 1806 can verify the AI agent's identity and permissions within the agent management platform. The authentication module 1806 can use one or more cryptographic techniques such as digital signatures or multi-factor authentication to ensure that only authorized agents are enabled to participate in the decision-making process. For example, the agent management platform can generate a digital signature using the agent's private key, which can be verified by other participants in the network. In another example, the agent management platform can validate the agent's current status and permissions against a predefined set of criteria implemented on the blockchain.
Once authenticated, the transaction manager 1808 formats the decision or action into a blockchain transaction. The transaction manager 1808 can structure the data according to the specific criteria of the blockchain protocol, such as including metadata, timestamps, and transaction identifiers. In some implementations, the transaction manager 1808 can sequence and prioritize transactions within the blockchain 1818. The data processor 1810 can be used to encrypt, compress, and/or otherwise format the conversion of data exchanged between the AI agent 1802 and the blockchain 1818. In some implementations, the data processor 1810 can use advanced techniques such as zero-knowledge proofs to enable verification of certain properties of the data without revealing the data itself. Throughout the operation of the agent management platform, the event monitor 1812 can track events occurring on the blockchain 1818. The event monitor 1812 can filter blockchain 1818 events and notify the AI agent when action is required or when relevant information becomes available.
The protocol adapter 1814 can be used as a translation layer between the communication protocols used by the AI agent and those used by the blockchain network. The protocol adapter 1814 enables interoperability between different AI systems and blockchain platforms. For example, the protocol adapter 1814 can translate between different data serialization formats, adjust byte orders, or implement any blockchain-specific cryptographic operations used for transaction submission. Before the transaction is submitted to the blockchain 1818, the security module 1816 can apply one or more security measures such as performing an encryption of the transaction payload, implementing anti-replay protection by including nonces or timestamps, applying rate limiting to prevent potential denial-of-service attacks on the blockchain network, and so forth.
Example Implementations of Verifying AI Agents Based On Resource AvailabilityIn some implementations, resources may encompass a wide array of assets, tools, and components that are essential for conducting operations, delivering services, managing finances, and supporting a financial service firm's overall functioning. For example, a resource may comprise financial assets. Financial assets include cash reserves, investments, securities, loans, and other financial instruments held by the firm or managed on behalf of clients. For example, a resource corresponding to a user may comprise a bank account for that user.
In some implementations, a resource may comprise a bank branch or other subdivision of the firm and/or an amount of liquidity for the bank branch or subdivision. For example, when a resource is a bank branch or other subdivision, the resource may go on and/or off-line based on the operating hours (or regulated trading hours) for the bank branch or subdivision. For example, banks and financial institutions often have specific business hours during which their systems and staff are available to process transactions. Outside these hours, certain banking functions, including fund transfers, may not be processed immediately. Some financial regulations or rules may limit or dictate the processing of certain types of transactions or transfers after regular business hours for security, compliance, or fraud prevention purposes. Banks may also risk management measures in place to detect and prevent fraudulent activities. Transactions initiated after hours may be flagged for additional scrutiny to ensure they are legitimate, which could cause delays.
In some implementations, system 11300 may illustrate one or more communications between resource 11302 and resource 11304 as managed by a platform application. For example, a platform application may be used to facilitate one or more blockchain actions (e.g., via self-executing program 11306) to conduct the communications across computer network 11312. In some implementations, blockchain actions may also comprise actions related to a self-executing program (e.g., a smart contract). As referred to herein, a “self-executing program” comprises a program in which rules for execution are written into lines of code. The code and the rules contained therein may then exist across a distributed, decentralized blockchain network. For example, a self-executing program may comprise a contract in which the terms of the agreement between buyer and seller are written into lines of code. In some implementations, the self-executing program may be a program in which rules for execution are written into lines of code that is executed in response to a trigger.
As referred to herein, a computer network may refer to a collection of interconnected computers and other devices that are linked together to share resources, information, and services. These networks can be established using various technologies and configurations, allowing devices to communicate and exchange data with each other. In some implementations, the computer network may comprise a network for a financial services firm.
In some implementations, a computer network (or simply network) may refer to the interconnected system of computers, devices, and infrastructure specifically designed and configured to support the operations and services provided by a financial service firm and/or the financial industry. The network infrastructure may enable the firm to process transactions efficiently and securely. This includes services like online banking, wire transfers, trading platforms for stocks and securities, electronic fund transfers, and other financial transactions. For example, financial firms often require connectivity to various financial markets, exchanges, and data providers. The network infrastructure allows access to real-time market data, trade execution platforms, and connections to external financial systems.
In some implementations, the computer network may comprise a global payment network that facilitate credit and debit card transactions. The network may connect issuing banks, acquiring banks, merchants, and cardholders, enabling electronic payments at point-of-sale terminals and online. In some implementations, the computer network may comprise an ACH (Automated Clearing House). An ACH is a network used for electronic fund transfers and direct deposits in the United States. It enables the processing of large volumes of credit and debit transactions, including payroll deposits, bill payments, and person-to-person transfers. In some implementations, the computer network may comprise a SWIFT (Society for Worldwide Interbank Financial Telecommunication) network. SWIFT is a global messaging network used by financial institutions for secure communication and the transfer of financial messages, particularly for international transactions and cross-border payments. In some implementations, the computer network may comprise a blockchain network.
As described herein, a “platform application” may refer to software or an application that serves as a foundation or infrastructure for developing and deploying other software applications or services. It provides a set of tools, frameworks, and functionalities upon which developers can build, integrate, and run applications. These platforms form the basis for running other software applications. Examples include Windows, macOS, Linux, iOS, and Android. They provide the necessary environment and services for software to execute on devices like computers, smartphones, and tablets.
In some implementations, the platform application may be used to manage the availability of devices in a computer network (e.g., a “platform management application”). This type of platform application is designed to monitor, control, and manage various devices and components within a network to ensure their availability, performance, and security. The platform application may automatically identify and map devices present on the network, including computers, routers, switches, servers, printers, and other network-connected devices. The platform application may constantly monitor the status and performance metrics (such as bandwidth usage, CPU usage, memory, etc.) of network devices to identify any abnormalities or performance bottlenecks. The platform application may generate alerts or notifications when certain predefined thresholds are breached or when anomalies in network behavior are detected. This helps in proactive issue resolution and prevents network downtime. The platform application may allow administrators to centrally manage and update device configurations, ensuring consistency and compliance with network policies and standards. The platform application may monitor the network for security threats, unauthorized access attempts, malware, and other vulnerabilities, providing insights into potential security breaches.
In some implementations, the platform application may comprise a platform application for a financial services firm. A platform application, in the context of a financial services firm or a global bank, typically refers to a software application or system that serves as a foundation or framework for delivering various financial services, managing transactions, facilitating communication, and supporting interactions between different entities within the firm or with external stakeholders such as clients, partners, or regulatory bodies. These platform applications may be designed to integrate multiple functionalities and services within a unified infrastructure. These functionalities and services may encompass various aspects such as banking operations (e.g., day-to-day banking operations including customer onboarding, account management, transaction processing, and compliance), trading (e.g., trading functionalities for various financial instruments like stocks, bonds, derivatives, and currencies), risk management (e.g., risk assessment and management tools to monitor and mitigate risks across different financial activities), Customer Relationship Management (CRM) (e.g., functionalities that manage client interactions, track customer preferences, and personalize services), data analytics and reporting (e.g., capabilities that derive insights from large volumes of financial data), compliance and regulatory requirements (e.g., features to ensure compliance with various financial regulations and standards), mobile and online banking (e.g., mobile applications and online banking portals).
In some implementations, the system receives the first request may comprise receiving, at a platform management application, a user request to perform a first off-chain action. The system may then determine that the first blockchain action corresponds to first off-chain action. For example, a user may initiate a request for a specific action that needs to be performed off-chain. This request could come through a user interface, API call, or any other user interaction method supported by the platform. The user request is received by the system and routed to a platform management application that serves as the central control or coordination point for managing various actions within the system. The platform management application analyzes the received user request and identifies the nature of the action requested. It parses and understands the details of the requested off-chain action, such as its purpose, parameters, and requirements. The system, through its logic or predefined mapping rules, identifies that the requested off-chain action has a corresponding action or operation that needs to be executed on the blockchain. This mapping could be based on predetermined correlations between off-chain and on-chain actions within the system's architecture or business logic.
The platform management application may validate the user request, ensuring it meets necessary criteria, security checks, and any required authorizations before proceeding further. Upon recognizing the corresponding blockchain action linked to the off-chain request, the system prepares the necessary data, parameters, or transaction details (e.g., other resources involved in the blockchain action) required to execute the corresponding action on the blockchain. For example, the system may receive a first user request to perform a first off-chain action determining that the first blockchain action corresponds to a second resource (e.g., a transaction from a first resource to a second resource).
Using appropriate mechanisms or interfaces (e.g., one or more self-executing programs, APIs, etc.), the platform management application triggers the execution of the determined blockchain action that aligns with the requested off-chain action. The prepared blockchain action is broadcasted to the blockchain network, initiating the process of validating, processing, and confirming the action by network nodes or validators. Validators in the blockchain network process the transaction, execute the action according to the defined logic, and include the validated transaction in a block. Once confirmed and added to the blockchain, the action is considered completed on-chain. The platform management application updates the status of the user request, providing feedback or notifications to the user about the successful execution of the requested action, whether it is off-chain or on-chain.
System 11300 (e.g., using a platform application) may facilitate the performance of an off-chain action. As described herein, an “off-chain action” may refer to any activity or transaction that occurs outside the underlying blockchain network or protocol. Off-chain actions can take various forms, including off-chain transactions. These are transactions that occur outside the main blockchain network. They are conducted through secondary layers or channels and are settled or reconciled on-chain later. This helps in reducing congestion on the main chain and lowering transaction fees. Off-chain actions may also comprise off-chain computations. For example, complex computations or operations that are computationally expensive can be performed off-chain. For instance, certain computations or processes needed to support a decentralized application (DApp) might be handled off-chain to improve performance and reduce latency, with only the final outcome or necessary data being recorded on the blockchain.
For example, in the context of blockchain technology, on-chain data and assets are those that are recorded and stored directly on the blockchain. In contrast, off-chain data or assets are not directly stored on the blockchain but are instead managed off the blockchain. For example, off-chain data may be information that is not stored on the blockchain but is referenced or linked to it. This could include data stored in traditional databases, external files, or other systems. Off-chain assets may be assets that are represented or exist in the physical world or in other systems, but their ownership or status is tracked and managed on the blockchain. This could include real-world assets like real estate, commodities, or even digital assets that are not stored directly on the blockchain.
In some implementations, off-chain actions may also comprise state channels, rollups, and/or sidechains. For example, these are off-chain scaling solutions that enable parties to conduct transactions or execute self-executing programs off the main chain. State channels allow participants to interact directly with each other off-chain, updating the state between them, while sidechains are separate blockchains that can be connected to the main blockchain, facilitating faster and more scalable transactions. In the context of blockchain and cryptocurrency, a “rollup” may be a layer 2 scaling solution. It is designed to improve the efficiency and scalability of blockchain networks. Rollups work by processing and bundling multiple transactions off-chain, and then submitting a single transaction to the main blockchain. This helps reduce congestion and lower transaction costs.
In some implementations, off-chain actions may also comprise usage of off-chain data storage. For example, storing large amounts of data directly on a blockchain can be inefficient and costly. Off-chain data storage solutions, such as decentralized storage networks (e.g., IPFS, Filecoin), enable the storage of data off-chain while maintaining references or proofs of the data's existence or integrity on the blockchain.
In some implementations, an off-chain action (or result thereof) may refer to any data, information, or transactional details that are stored, processed, or maintained outside of the primary blockchain network. In blockchain technology, off-chain records exist separately from the main distributed ledger or blockchain itself. For example, an off-chain record may comprise a user bank account and/or other account linked to a user and/or other entity.
To facilitate the off-chain action, system 11300 may use one or more on-chain actions related to network 11310. Network 11310 may comprise a blockchain. As described herein, a blockchain is a decentralized ledger of transactions built upon a combination of cryptography techniques (e.g., secret-keys, hash functions, etc.), consensus mechanisms (e.g., Proof of Work, Proof of Stake, etc.), and computer networks (e.g., peer-to-peer (“P2P”) networks, the Internet, etc.). The blockchain stores information electronically, grouped together into a series of subsets of the information, called “blocks.” The information may be maintained by a network of computers using cryptography and consensus mechanisms, which make the practically impossible to hack or alter. Specifically, the integrity of the information in each block may be maintained through one-way cryptographic functions that make the information immutable for practical purposes.
As blocks of information are added, the various blocks form a chain, which represents an immutable record of all the previous transactions across the network. Given the immutability of the records, the public availability of the information in the blockchain, and the reliance on consensus mechanisms for adding new blocks, the blockchain does not require a central authority to monitor transactions, maintain records, and/or enforce rules. As such, blockchains and blockchain technology has become a foundation of many decentralized applications.
For example, network 11310 may comprise a digital log. A digital log may comprise a record or file that captures and stores a chronological sequence of events, actions, or transactions in a digital format. These logs serve various purposes across different domains, including information technology, cybersecurity, finance, and more. Digital logs may maintain a time-sequenced record of activities, events, or changes. Each entry in the log file typically includes a timestamp indicating when the event occurred. The digital log may contain specific details about the events or actions being logged. This information could include user activities, system events, errors, security-related events, transactions, or changes in configurations. Digital logs can be stored in various formats, including text files, structured databases, JSON, XML, or other formats that suit the specific requirements of the system or application generating the logs. The digital logs may be used for diagnosing issues, troubleshooting problems, monitoring system performance, conducting forensic analysis, and auditing activities. They serve as a historical record for understanding past actions or incidents.
In some implementations, the digital log may comprise a distributed ledger (e.g., for a blockchain) and/or other index of blockchain data. For example, the distributed ledger may be a type of database or digital ledger that exists across multiple locations or nodes within a decentralized network. It records transactions, contracts, or any form of data in a secure, transparent, and tamper-evident manner without the need for a central authority or intermediary. Unlike traditional centralized ledgers, distributed ledgers are not controlled by a single entity. Instead, they are distributed among multiple participants or nodes in a network, each maintaining an identical copy of the ledger. This decentralization increases transparency and resiliency by eliminating a single point of control or failure. Distributed Ledgers use consensus mechanisms among network participants to validate and agree upon the state of the ledger. Consensus protocols ensure that all copies of the ledger across the network are in sync and agree on the validity of transactions, maintaining a consistent record of data. Once information is added to the ledger, it becomes virtually immutable, meaning it cannot be altered or deleted retroactively without consensus from the network. The use of cryptographic techniques ensures the security and integrity of the data stored on the ledger.
Network 11310 may be used by system 11300 to manage and/or facilitate one or more cryptographically secure digital assets (e.g., asset 11308). A cryptographically secure digital asset may comprise a tokenization of a value or asset (e.g., a tokenized bank deposit). For example, a cryptographically secure digital asset refers to a digital representation of value, ownership, and/or rights that is secured by cryptographic techniques, ensuring its integrity, authenticity, and/or protection against unauthorized access or modification. These assets exist in digital form and rely on cryptographic protocols and technologies for their security and verification. For example, the asset's security may be based on cryptographic algorithms and techniques that provide strong encryption, hashing, digital signatures, and other cryptographic mechanisms to protect its data and transactions. The cryptographically secure digital assets may operate on blockchain networks. Blockchains use decentralized and distributed ledger technology, ensuring tamper-proof records of transactions and asset ownership. Transactions involving these assets are recorded on a blockchain, creating an immutable and transparent history of ownership and transactional history. Once recorded, data on the blockchain cannot be altered retroactively without consensus from the network. Cryptographically secure digital assets allow ownership and transfer of value or rights in a decentralized manner. Users can securely transfer ownership or conduct transactions directly without relying on intermediaries. Users may access and manage these assets using cryptographic keys. Public and private keys allow users to securely interact with the assets, sign transactions, and prove ownership without revealing sensitive information.
Network 11310 may be used to facilitate communications (e.g., blockchain actions) irrespective of whether a resource is on-line. For example, a resource in a network may be “online,” whether it is a device, service, and/or application, when it is currently connected and available for communication and interaction within the network. In contrast, a resource may be off-line when it is not on-line. For example, the term “online” signifies that the resource is active, operational, and accessible to other devices or users in the network. Being online implies that the resource is powered on, connected to the network infrastructure (such as the internet or a local network), and ready to send, receive, or process data, requests, or commands.
For example, a computer, server, printer, or any network-connected device is considered online when it is powered up, connected to the network (via Ethernet or Wi-Fi), and ready to send and receive data. In another example, applications, websites, or cloud-based services may be online when their servers are operational, connected to the internet, and available for users to access or utilize their functionalities. In yet another example, being online indicates that the resource is reachable and responsive to requests or communication attempts from other devices or users on the network. For example, in implementations, in which the resource is a bank account, bank branch, etc. the resource may be on-line when the resource (or assets held by the resource) are reachable and responsive to requests or communication attempts from other devices or users on the network.
In some implementations, system 11300 may be used to manage resources across network 11310. For example, system 11300 may manage resources based on the availability of resources in network 11310. In some implementations, availability may comprise resource availability. Resource availability in a computer network may refer to the accessibility and readiness of various network resources, devices, services, or applications for use by authorized users or other components within the network. It signifies the ability of these resources to fulfill requests, process data, or perform tasks effectively and efficiently when required. For example, availability may correspond to device accessibility (e.g., the ability of devices (such as computers, servers, routers, switches, printers, etc.) to be reachable and responsive on the network), service uptime (e.g., time services remain operational and responsive to user requests), bandwidth and performance (e.g., resources promptly accessing and/or delivering data or services efficiently without delays or bottlenecks), data and information access (e.g., availability of data resources, databases, files, and information required by users or applications within the network).
In some implementations, availability may correspond to liquidity. Liquidity refers to the ability of a bank or financial institution to meet its short-term obligations and fund its day-to-day operations efficiently. It represents the availability of liquid assets that can be quickly converted into cash to cover liabilities, withdrawals, or unexpected demands for funds. Banks maintain liquidity primarily through liquid assets such as cash, reserves held at central banks, short-term government securities, highly marketable securities, and other instruments that can be easily sold or converted into cash without significant loss of value. Banks may engage in asset-liability management to balance their assets and liabilities, ensuring that they have sufficient liquid assets to cover liabilities and maintain a healthy liquidity position. For example, a tokenized availability of a resource may correspond to assets available at a given resource (e.g., a digital account). The transfer of this may correspond to the assets being transferred from one resource to another.
In some implementations, the system may determine one or more characteristics of availability in one or more resources. The system may then select a cryptographically secure digital asset, from a plurality of cryptographically secure digital assets, based on the characteristics. For example, the system (or self-executing program) may determine a condition for performing the first blockchain action and select a first cryptographically secure digital asset, from a plurality of cryptographically secure digital assets, based on the condition. For example, the condition may indicate a requirement for a cryptographically secure digital asset as recorded in a predetermined digital log corresponding to the first resource. For example, the self-executing program condition may determine a requirement for a first cryptographically secure digital asset, as recorded in a predetermined digital log corresponding to a resource, involves encoding specific criteria or rules within the self-executing program's code to validate the possession or existence of the digital asset before executing certain actions or operations. For example, developers encode conditions within the self-executing program's code using a programming language suitable for self-executing programs (e.g., Solidity for Ethereum). These conditions define the rules or requirements that need to be met regarding the possession or existence of the cryptographically secure digital asset. The self-executing program may interact with a predetermined digital log or ledger that records information related to resources. The condition within the program may check this log to verify the presence or ownership of the specific digital asset corresponding to the resource. The condition may specify requirements such as verifying the ownership of the digital asset through cryptographic keys, checking the asset's unique identifier or token ID, validating a specific transaction or event recorded in the digital log related to the asset, or confirming its existence in a specific state. When a user initiates an action or transaction involving the resource within the self-executing program, the condition is evaluated. If the condition verifies the possession or existence of the required cryptographically secure digital asset in the predetermined digital log, the self-executing program proceeds with the intended operation or execution.
As described herein, a characteristic of availability may comprise any attribute that distinguishes the availability (or availability on a resource) from other availability (or availability on another resource). In some implementations, characteristics of availability in resources within a computer network may refer to attributes or factors that define the accessibility, reliability, and continuity of these resources. For example, in implementations describing the transfer of availability, the availability may be transferred by a change (or transfer) of a characteristic of the availability being transferred.
For example, a characteristic may refer to uptime and reliability as availability is associated with the ability of resources to remain operational and accessible over time without unexpected interruptions. High availability implies minimal downtime and consistent reliability. In another example, a characteristic may refer to accessibility. Available resources should be easily accessible and reachable by users or systems when needed. This includes factors such as network connectivity, response time, and the absence of barriers preventing access. In another example, a characteristic may refer to redundancy and fault tolerance. Systems designed with redundancy have backup mechanisms or duplicate resources to ensure continuous operation even if one component fails. Fault-tolerant systems can detect and recover from failures without significant impact on availability. In another example, a characteristic may refer to resilience to failures. Availability may be linked to a system's resilience against failures caused by hardware malfunctions, software errors, network issues, or other disruptions. Systems designed for high availability can withstand failures and maintain functionality. In another example, a characteristic may refer to scalability and capacity planning. Availability considerations involve the ability to scale resources to meet increasing demand without compromising performance or accessibility. Proper capacity planning ensures resources are available as needed. In another example, a characteristic may refer to monitoring and maintenance. Continuous monitoring, proactive maintenance, and timely interventions play a crucial role in ensuring resource availability. Monitoring tools help detect issues early, allowing for prompt resolution and minimizing downtime. In another example, a characteristic may refer to recovery and disaster preparedness. Availability includes having recovery strategies and disaster preparedness plans in place. These plans help restore services quickly after unexpected events, such as natural disasters or cyber-attacks. In another example, a characteristic may refer to service level agreements (SLAs) characteristics. Defining and adhering to SLAs regarding availability metrics, such as uptime percentage, response time, and maintenance windows, is essential in ensuring commitments to users or customers.
In another example, a characteristic may refer to geographical distribution and load balancing. Distribution of resources across multiple geographical locations and load balancing techniques contribute to availability by ensuring even distribution of workload and minimizing the impact of localized disruptions. In another example, a characteristic may refer to security measures. Availability is linked to security practices that protect resources from unauthorized access, cyber threats, or malicious attacks. Security measures prevent service disruptions caused by security breaches. In another example, a characteristic may refer to documentation and recovery procedures. Maintaining comprehensive documentation and well-defined recovery procedures helps restore services efficiently in case of outages or failures, minimizing the impact on availability.
In some implementations, a characteristic of availability may refer to a characteristic of a good, service, and/or medium of exchange (e.g., money). The characteristics of currency, which is issued by governments and central banks. For example, a characteristic may refer to an issuing authority (e.g., a recognized government or central monetary authority within a country), legal tender (e.g., whether it is authorized by the government for settling debts, transactions, and payments within the country's borders), denomination and/or amount, physical form (e.g., banknotes and coins), type (e.g., fiat, commodity-backed), security features, exchange rate, stability, regulation, etc.
Selecting a cryptographically secure digital asset from a plurality of such assets based on characteristics involves a process that considers various attributes or features associated with these assets. The system may identify the specific characteristics or attributes that are essential for the system's purpose or requirements. These criteria could include factors such as security features, transaction speed, scalability, decentralization, consensus mechanism, token standard (e.g., ERC-20, ERC-721), utility, or network adoption. The system may obtain information and data about the plurality of cryptographically secure digital assets under consideration. This information may include technical specifications, whitepapers, historical performance, market data, developer community, security audits, and use case relevance. The system may evaluate and compare the characteristics of each digital asset against the predefined selection criteria. Assess how well each asset aligns with the system's requirements, considering factors like security, functionality, transaction costs, liquidity, governance, or regulatory compliance. The system may apply a weighted scoring system or ranking mechanism to assign importance or priority to different characteristics based on their relevance to the system's goals. For example, security might have higher weightage compared to transaction speed. The system may conduct both quantitative analysis (e.g., metrics, performance data) and qualitative analysis (e.g., community support, development activity) to comprehensively assess the assets' characteristics. In some implementations, the system may employ decision models or algorithms that factor in the weighted criteria and analysis to generate a scoring system or rank the assets based on their suitability for the system's requirements.
System 11300 may receive a first request, at a first action specific self-executing program, to perform a first blockchain action using a first resource, wherein the first blockchain action is encoded in the first action specific self-executing program. The request (e.g., a computer request) may refer to a communication or a query made by a computer or a software application to another computer, server, and/or device on a network. This request is typically initiated by a client computer seeking specific information, data, resources, or services from a server or another computing device. As described herein, an action-specific self-executing program may refer to a type of self-executing program designed to execute or facilitate a specific action, task, or set of predefined operations within a blockchain network. Unlike general-purpose self-executing programs that can handle various functions, an action-specific self-executing program is tailored to perform a particular action or a limited range of actions based on predefined conditions.
The system may also receive a transfer of cash or other assets that are tokenized on blockchain network 11310 as cryptographically secure digital asset 11314. For example, the system may determine, at the first action specific self-executing program (e.g., self-executing program 11306), a first condition for performing the first blockchain action, wherein the first condition is encoded in the first action specific self-executing program. For example, the first condition may comprise a required amount of available digital assets (or cash or other assets) at a given resource.
In a self-executing program, a condition may refer to a predefined rule, criteria, or set of instructions written into the program's code that determines how the program operates or executes. Conditions establish the logic and parameters that must be met for the self-executing program to perform specific actions or trigger certain outcomes. Conditions define the logic or decision-making process within the self-executing program. They specify the circumstances under which the program will perform certain functions, make decisions, or execute predefined actions.
Conditions are often associated with trigger events or specific states within the blockchain network. When these trigger events occur, the conditions embedded in the self-executing program are evaluated, and corresponding actions are executed if the conditions are met. Conditions can depend on various input parameters, such as timestamps, user input, external data feeds, or the state of other programs or variables within the blockchain network. Based on the fulfillment or non-fulfillment of conditions, a self-executing program may execute specific actions, proceed with a transaction, release funds, transfer tokens, update states, or terminate its execution.
In some implementations, the condition may be a time-based conditions (e.g., a self-executing program might have conditions that execute a particular action only after a specific date, time, or a defined duration has elapsed), threshold conditions (e.g., conditions might specify that a certain number of participants need to approve an action or that a certain amount of tokens needs to be accumulated before an action is executed), external data conditions (e.g., self-executing programs can incorporate external data sources, and conditions may rely on data retrieved from these sources to trigger actions).
Conditions in a self-executing program are encoded using programming languages and specific syntax within the code of the self-executing program. Self-executing programs are typically written in specialized programming languages, such as Solidity for Ethereum or Chaincode for Hyperledger Fabric, and these languages have their syntax and structures to encode conditions. In response to a user request, the system may write self-executing programs using programming languages specifically designed for blockchain platforms. They use the language's syntax and logic to encode conditions within the contract's code. Programming languages used for self-executing programs offer conditional statements (if, else if, else) that allow developers to specify conditions and define the actions or behaviors to be executed based on the evaluation of these conditions. The user request may define the logic, rules, and parameters for conditions within the contract's code. This includes specifying trigger events, input variables, comparison operations, and logical operators to create the conditions. Some self-executing program languages allow the creation of event handlers that can detect external triggers or changes in the blockchain state. These event handlers can be associated with specific conditions to execute actions when triggered.
Self-executing program 11306 may then monitor for the tokenized availability (e.g., cryptographically secure digital assets corresponding to a sale price in self-executing program 11306). For example, the system may receive, by the first action specific self-executing program, a first tokenized availability of the first resource from a first blockchain network. Tokenized availability may refer to the representation or conversion of the availability of assets, resources, or services into digital tokens or cryptographic tokens on a blockchain or digital ledger. It involves using tokens as a representation or proof of ownership, access rights, or availability of certain resources within a decentralized network.
As shown in
The system may execute the first blockchain action, by the first action specific self-executing program, based on determining that the first off-chain action is completed, wherein executing the first blockchain action causes the first tokenized availability of the first resource to be transferred to a second resource.
The system may receive, at the platform application, a confirmation of the first blockchain action being executed. A confirmation of a blockchain action being executed may refer to the acknowledgment or verification that a specific transaction or operation has been successfully processed and added to the blockchain.
As referred to herein, blockchain 2010 may comprise a type of distributed ledger technology that consists of growing list of records, called blocks (e.g., block 2014 and block 2016), that are securely linked together using cryptography. Each block may contain a cryptographic hash of the previous block (e.g., block 2016 may contain a cryptographic hash of block 2014), and that cryptographic hash may itself be based on a state of a preceding block (e.g., the cryptographic hash of block 2016 is based not only on the state of block 2014). For example, each block may include a timestamp and blockchain action data (e.g., represented as a Merkle tree, where data nodes are represented by leaves). The timestamp proves that the blockchain action data (e.g., the state of the block) existed when the block was created. As each block is based on information about the previous block, the blocks effectively form a chain with each additional block linking to the ones before it. Consequently, blockchain actions are irreversible in that, once they are recorded, the data in any given block cannot be altered retroactively without altering all subsequent blocks.
Blockchains are typically managed by a peer-to-peer (P2P) computer network for use as a public distributed ledger, where nodes collectively adhere to a consensus algorithm protocol to add and validate new transaction blocks. AIthough, in some implementations, a blockchain may be managed by a private consortium of computers. While blockchain records are not unalterable, since blockchain forks are possible, blockchains may be considered secure by design and exemplify a distributed computing system with high Byzantine fault tolerance.
As shown in
For example, system 2000 may comprise a plurality of nodes for blockchain 2010. Each node may correspond to a user device (e.g., user device 2002, user device 2004, and/or user device 2006). A node for a blockchain network may comprise an application or other software that records and/or monitors peer connections to other nodes and/or miners for the blockchain network. For example, a miner comprises a node in a blockchain network that facilitates blockchain actions by verifying blockchain actions on the blockchain, adding new blocks to the existing chain, and/or ensuring that these additions are accurate. The nodes may continually record the state of the blockchain and respond to remote procedure requests for information about the blockchain.
In some implementations, the user devices of system 2000 may comprise one or more cloud components. For example, cloud components may be implemented as a cloud computing system and may feature one or more component devices. It should also be noted that system 2000 is not limited to three devices. Users may, for instance, utilize one or more devices to interact with one another, one or more servers, or other components of system 2000. It should be further noted that while one or more actions (e.g., blockchain actions) are described herein as being performed by a particular component (e.g., user device 2002) of system 2000, those actions may, in some implementations, be performed by other components of system 2000. As an example, while one or more actions are described herein as being performed by components of user device 2002, those actions may, in some implementations, be performed by one or more cloud components. In some implementations, the various computers and systems described herein may include one or more computing devices that are programmed to perform the described functions. Additionally, or alternatively, multiple users may interact with system 2000 and/or one or more components of system 2000. For example, in one implementation, a first user and a second user may interact with system 2000 using two different components (e.g., user device 2004 and user device 2006, respectively). Additionally, or alternatively, a single user (and/or a user account linked to a single user) may interact with system 2000 and/or one or more components of system 2000 using two different components (e.g., user device 2002 and user device 2006, respectively).
With respect to the components of system 2000, each of these devices may receive content and data via input/output (hereinafter “I/O”) paths using I/O circuitry. Each of these devices may also include processors and/or control circuitry to send and receive commands, requests, and other suitable data using the I/O paths. The control circuitry may comprise any suitable processing, storage, and/or I/O circuitry. Each of these devices may also include a user input interface and/or user output interface (e.g., a display) for use in receiving and displaying data. For example, as shown in
Additionally, the devices in system 2000 may run an application (or another suitable program). The application may cause the processors and/or control circuitry to perform operations related to determining resource availability within a decentralized application environment.
Each of these devices may also include electronic storage. The electronic storages may include non-transitory storage media that electronically stores information. The electronic storage media of the electronic storages may include one or both of (i) system storage that is provided integrally (e.g., is substantially non-removable) with servers or client devices, or (ii) removable storage that is removably connectable to the servers or client devices via, for example, a port (e.g., a USB port, a firewire port, etc.) or a drive (e.g., a disk drive, etc.). The electronic storages may include one or more optically readable storage media (e.g., optical disk, etc.), magnetically readable storage media (e.g., magnetic tape, magnetic hard drive, floppy drive, etc.), electrical charge-based storage media (e.g., EEPROM, RAM, etc.), solid-state storage media (e.g., flash drive, etc.), and/or other electronically readable storage media. The electronic storages may include one or more virtual storage resources (e.g., cloud storage, a virtual private network, and/or other virtual storage resources). The electronic storages may store software algorithms, information determined by the processors, information obtained from servers, information obtained from client devices, or other information that enables the functionality as described herein.
As referred to herein, a “blockchain action” may comprise any action including and/or related to blockchains and blockchain technology. For example, blockchain actions may include conducting transactions, querying a distributed ledger, generating additional blocks for a blockchain, transmitting communications-related nonfungible tokens, performing encryption/decryption, exchanging public/private keys, and/or other actions related to blockchains and blockchain technology. In some implementations, a blockchain action may comprise the creation, modification, detection, and/or execution of a smart contract or program stored on a blockchain. For example, a self-executing program may comprise a program stored on a blockchain that is executed (e.g., automatically and/or without any intermediary's involvement or time loss following a trigger) when one or more predetermined conditions are met. In some implementations, a blockchain action may comprise the creation, modification, exchange, and/or review of a token (e.g., a digital blockchain-specific asset), including a nonfungible token. A nonfungible token may comprise a token that is associated with a good, a service, a self-executing program, and/or other content that may be verified by, and stored using, blockchain technology. In some implementations, blockchain actions may also comprise actions related to mechanisms that facilitate other blockchain actions (e.g., actions related to metering activities for blockchain actions on a given blockchain network).
In some implementations, gas may be obtained as part of a blockchain action (e.g., a purchase) using a network-specific cryptocurrency (e.g., ether in the case of Ethereum). The system may require gas (or the amount of the network-specific cryptocurrency corresponding to the required amount of gas) to be transmitted with the blockchain action as an earmark to the blockchain action. In some implementations, gas that is earmarked for a blockchain action may be refunded back to the originator of the blockchain action if, after the computation is executed, an amount remains unused.
As shown in
In some implementations, the cryptography-based, storage application may comprise and/or be compatible with one or more application program interfaces (e.g., APIs). For example, an API may be implemented on user device 2110 and/or communicate with an API implemented on user device 2120. Alternatively or additionally, an API may reside on one or more cloud components. For example, an API may reside on a server and comprise a platform service for a custodial wallet service, decentralized application, etc. An API (which may be a representational state transfer (REST) or web services API layer) may provide a decoupled interface to data and/or functionality of one or more applications.
The API may provide various low-level and/or blockchain-specific operations in order to facilitate resource management. For example, the API may provide blockchain actions such as blockchain writes. Furthermore, the API may perform a transfer validation ahead of forwarding the blockchain action (e.g., a transaction) to another service (e.g., a crypto service). The API may then log the outcome. For example, by logging to the blockchain prior to forwarding, the API may maintain internal records and balances without relying on external verification (e.g., which may take up to ten minutes based on blockchain updating activity).
The API may also provide informational reads. For example, the API (or a platform service powered by the API) may generate blockchain action logs and write to an additional ledger (e.g., an internal record and/or indexer service) the outcome of the reads. If this is done, a user accessing the information through other means may see consistent information such that downstream users ingest the same data point as the user. The API may also provide a unified API to access balances, transaction histories, and/or other blockchain actions activity records between one or more decentralized applications and custodial user accounts. By doing so, the system maintains the security of sensitive information such as the balances and transaction history. Alternatively, a mechanism for maintaining such security would separate the API access between the decentralized applications and custodial user accounts through the use of special logic. The introduction of the special logic decreases the streamlining of the system, which may result in system errors based on divergence and reconciliation.
The API may provide a common, language-agnostic way of interacting with an application. In some implementations, the API may comprise a web services API that offers a well-defined contract that describes the services in terms of their operations and the data types used to exchange information. REST APIs do not typically have this contract; instead, they are documented with client libraries for most common languages including Ruby, Java, PHP, and JavaScript. Simple Object Access Protocol (“SOAP”) web services have traditionally been adopted in the enterprise for publishing internal services as well as for exchanging information with partners in business-to-business (“B2B”) transactions.
The API may use various architectural arrangements. For example, system 2100 may be partially based on the API, such that there is strong adoption of SOAP and RESTful web services, using resources such as Service Repository and Developer Portal, but with low governance, standardization, and separation of concerns. AIternatively, system 2100 may be fully based on the API, such that separation of concerns between layers such as an API layer, services, and applications are in place.
In some implementations, the system architecture may use a microservice approach. Such systems may use two types of layers: front-end layers and back-end layers, where microservices reside. In this kind of architecture, the role of the API may be to provide integration between front-end and back-end layers. In such cases, the API may use RESTful APIs (exposition to front-end or even communication between microservices). The API may use the Advanced Message Queuing Protocol (AMQP), which is an open standard for passing business messages between applications or organizations. The API may use an open-source, high-performance remote procedure call (RPC) framework that may run in a decentralized application environment. In some implementations, the system architecture may use an open API approach. In such cases, the API may use commercial or open-source API platforms and their modules. The API may use a developer portal. The API may use strong security constraints applying a web application firewall that protects the decentralized applications and/or the API against common web exploits, bots, and denial-of-service (DDoS) attacks. The API may use RESTful APIs as standard for external integration.
In some implementations, the system may also use one or more Application Binary Interfaces (ABIs) and an alternative to and/or in addition to an API. An ABI is an interface between two program modules, often between operating systems and user programs. ABIs may be specific to a blockchain protocol. For example, ABI defines the methods and structures used to interact with the binary contract similar to an API, but on a lower-level. The ABI indicates the caller of the function to encode (e.g., ABI encoding) the needed information like function signatures and variable declarations in a format that a virtual machine can understand to call that function in bytecode. ABI encoding may be automated by the system using compilers or wallets interacting with the blockchain.
The cryptography-based, storage application may, in some implementations, correspond to a digital wallet. For example, the digital wallet may comprise a repository that allows users to store, manage, and trade their cryptocurrencies and assets, interact with blockchains, and/or conduct blockchain actions using one or more applications. The digital wallet may be specific to a given blockchain protocol or may provide access to multiple blockchain protocols. In some implementations, the system may use various types of digital wallets such as hot wallets and cold wallets. Hot wallets are connected to the internet while cold wallets are not. Digital wallet holders may hold both a hot wallet and a cold wallet. Hot wallets are most often used to perform blockchain actions, while a cold wallet is generally used for managing a user account and may have no connection to the internet.
In some implementations, the cryptography-based, storage application may correspond to a key-based wallet or a smart contract wallet. For example, a key based wallet may feature public or private keys and allow a user to either have control of the account or receive transactions in the account. A smart contract wallet may comprise blockchain programs or digital agreements that execute transactions between parties once a predetermined condition is met. For example, a smart contract wallet may be managed by a smart contract (e.g., or smart contract code) instead of a private key. As such, a smart contract wallet may improve speed, accuracy, trust, and/or transparency in blockchain actions. In some implementation, a cryptography-based, storage application may include, or have access to, key-based wallet or a smart contract wallet. For example, the cryptography-based, storage application may comprise a digital or other construct (e.g., a reference, a pointer, a text on a blockchain, an address, etc.).
In some implementations, to conduct a blockchain action, user device 2110, user interface 2115, and/or cryptography-based, storage application 2130) may comprise, control, and/or have access to a private key and/or digital signature. For example, system 2100 may use cryptographic systems for conducting blockchain actions such as resource management. For example, system 2100 may use public-key cryptography, which features a pair of digital keys (e.g., which may comprise strings of data). In such cases, each pair comprises a public key (e.g., which may be public) and a private key (e.g., which may be kept private). System 2100 may generate the key pairs using cryptographic algorithms (e.g., featuring one-way functions). System 2100 may then encrypt a message (or other blockchain action) using an intended receiver's public key such that the encrypted message may be decrypted only with the receiver's corresponding private key. In some implementations, system 2100 may combine a message with a private key to create a digital signature on the message. For example, the digital signature may be used to verify the authenticity of blockchain actions. As an illustration, when conducting blockchain actions, system 2100 may use the digital signature to prove to every node in the system that it is authorized to conduct the blockchain actions.
For example, user device 2110 may request a blockchain action (e.g., conduct a transaction). The blockchain action may be authenticated by user device 2110 and/or another node (e.g., a user device in the community network of system 2100). For example, using cryptographic keys, system 2100 may identify users and give access to their respective user accounts (e.g., corresponding digital wallets) within system 2100. Using private keys (e.g., known only to the respective users) and public keys (e.g., known to the community network), system 2100 may create digital signatures to authenticate the users.
Following an authentication of the blockchain action, the blockchain action may be authorized. For example, after the blockchain action is authenticated between the users, system 2100 may authorize the blockchain action prior to adding it to the blockchain. System 2100 may add the blockchain action to a blockchain (e.g., blockchain 2010 (
To validate the blockchain action, system 2100 may use one or more validation protocols and/or validation mechanisms. For example, system 2100 may use a proof-of-work mechanism in which a user device must provide evidence that it performed computational work to validate a blockchain action and thus this mechanism provides a manner for achieving consensus in a decentralized manner as well as preventing fraudulent validations. For example, the proof-of-work mechanism may involve iterations of a hashing algorithm. The user device that is successful aggregates and records blockchain actions from a mempool (e.g., a collection of all valid blockchain actions waiting to be confirmed by the blockchain network) into the next block. AIternatively or additionally, system 2100 may use a proof-of-stake mechanism in which a user account (e.g., corresponding to a node on the blockchain network) is required to have, or “stake,” a predetermined amount of tokens in order for system 2100 to recognize it as a validator in the blockchain network.
In response to validation of the block, the block is added to a blockchain (e.g., blockchain 2010 (
In some implementations, a cryptography-based, storage application may comprise a decentralized application. As referred to herein, a “decentralized application” may comprise an application that exists on a blockchain and/or a peer-to-peer network. For example, a decentralized application may comprise an application that has a back end that is in part powered by a decentralized peer-to-peer network such as a decentralized, open-source blockchain with smart contract functionality.
For example, the cryptography-based, storage application (e.g., cryptography-based, storage application 2130) may allow a user device (e.g., user device 2110) to share files, access, and/or perform a blockchain action with another user device (e.g., user device 2120) and/or cryptography-based, storage application (e.g., cryptography-based, storage application 2140). For example, the peer-to-peer architecture and decentralized nature allows blockchain actions to be conducted between the user devices, without the need of any intermediaries or central authorities.
At operation 2202, process 2200 (e.g., using one or more components described above) receives a request to perform a blockchain action using a resource. For example, the system may receive a first request, at a first action specific self-executing program, to perform a first blockchain action using a first resource, wherein the first blockchain action is encoded in the first action specific self-executing program.
In some implementations, encoding the first blockchain action in the first action specific self-executing program may comprise the system (e.g., a self-executing program) receiving the first resource as a first statement in the first action specific self-executing program. A statement refers to a line or a set of instructions written in the code of the self-executing program. These statements represent specific actions, commands, or operations that the self-executing program is programmed to execute when certain conditions are met. Statements are fundamental building blocks of smart contract code. They are written using programming languages specific to the blockchain platform (e.g., Solidity for Ethereum, Chaincode for Hyperledger Fabric) and define the logic and operations of the self-executing program. Statements consist of commands, functions, or instructions that direct the smart contract on how to process data, interact with the blockchain network, manipulate variables, perform calculations, handle transactions, or execute conditional operations. Statements can include conditional structures (such as if-else statements), loops, variable assignments, function calls, event triggers, and other programming constructs that control the flow of execution within the self-executing program.
Additionally or alternatively, the system may receive a first logic in the first action specific self-executing program that determines the second resource upon execution of the first action specific self-executing program. Logic refers to the set of rules, conditions, and instructions encoded within the self-executing program's code that govern its behavior, decision-making process, and execution flow. It encompasses the logical operations, conditional statements, and procedural instructions that define how the self-executing program operates and responds to various inputs or conditions.
In some implementations, encoding the first blockchain action in the first action specific self-executing program may comprise the system receiving a first value for satisfying the first condition. For example, the first value for satisfying the first condition may can incorporate information from external data sources, and conditions may rely on data retrieved from these sources to trigger actions. For instance, a weather-based insurance smart contract may pay out based on weather data obtained from an oracle. As another example, conditions might specify that a certain number of participants (e.g., indicated by the value) need to approve an action or that a certain amount of tokens needs to be accumulated before an action is executed. Additionally or alternatively, the system may receive a first time for satisfying a second condition. For example, the second value may be a particular action that executes the self-executing program only after a specific date, time, or a defined duration has elapsed.
At operation 2204, process 2200 (e.g., using one or more components described above) determines a condition for performing the blockchain action. For example, the system may determine, at the first action specific self-executing program, a first condition for performing the first blockchain action, wherein the first condition is encoded in the first action specific self-executing program.
At operation 2206, process 2200 (e.g., using one or more components described above) receives a tokenized availability of the resource from a blockchain network. For example, the system may receive, by the first action specific self-executing program, a first tokenized availability of the first resource from a first blockchain network.
At operation 2208, process 2200 (e.g., using one or more components described above) determines whether to perform the blockchain action based on the tokenized availability. For example, the system may determine, by the first action specific self-executing program, whether to perform the first blockchain action based on comparing the first condition to the first tokenized availability.
In some implementations, the system may determine whether to perform the first blockchain action is based on comparing the first condition to the first tokenized availability, determining a first actual availability for a first resource in a first computer network based on the first tokenized availability, and determining that the first condition corresponds to the first actual availability. For example, the system may define a specific condition or set of criteria that need to be met for triggering a blockchain action. This condition can be related to resource availability, a specific value threshold, time-based parameters, or any other predefined rule. The system may maintain tokenized representations or digital tokens that signify the availability or capacity of resources within the computer network. These tokens could represent the available resources or their capacity in a digital form. The system may compare the condition set for the blockchain action with the tokenized availability. It checks if the condition aligns with the tokenized representation of resource availability in the network. The system may utilize the tokenized availability to derive or determine the corresponding actual availability of the resource within the computer network. This involves a process where tokenized availability is converted or mapped to reflect the real-time or current status of the resource. The system may then compare the condition specified for the blockchain action with the determined actual availability of the resource. It verifies whether the condition matches or corresponds to the verified real-time availability status of the resource within the network. Based on the comparison between the condition, tokenized availability, and actual availability, the system may make a decision regarding whether the condition aligns with the current state of the resource. If the condition matches the actual availability, the system proceeds to perform the blockchain action. If the comparison confirms that the condition corresponds to the verified actual availability, the system triggers the specified blockchain action, such as initiating a transaction, updating a smart contract, or executing a programmed function on the blockchain. The system may record the executed action on the blockchain and maintains a log or record of the process, documenting the correlation between the condition, tokenized availability, and actual resource availability for auditing or future reference.
In some implementations, determining whether to perform the first blockchain action may be based on transmitting a second user request to complete a first off-chain action and determining that the first off-chain action is completed. For example, oracles are entities or services that provide off-chain data or trigger off-chain actions in a blockchain network. They act as bridges between the blockchain and external data sources or systems, enabling self-executing programs to interact with real-world information or execute actions that occur outside the blockchain. The self-executing program sends a request or query to the oracle, specifying the necessary information or action to be performed off-chain. This request could involve retrieving data from APIs, accessing databases, executing external systems, or any other action outside the blockchain. The oracle receives the request from the self-executing program and performs the necessary operations or accesses external resources to fulfill the requested action off-chain. This could involve interacting with external APIs, databases, sensors, or other systems.
In some implementations, the system may select cryptographically secure digital assets (or amount thereof) based on actual availability. For example, the system may determine a first actual availability for the first resource in a first computer network. The system may determine a first cryptographically secure digital asset corresponding to the first actual availability. The system may record the first cryptographically secure digital asset in a digital log. The system may continuously monitor or periodically checks the status and availability of the resource within the computer network. This monitoring can involve network probes, status queries, or other monitoring tools to assess the resource's accessibility. Upon monitoring, the system may gather data or metrics to measure the resource's availability. It might include metrics like uptime, response time, network connectivity, or any other relevant parameters that define the resource's accessibility. Once the system determines the current availability status of the resource, it associates this verified status with a specific cryptographically secure digital asset. This asset serves as a representation or tokenization of the resource's availability. The system may employ cryptographic techniques such as hashing, encryption, digital signatures, or other secure methods to ensure the integrity, authenticity, and immutability of the digital asset associated with the resource's availability. This enhances the security and trustworthiness of the recorded information. The system may record the association between the cryptographically secure digital asset and the verified actual availability of the resource in a digital log or ledger. This log acts as a tamper-proof record of the resource's availability status over time. Each entry in the digital log is timestamped to indicate the time of recording. This helps in tracking changes, auditing the history of resource availability, and providing a chronological record of events for analysis or compliance purposes.
At operation 2210, process 2200 (e.g., using one or more components described above) executes the blockchain action. For example, the system may execute the first blockchain action, by the first action specific self-executing program, based on determining to perform the first blockchain action, wherein executing the first blockchain action causes the first tokenized availability of the first resource to be transferred to a second resource.
In some implementations, the system may determine the first actual availability for the first resource in the first computer network by the system receiving a first verification that the first resource has the first actual availability and recording the first cryptographically secure digital asset as corresponding to the first resource based on the first verification. For example, the system may initiate a verification process to determine the actual availability of a specific resource (e.g., a balance in a bank account, liquidity in a bank branch, etc.) within the computer network. This verification can involve various methods, such as network monitoring, pinging the resource, querying its status, or using specific protocols to confirm its accessibility. Upon verification, the system receives a confirmation or verification signal indicating the current status or availability level of the resource. This signal signifies that the resource is accessible and operational at that particular moment, confirming its actual availability. Following the verification and confirmation of the resource's availability, the system records or associates this verified status with a cryptographically secure digital asset. This association establishes a link or correlation between the verified actual availability of the resource and a unique digital asset stored or represented on the network. The system ensures that the digital asset linked to the resource's availability is cryptographically secure. This involves employing encryption, hashing, or other cryptographic techniques to safeguard the asset's integrity and authenticity within the system. The system maintains a record or ledger where the association between the verified actual availability and the corresponding cryptographically secure digital asset is stored securely. This record serves as a reference point for the resource's status and can be accessed for verification or auditing purposes. As the availability status of the resource changes over time (due to network conditions, maintenance, transactions, liquidity changes, etc.), the system may dynamically update or revise the association with the corresponding digital asset to reflect the most current and verified availability status accurately.
In some implementations, the first verification may be determined based on an amount for an off-chain record corresponding to the first resource, and the first verification may be received at a first blockchain network via a first oracle. For example, the system may interact with an oracle that has access to off-chain data, such as databases, APIs, or external systems, where the off-chain record corresponding to a specific resource is stored or updated. The system may define conditions or rules specifying that an on-chain action should occur based on certain parameters or data retrieved from the off-chain record. For instance, the condition could be a specific amount or value associated with the resource in the off-chain record. The system may use the oracle to query the off-chain data source and retrieve the relevant information or amount corresponding to the resource. The oracle fetches this data from the off-chain record. Upon receiving the data from the off-chain source, the system may validate and compare it against the predefined conditions or rules set for triggering the on-chain action. If the retrieved amount matches or meets the specified criteria, the validation process confirms that the condition is satisfied. Once the validation confirms that the condition based on the off-chain record's data is met (e.g., a party delivers a good at issue in a transaction, a party paid for a good, a network connection is created, appropriate availability/liquidity is found, etc.), the system triggers the corresponding on-chain action or smart contract function. This action could involve initiating a transaction, updating a smart contract state, executing a programmatic function, or performing any predefined action on the blockchain. The verified on-chain action is broadcasted to the blockchain network for execution and inclusion in a block. Miners or validators on the blockchain network process and validate the transaction, ensuring its inclusion in the distributed ledger. After the transaction is confirmed and added to the blockchain, the on-chain action corresponding to the validated off-chain data is executed, thereby reflecting the updated state or result on the blockchain.
In some implementations, executing the first blockchain action based on determining to perform the first blockchain action may comprise the system recording the first cryptographically secure digital asset in a digital log for the second resource. The system may determine a second actual availability for the second resource based on the first cryptographically secure digital asset. The system may transmit a second verification that the second resource has the second actual availability.
It is contemplated that the operations or descriptions of
The environment 2300 is enabled to capture, analyze, and record AI agent behavior without modifications to the AI agents themselves (e.g., zero-modification). The kernel-based management platform can be implemented in a multi-layered architecture where AI agents (or other applications) operate in user space above an operating system layer, while the monitoring and enforcement functionality (e.g., rules, data, functions) resides within the kernel space that maintains direct access to hardware resources.
The AI/LLM agent layer 2302 represents the monitored agents including semi-autonomous AI agents and autonomous AI agents executing their corresponding computational functions, which can include model inference operations that process input data through neural network architectures, API interactions that communicate with external services and data sources, and other computational tasks such as data processing, decision-making algorithms, and/or response generation operations. The agents can operate without awareness of or modification for the kernel-based management platform, i.e., maintaining their original software architecture and execution patterns while the monitoring system observes their behavior through system-level interfaces. AI agents can interact with the kernel through standard system call interfaces that request operating system services such as memory allocation operations that reserve computational resources for model execution, file system operations that read training data or write output results, network socket operations that establish connections to external APIs or data sources, process management operations that spawn child processes or manage execution threads, and so forth. These kernel interactions occur automatically as part of “normal,” or non-interfered agent execution and provide visibility into agent behavior without requiring any modifications to the agent software or awareness by the agent of the monitoring infrastructure.
The eBPF monitoring layer 2304 is structured to reside between the agent processes and the kernel through eBPF programs that execute within kernel space 2306 to intercept and record system calls, network activity, and/or resource usage of the monitored agent(s) or application(s). The eBPF programs can operate as verified code segments that attach to specific kernel events and execute custom monitoring logic whenever agents perform system operations such as file access, network communication, or memory allocation. The monitoring can occur entirely within the kernel space 2306, which refers to the privileged execution environment of the operating system where kernel code and device drivers execute with unrestricted access to system resources and hardware components. Kernel space 2306 provides visibility into all system operations because every user space process must request kernel services to perform computational work, thereby ensuring that no agent activity can occur without being observable by the kernel-based management platform. The kernel-based management platform therefore reduces tampering possibilities because user space processes cannot directly modify kernel memory or interfere with kernel-level monitoring operations.
In some implementations, the application such as an AI agent operates within a sandbox architecture that use specialized programs (e.g., eBPF programs) to create isolated execution environments by confining the program to a specific memory region or set of resources it is permitted to interact with. The specialized eBPF programs can execute directly within the kernel, which eliminates (or otherwise reduces) the need for context switches between user space and kernel space (resource-intensive operations). This direct access to kernel data structures and resources significantly reduces overhead and improves performance. However, to protect the kernel, the specialized eBPF programs can only interact with a limited set of kernel functions and data structures (e.g., those exposed through “helper functions”), which thereby restricts the program's potential impact on the kernel. Thus, even if an agent compromises its user space environment or breaks out of traditional container boundaries, the kernel-level management platform continues to restrict access to system resources according to the policies maintained in kernel memory.
The sandbox eBPF programs can attach to hooks (e.g., LSM hooks), system call entry points, network stack interfaces, and so forth, to enforce one or more rules (e.g., policies, conditions) stored in eBPF maps that restrict application operations. The restricted operations can relate to, for example, access to specific file system paths, network destinations, memory regions, hardware resources, and so forth. In some implementations, the sandbox maintains allow-lists and deny-lists in kernel-accessible data structures that define permitted operations for each sandboxed application. Unauthorized system calls can receive error responses (such as −EPERM or −EACCES) before kernel processing begins. In some implementations, multiple applications (e.g., multiple AI agents) can operate within a common sandbox. The sandbox can apply a subset of the rules stored to a particular agent based on, for example, an agent identifier, a domain of the agent, and so forth.
The kernel-based management platform can configure different sandbox environments with rule sets customized to specific agent types, application domains, or security requirements. Different agents can be assigned to different sandbox configurations based on their operational requirements, trust levels, functional categories, or other descriptor, such that, for example, high-privilege agents can be granted broader system access while untrusted or experimental agents operate under more restrictive policies. The sandbox architecture can be extended beyond AI agents to encompass various program types including database applications, web services, computational workloads, and so forth, where each program category receives operational boundaries defined through the rule sets.
The sandbox architecture can implement routing decisions that determine whether specific operations should be processed through operating system interfaces or directed to kernel-level handlers. In some implementations, for individualized operations that require customized handling, such as agent-specific security policies, personalized resource quotas, or otherwise unique operations, the kernel-based management platform routes the requests through user space pathways. Standard operations that are common (or otherwise shared) across application groups, such as routine file read/write operations, can be routed directly through kernel-level handlers that can process these operations with reduced latency by avoiding user space context switches. The kernel-based management platform can use, for example, lookup tables stored in eBPF maps that associate operation types with routing policies, where each entry contains routing flags indicating whether an operation should be handled in user space or kernel space. The kernel-based management platform can dynamically adjust routing decisions based on runtime conditions (e.g., current system load).
The behavioral analysis engine 2308 processes the raw event data from the eBPF layer and can identify normal and potentially malicious or otherwise flagged behavior patterns by generating behavioral data using pattern recognition and anomaly detection operations. Pattern recognition operations evaluate sequences of system calls, network connections, and resource usage patterns to identify known behavioral signatures that correspond to legitimate agent activities such as model loading sequences that follow predictable patterns of memory allocation and file access, API communication patterns that demonstrate consistent request-response cycles, or data processing workflows that exhibit regular computational resource usage. The pattern recognition operations can use databases of known “reference” (i.e., satisfactory) behavioral templates to compare observed agent behavior against these templates to determine whether agent actions conform to expected operational patterns.
In some implementations, continuous streams of system calls, network events, and resource usage data are segmented into fixed or sliding time intervals to capture behavioral patterns that unfold over specific durations (e.g., evaluating system calls within 10-second windows to identify burst patterns or sustained activities). Within each time window, the behavioral analysis engine 2308 can perform feature extraction by counting the frequency of specific system call types (e.g., number of ‘read( )’ calls, ‘write( )’ calls, ‘connect( )’ calls), measuring resource consumption rates (CPU utilization percentages, memory allocation volumes, network bandwidth usage), and/or identifying sequential relationships between events (such as detecting that ‘open( )’ calls are consistently followed by ‘read( )’ operations within specific timeframes). The extracted features can be transformed into numerical vectors where each dimension represents a specific behavioral characteristic, thereby enabling comparison operations such as determining the Euclidean distance between current behavior vectors and reference baseline vectors to quantify similarity, and/or applying threshold-based classification where behaviors exceeding predetermined variance limits from reference baseline vectors trigger one or more alerts. The reference baseline vectors can continuously update probability distributions of feature values based on, for example, validated actions (e.g., legitimate actions) performed by the agent.
In some implementations, the behavioral analysis engine 2308 uses trained neural networks and/or other statistical models to evaluate behavioral patterns by transforming observed agent activities into feature vectors and generating one or more similarity scores against learned representations of reference (e.g., normal) behavior. The behavioral analysis engine 2308 can use one or more supervised learning models trained on labeled datasets of satisfactory and non-satisfactory agent behaviors. The training data can include feature vectors from historical system call sequences. During runtime operation, the machine learning model can receive current behavioral feature vectors as input and perform forward propagation through trained network layers to generate probability scores that indicate the likelihood that observed behavior matches the reference satisfactory operational patterns versus non-satisfactory operational patterns. In some implementations, the behavioral analysis engine 2308 combines multiple machine learning models (e.g., decision trees, support vector machines, recurrent neural networks) to generate scores determined using weighted voting or probabilistic fusion of individual model outputs.
The trust attestation generator 2310 can use the analyzed behavioral data to create cryptographic signatures of the behavioral data that operate as immutable behavioral fingerprints by applying cryptographic hash functions on the behavioral measurements. The kernel-based management platform can generate hash values of behavioral data structures that indicate agent activities (e.g., system call sequences, network communication patterns, resource usage statistics, and/or timing information), and apply one or more digital signature operations (such as RSA or elliptic curve cryptography) to generate cryptographic signatures that bind the behavioral data to specific time periods and system states. In some implementations, the cryptographic signatures are immutable because they are generated using private keys that are stored and protected from unauthorized access, and modification to the underlying behavioral data would result in signature verification failures that indicate tampering attempts.
The attestations can be submitted to the blockchain integration engine 2312, which records the attestations in smart contracts to provide permanent, verifiable records of agent behavior. The kernel-based management platform can format the cryptographic attestations into blockchain transaction data structures that represent the behavioral signatures, timestamps, agent identifiers, and/or associated metadata, and then submit these transactions to blockchain networks where they are validated by network consensus operations and recorded in immutable blocks. Smart contracts can execute automatically when attestations are submitted and perform validation operations that verify cryptographic signatures, check attestation formats, and ensure that behavioral data meets predefined criteria before accepting the attestations into the permanent record. The cryptographic linking between blocks ensures that tampering attempts would be detectable by network participants.
The threat detection module 2314 is enabled to continuously or periodically evaluate behavioral data to identify malicious activities such as data exfiltration, privilege escalation, or unusual resource consumption. The threat detection module 2314 can compare current behavioral patterns against databases that contain known indicators of malicious activity, applying machine learning models trained to recognize attack patterns and suspicious behaviors, and/or executing rule-based detection operations that identify specific behavioral sequences associated with security threats. The threat detection module 2314, in some implementations, evaluates network communication patterns to identify unusual data transfer volumes, unauthorized connection destinations, or unusual timing patterns that indicate unauthorized data removal. The threat detection module 2314 can monitor system call patterns to identify attempts to access restricted resources, modify system configurations, and/or execute privileged operations without proper authorization. In some implementations, the threat detection module 2314 can use computational resource usage patterns to identify denial-of-service attacks, cryptocurrency mining activities, or other resource abuse that indicates compromised or malicious agents.
The trust registry 2316 can maintain a queryable database of historical trust scores and attestations, which thereby enables verification of agent trustworthiness and longitudinal analysis of behavioral patterns. Historical trust scores represent quantitative assessments of agent reliability determined from behavioral measurements over one or more time periods, and can be weighted such that recent behavior is weighted more heavily than historical behavior. To generate the trust score, behavioral measurements including compliance with expected operational patterns, absence of detected anomalies, successful completion of assigned tasks, and/or consistency of behavioral patterns over time can be weighted and aggregated. The trust registry 2316 can use indexed data structures that enable retrieval of trust information based on agent identifiers, time ranges, behavioral categories, and/or trust score thresholds/constraints.
The environment 2400 enables zero-touch behavioral monitoring of AI agents at the kernel level. In some implementations, the environment 2400 uses an eBPF to enable programs to run within the kernel without kernel module compilation or risking kernel crashes. The environment 2400 operates across two different execution spaces including a user space 2402 where AI agent 2406 processes execute with restricted privileges and limited access to system resources, and a kernel space 2404 where eBPF programs monitor these processes with visibility into system operations. User space 2402 represents the unprivileged execution environment where application processes including AI agents run with limited access to system resources and request kernel services through system call interfaces to perform operations such as file access, network communication, or memory allocation. User space processes can operate in virtual memory spaces that are isolated from each other and from kernel memory, thereby providing security boundaries that prevent processes from interfering with system operations or accessing unauthorized resources. Kernel space 2404 represents the privileged execution environment where the operating system kernel and device drivers execute with access to system resources including physical memory, hardware devices, and/or system data structures. Kernel space code can directly manipulate hardware components, access memory locations, and/or control system-wide resources.
An eBPF loader 2408 compiles one or more monitoring programs from high-level source code into eBPF bytecode and injects the compiled programs into the kernel through system call interfaces that transfer the bytecode and associated metadata to kernel memory regions. The kernel-based management platform can parse monitoring program source code and generate intermediate representations that capture program logic and data flow. The kernel-based management platform can parse the monitoring program source code tokenizing the source code into language elements such as keywords, operators, identifiers, and so forth, and construct one or more data structures that represent a structure (e.g., hierarchical structure) of program statements, control flow constructs, data declarations, and the like.
Using the intermediate representations, the kernel-based management platform produces eBPF bytecode instructions that can be executed by the eBPF virtual machine. The data collector 2410 retrieves observed events through ring buffer data structures that provide communication channels between kernel space eBPF programs and user space monitoring applications. Ring buffers implement circular buffer mechanisms in shared memory regions that allow eBPF programs to write event data from kernel space while user space applications read the data without requiring system call overhead for each event transfer. The ring buffer implementation can maintain separate read and write pointers that enable lock-free operations.
Within kernel space 2404, an eBPF verifier 2412 ensures that the monitoring programs are safe, cannot crash the kernel, will terminate, and access permitted memory regions based on an evaluation of the program bytecode before execution. The eBPF verifier 2412, for example, constructs a directed graph of all possible execution paths through the program and verifies that all paths lead to program termination without infinite loops or unbounded recursion. The eBPF verifier 2412 can examine memory operations to ensure the operations access only authorized memory regions while preventing access to protected kernel memory or arbitrary memory locations.
System call hooks 2414 can attach to system calls including file operations, network functions, process creation, and permission modifications through kernel tracepoint mechanisms that execute eBPF programs when specific system calls are invoked. The system call hooks 2414 can register eBPF programs by maintaining lists of programs to execute when particular system events occur. File operation hooks can intercept system calls such as open, read, write, and close operations by attaching to kernel functions that implement the operations, thereby capturing parameters such as file paths, access modes, data sizes, and/or return values. Network function hooks can attach to socket-related system calls (e.g., socket creation, bind operations, connect attempts, and/or data transfer functions) to capture parameters such as network addresses, port numbers, protocol types, and/or data volumes. Process creation hooks can track new process creation (e.g., by monitoring fork, exec, and clone system calls) to capture parameters such as process identifiers, parent-child relationships, executable paths, and/or command line arguments. Permission modification hooks can observe system calls that change security contexts such as file permissions, user privileges, or other security contexts, to capture the specific changes and the processes that initiated them.
A network tracing module 2416 monitors TCP/IP traffic, HTTP/HTTPS connections, DNS queries, and/or other data volume metrics through eBPF programs that attach to network stack processing functions within the kernel. For example, the kernel-based management platform can attach eBPF programs to kernel functions that process network packets at various layers of the network stack to capture packet headers, payload sizes, source and destination addresses, and connection state information. In some implementations, the kernel-based management platform can evaluate application-layer protocol data by parsing packet contents to extract HTTP request methods, URLs, response codes, and/or other header information. The kernel-based management platform can intercept domain name resolution requests by attaching to kernel functions that handle DNS protocol packets, recording queried domain names, response addresses, and/or query timing information.
A resource monitoring module 2420 tracks CPU usage patterns, memory allocations, disk I/O rates, and GPU utilization via eBPF programs that attach to kernel subsystems related to resource management and/or scheduling. Similarly, to monitor memory allocation, the resource monitoring module 2420 can hook into kernel memory management functions structured to manage virtual memory operations, tracking allocation requests, deallocation operations, memory usage patterns, and/or virtual memory mapping changes. To monitor disk I/O rates, the resource monitoring module 2420 can attach to block device layer functions that manage storage operations to capture parameters such as read and write request sizes, operation latencies, queue depths, and/or throughput measurements. To track GPU utilization, the resource monitoring module 2420 can monitor GPU driver interfaces and observe parameters such as GPU memory allocations, kernel launch parameters, execution times, and/or other GPU utilization metrics.
BPF maps 2422 provide data structures for storing and sharing state between eBPF programs and user space applications through various map types that support different access patterns and use cases. Hash maps can be used to implement key-value storage operations that enable lookup operations for associating process identifiers with behavioral data, storing configuration parameters, and/or maintaining state information that persists across multiple program invocations. Array maps provide indexed data storage for maintaining ordered collections of information such as statistical counters, time series data, and/or fixed-size data structures that can be accessed using integer indices. Ring buffers implement circular buffer operations for streaming event data from kernel space to user space applications. In some implementations, the size of the maps account for a maximum number of agents and a depth of proof chains. Hash maps can scale logarithmically with the number of entries to provide efficient lookup performance (e.g., even with thousands of agents). Ring buffers can be sized to accommodate burst traffic during periods of high billing activity.
An event collector 2418 aggregates and enriches events with timestamps and context information through processing functions that combine raw event data from multiple eBPF programs with additional metadata to create behavioral records. The event collector 2418 can collect related events that occur within specified time windows, correlate events based on process identifiers or other common attributes, and combine multiple data sources to create “snapshots” of agent behavior. To enrich the event, the event collector 2418 can add timestamp information, process names, user identifiers, parent-child relationships, system state information such as current resource utilization levels and active network connections, and so forth.
A performance monitor 2424 ensures the kernel-based management platform maintains a particular latency range such as sub-microsecond response times per event. The performance monitor 2424 can monitor execution times of eBPF programs, track memory usage and allocation patterns to prevent resource exhaustion, monitor system call overhead to ensure that monitoring operations do not impact agent performance (beyond a particular threshold, constraint), and so forth. A security monitor 2426 can validate privilege levels and flag anomalous access attempts. For example, the security monitor 2426 can evaluate credentials against access control lists to verify processes that have appropriate permissions for requested operations. Further, the security monitor 2426 can evaluate current access patterns against established baselines to identify unusual resource access requests that deviate from normal behavioral patterns and flag events such as attempts to access restricted files, establish unauthorized network connections, and/or modify system configurations without permissions.
The environment 2500 transforms raw event data into quantitative trust scores and cryptographic attestations by converting unstructured monitoring events into structured behavioral assessments. The unstructured monitoring events, i.e., raw eBPF events, can include individual system calls that represent specific requests for kernel services. As discussed in further detail with reference to
The kernel-based management platform can use one or more behavioral analysis modules 2502 to evaluate the identified behavioral features. For example, the kernel-based management platform includes a normal behavior profile that maintains a learned baseline of expected patterns including typical system call sequences that represent normal agent operations, common network destinations that correspond to legitimate external services, regular file access patterns that reflect standard data processing workflows, and normal resource consumption levels that characterize agent execution. This profile can update continuously as agent behavior evolves through adaptive learning operations (i.e., “legitimately”) that incorporate new behavioral observations. Historical behavioral data can be used to identify trends and changes in operation patterns.
The anomaly detection engine identifies deviations from the baseline by comparing current behavioral measurements against established normal behavior profiles, and flagging unusual activities (e.g., system call patterns that deviate from expected frequencies or sequences beyond a particular threshold (e.g., constraint), network activity that involves communication with unauthorized destinations or data transfer volumes beyond a particular threshold, abnormal file operations that access restricted files or exhibit particular access patterns, resource spikes that exceed consumption thresholds or exhibit particular patterns, and so forth). The anomaly detection engine can determine statistical distances between current behavior and baseline profiles and apply one or more predefined rules or machine learning models to identify deviations (e.g., machine learning models trained to recognize patterns associated with various types of malicious behavior).
The risk classifier categorizes detected anomalies into threat categories such as data exfiltration risk that identifies patterns consistent with unauthorized data removal such as large file transfers to external destinations or unusual database access patterns, privilege escalation risk that detects attempts to gain elevated system permissions through exploitation of security vulnerabilities or misuse of administrative functions, lateral movement risk that identifies attempts to access additional systems or resources beyond a predefined operational scope, and/or resource abuse risk that detects excessive consumption of computational resources that can indicate cryptocurrency mining, distributed computing abuse, or denial-of-service activities. Further discussion of the threat categories are discussed with reference to
A trust score output 2504 can be determined by the kernel-based management platform using multiple weighted components that combine different aspects of behavioral assessment into a single quantitative measure of agent trustworthiness. For example, a behavioral match to baseline can contribute a particular weight (such as 40% in
The trust score output 2504 can be a continuous, discrete, or categorical value (a range from 0 to 100 as shown in
The kernel-based management platform can generate a cryptographic behavioral fingerprint using the trust score output 2504 through cryptographic hash functions that create unique digital identifiers for specific behavioral patterns and assessments. For example, the kernel-based management platform generates hash values of the system call pattern data structures that contain frequency distributions and sequence information, network profile data that includes destination addresses and communication patterns, resource usage statistics that capture consumption trends and utilization patterns, and/or timestamp information that provides temporal context for the behavioral assessment. The kernel-based management platform can apply cryptographic hash functions such as SHA-256 to generate fixed-length hash values that uniquely identify the behavioral state, and/or combine multiple hash values to create composite fingerprints that represent complete behavioral profiles. The fingerprint, combined with the trust score, timestamp, and/or digital signature, forms an attestation that is structured to be recorded on a blockchain or otherwise stored in a database and operates as cryptographic proof of the agent's behavioral state at specific points in time.
In operation 2602, the kernel-based management platform can generate a trust data package that includes the agent identifier, trust score, behavioral fingerprint hash, and/or timestamp through data serialization operations that combine multiple data elements into a structured format. This package represents a snapshot of agent trustworthiness at a specific moment in time by capturing behavioral assessment information in a standardized data structure. The agent identifier refers to a unique alphanumeric string or cryptographic hash that distinguishes the specific AI agent being assessed from all other agents in the kernel-based management platform. The trust score represents the quantitative assessment of agent generated using operations discussed in further detail with reference to
In operation 2604, the kernel-based management platform can apply a private key signature to the attestation data through digital signature operations that create a non-repudiable proof of the attestation's origin and integrity using asymmetric cryptographic operations. The kernel-based management platform can generate a cryptographic hash of the trust data package using hash functions such as SHA-256 to create a fixed-length digest that uniquely represents the package contents, then applying the private key using digital signature operations such as RSA or elliptic curve cryptography to generate a signature that mathematically binds the data to the signing entity. The signed attestation can combine the original data with the cryptographic signature via data structure concatenation or embedding that represents both the original trust data package and the associated signature. This cryptographic binding ensures any tampering will be detectable because a modification to the original data causes signature verification to fail, as the mathematical relationship between the data, signature, and public key will no longer be valid.
In operation 2606, the kernel-based management platform can create a blockchain transaction that invokes a smart contract function to record the attestation through transaction construction processes that format the signed attestation data according to blockchain protocol specifications. The transaction can include the signed attestation data encoded in the transaction payload along with metadata such as transaction version numbers, input and output specifications, and/or execution parameters required by the blockchain network. The transaction can include a gas fee for processing that compensates network validators for the computational resources used to execute the smart contract and record the attestation in the blockchain. The smart contract is enabled to validate the signature authenticity and data integrity before accepting the attestation through programmatic verification routines that execute within the blockchain virtual machine environment. The verification routines validate the signature using the public key associated with the signing entity.
In operation 2608, the kernel-based management platform can maintain attestations in an immutable chain of blocks through a distributed ledger such as a blockchain. Each block can include multiple attestations along with cryptographic hashes linking it to previous blocks through hash chaining mechanisms that create cryptographic dependencies between consecutive blocks in the chain. A current block receives new attestations through transaction processing operations that validate and incorporate new attestation transactions into the block structure, and is validated by the distributed network of nodes through consensus mechanisms such as proof-of-work or proof-of-stake that reach agreement among network participants. Each node in the network maintains a complete copy of the blockchain through synchronization protocols that distribute new blocks and maintain consistency across all network participants. Once a block is finalized through the consensus process, its contents become immutable because of the cryptographic hash chains and distributed consensus. The kernel-based management platform enables parties to validate attestations by querying the blockchain by agent identifier through blockchain query interfaces that provide access to stored attestation records, retrieve the signed attestation data from the distributed ledger, verify the cryptographic signature using the public key associated with the attestation's origin, and other verification operations.
A data exfiltration detection module 2702 monitors for data exfiltration indicators by identifying patterns consistent with unauthorized data removal activities (e.g., unusual outbound traffic volume that exceeds established baseline thresholds for network communication, connections to unknown destination IP addresses that are not present in approved communication lists or geographic regions, large file reads followed by network sends that indicate systematic data extraction and transmission, encrypted data transfers that indicate attempts to conceal unauthorized data movement, database dump activities that indicate bulk extraction of structured data from database systems, and so forth). The data exfiltration detection module 2702 can monitor database connection patterns and subsequent network activity to identify indicators of large-scale data extraction operations. Additionally, the data exfiltration detection module 2702 identifies curl or wget commands to external IP addresses by monitoring system calls to capture command execution patterns associated with network transfer utilities directed toward unauthorized external destinations. Alerts can be triggered (e.g., on a user interface of a computing device) when probability scores for detected patterns exceed predetermined threshold values.
A privilege escalation detection module 2704 monitors for privilege escalation activities through system call monitoring and permission tracking that identifies attempts to gain elevated system privileges including unexpected setuid system calls that change process user identifiers to gain higher privileges, sudo command attempts that request administrative access, permission modifications via chmod operations that alter file or directory access permissions, access attempts to sensitive files such as/etc/passwd that contain system authentication information, and/or kernel module loading attempts. The privilege escalation detection module 2704 can identify patterns by monitoring system call patterns that track privilege-related operations, attempts to access restricted resources, and/or privilege requests or permission modifications. These attempts generate alerts to one or more computing devices through notification operations (e.g., sound, image, notification, video, multi-modal) that inform users or automated response systems.
A lateral movement detection module 2706 identifies lateral movement activities by detecting attempts to expand access beyond initially compromised systems (e.g., systematic probing of internal network addresses to identify additional targets), SSH connection attempts that indicate efforts to establish remote access to other systems within the network, RDP or VNC connections that represent attempts to gain graphical remote access to additional systems, SMB share enumeration that refer to scanning for network file shares that could provide access to additional resources, and/or unusual inter-host traffic patterns that deviate from normal communication patterns between systems. The lateral movement detection module 2706 can monitor network connection patterns via TCP connection attempts and/or established connections.
A resource abuse detection module 2708 can track computational resource consumption patterns that indicate malicious resource utilization including CPU usage that can indicate cryptocurrency mining or denial-of-service activities, memory exhaustion attempts that include consuming excessive system memory to degrade system performance or cause service failures, fork bomb patterns that create exponential process proliferation to overwhelm system resources, cryptocurrency mining signatures that exhibit specific computational patterns associated with blockchain mining operations, and/or disk I/O operations above a certain threshold that can indicate data destruction attempts or system performance degradation attacks. The resource abuse detection module 2708 recognizes malicious resource consumption by identifying sustained high CPU usage without computational work that corresponds to productive agent operations, fork loops that create process proliferation through recursive process creation that consumes system process limits and memory resources, and/or computational patterns matching known mining operations.
In operation 2802, the kernel-based management platform can obtain, e.g., intercept via the eBPF monitoring layer 2304 in
In operation 2804, the kernel-based management platform can determine (e.g., generate) an event record for each function that defines a process identifier assigned by a scheduler of the operating system, a type of resource interaction, a timestamp, and/or an identifier of a resource identified by the function.
In operation 2806, the kernel-based management platform can evaluate (e.g., using the behavioral analysis engine 2308 in
To evaluate the event record further, the kernel-based management platform can, e.g., via the risk classifier in
In operation 2808, the kernel-based management platform can generate (e.g., using the trust attestation generator 2310 in
In operation 2810, the kernel-based management platform can transmit (e.g., via the blockchain integration engine 2312 in
In response to the score set satisfying a predefined constraint, the kernel-based management platform can transmit the function invocation (or a portion of) to the kernel interface. On the other hand, in response to the score set failing to satisfy a predefined constraint, the kernel-based management platform can prevent transmission of the function invocation (or a portion of) to the kernel interface. In some implementations, the kernel-based management platform can determine that the observed pattern set fails to satisfy a particular constraint, and generate an alert on a computing device associated with the operating system in response to the determination. The kernel-based management platform can, e.g., via the threat detection module 2314 in
The kernel-based management platform can create a rule (e.g., a rule defined within the eBPF program) using one or more previous event records generated from one or more previous functions, and/or store the rule in a kernel-accessible data structure. The kernel-based management platform can generate rules by establishing threshold parameters such as maximum satisfactory file access rates (e.g., no more than 100 file operations per second), satisfactory network connection patterns (e.g., connections only to pre-approved IP address ranges), satisfactory resource utilization bounds (e.g., CPU usage below 80% averaged over 60-second intervals), and so forth. These rules can be encoded as conditional logic statements and stored in kernel-accessible data structures such as eBPF hash maps (that provide O(1) lookup performance for rule retrieval), eBPF array maps that store rule parameters indexed by rule identifiers, eBPF Least Recently Used (LRU) maps that automatically manage memory usage by evicting infrequently accessed rules, and so forth. Kernel-accessible data structures reside in kernel memory space that can be directly accessed by eBPF programs without context switching to user space. In some implementations, the kernel-based management platform applies the rule during the evaluation of the event record by comparing the event record against the stored rule and check the numerical event parameters against rule limits.
The kernel-based management platform can obtain, from each of a plurality of applications executing on the operating system, a respective function invocation (e.g., via eBPF programs attached to kernel hook points) that represents a respective request to execute a respective function using the kernel. The kernel-based management platform can access a unique agent identifier to each of the plurality of applications, where each unique agent identifier is mapped to a respective rule set. The mapping between agent identifiers and rule sets can be maintained in eBPF hash maps where the agent identifier operates as the key and the value includes pointers or indices to the corresponding rule set data structures (e.g., therefore enabling O(1) lookup performance). The kernel-based management platform can determine a particular event record for each function, and evaluate each particular event record by comparing the particular event record against the respective rule set that corresponds to a respective unique agent identifier.
Kernel-Level Resource Management Using the Kernel-Based Management Platform
The environment 2900 can be structured to include two different execution layers including a user space 2902 and a kernel space 2904, as discussed in further detail with reference to
The AI agent pool 2906 represents multiple independent AI agents that operate using computational resources through separate process instances that execute machine learning models, data processing operations, and/or decision-making computations while consuming system resources (e.g., processor time, memory allocations, storage operations, and network bandwidth). Each agent (or group of agents) can be assigned a unique identifier to distinguish individual agents for resource tracking and accounting purposes, thereby enabling the kernel-based management platform to monitor and control resource consumption on a per-agent (or group of agents) basis. Each agent (or group of agents) can operate within the resource quotas allocated by the marketplace controller 2908 to prevent individual agents from monopolizing system resources or interfering with other agents' operations. The marketplace controller 2908 can manage agent registration by authenticating new agents and assigning them identifiers and/or a quota allocation based on agent requirements and system availability, and/or overall system coordination via scheduling and resource arbitration functions to manage resource distribution among competing agents.
The billing system 2910 can consume usage events from the kernel and generate invoices, which refer to structured data records that represent resource usage charges (e.g., itemized lists of consumed resources, associated costs calculated, time periods for resource consumption, payment information). A dynamic exchange engine 2912 monitors system load by evaluating resource utilization metrics (as discussed in further detail with reference to
In kernel space 2904, eBPF programs 2914 can be loaded and attached to various kernel hooks by compiling user-provided monitoring code into kernel-executable bytecode and registering the programs with particular kernel subsystems for execution when specific system events occur. The eBPF programs 2914 can execute with kernel-level privileges that provide unrestricted access to system resources and data structures, ensuring that the programs cannot be tampered with by user space processes because user space applications cannot directly access or modify kernel memory where the eBPF programs execute. Within the eBPF programs 2914, a resource monitor component can track resource usage metrics such as estimated or anticipated resource usage by monitoring computational resource consumption (e.g., CPU time measured in processor cycles or time slices allocated to specific processes, memory usage measured in bytes of physical or virtual memory allocated to processes, I/O operations measured in read and write requests to storage devices, and network traffic measured in bytes transmitted and received through network interfaces). A quota enforcer component compares the resource usage metrics against resource limits before allowing operations to proceed. A billing trigger component detects when usage thresholds are exceeded through comparison operations performed by the quota enforcer and generates billing events that record resource consumption by creating structured data records that represent usage measurements, timestamps, and/or agent identification information. A cryptographic proof generator component can generate one or more tamper-evident records of resource consumption via cryptographic hash operations that generate unique digital fingerprints of resource usage data by applying cryptographic hash functions such that it is computationally infeasible to modify data without changing the corresponding hash values.
The eBPF maps 2916 can provide shared data structures accessible to both eBPF programs 2914 and user space processes through kernel-managed memory regions. Within the eBPF maps 2916, the usage statistics map stores per-agent resource consumption metrics through hash table data structures that associate agent identifiers with resource usage measurements such as CPU time consumption, memory allocation totals, I/O operation counts, and/or network bandwidth utilization. The quota map stores allocated resource limits via key-value data structures that associate agent identifiers with maximum (or other threshold) allowed resource consumption values for different resource types. The exchange (e.g., pricing) map can store or otherwise maintain current per-unit costs via data structures that maintain exchange (e.g., pricing) information for different resource types (e.g., CPU time costs per processor cycle, memory costs per byte allocated, storage costs per I/O operation, and network costs per byte transferred). A proof chain map can store cryptographic hashes through linked data structures that maintain chains of resource consumption records, with each hash value cryptographically linked to previous records to create an audit trail of resource usage.
Environment 3000 illustrates an architecture of eBPF programs 3004, which correspond to the eBPF programs 2914 described in
Within a kernel execution path 3002, which represents the sequence of kernel functions and system calls that execute when processes request system services, a scheduler hook can be used to capture context switch events to track CPU time allocation through attachment to kernel scheduling functions that manage process execution time slices and processor assignment. When an agent process is scheduled to run by the kernel scheduler, the eBPF program 3004 can record a start timestamp using kernel timing facilities that provide time measurements (e.g., nanosecond-precision) through hardware performance counters and/or system clock interfaces. When a process is preempted by the scheduler due to time slice expiration or higher-priority process activation, the eBPF program 3004 can determine an elapsed CPU time by determining a difference between the current timestamp and the previously recorded start timestamp. The eBPF program 3004 can update an agent usage map within eBPF maps 3006, e.g., the eBPF maps 2916 described in
Memory allocation hooks within the kernel execution path 3002 can intercept one or more memory-related functions such as kmalloc, which allocates kernel memory from physically contiguous memory regions, vmalloc, which allocates virtually contiguous memory that can be physically fragmented, or related memory allocation functions. Each allocation request includes a requesting process identifier that enables the eBPF program 3004 to attribute memory usage to specific agents, enabling per-agent memory consumption tracking and quota enforcement. A quota enforcement program, which corresponds to the quota enforcer described in
Block I/O hooks within the kernel execution path 3002 attach to one or more disk operation-related tracepoints such as blk_account_io_start function, which executes when block device I/O operations begin, and related tracepoints that monitor various stages of storage device access including I/O request queuing, device driver processing, and/or completion notification. The eBPF program 3004 can track read and write operations to accumulate I/O operation counts that represent the total number of storage access requests and transferred byte volumes that represent the total amount of data moved between memory and storage devices.
Network hooks within the kernel execution path 3002 can intercept one or more communication paths related to network bandwidth consumption such as TCP transmission paths that manage reliable, connection-oriented network communication, UDP transmission paths that handle unreliable, connectionless network communication, and other network protocol processing functions within the kernel network stack. The eBPF program 3004 can track packets sent and/or received to monitor packet counts representing the total number of network messages processed and/or total byte volumes representing the aggregate amount of data transmitted and received through network interfaces.
Timer hooks within the kernel execution path 3002 can trigger periodically and execute registered callback functions at specified time intervals to check for billing thresholds and generate usage snapshots that capture current resource consumption states for accounting purposes. These periodic checks ensure that long-running agents generate regular billing events rather than accumulating unbilled usage through systematic monitoring that prevents resource consumption from going unaccounted for extended periods, which could lead to billing inaccuracies or quota enforcement delays. The timer-based monitoring provides regular checkpoints that capture resource usage measurements at consistent intervals.
In operation 3102, during an initialization phase, an agent (or group of agents) can request marketplace access and receive a unique identifier. A marketplace controller, which represents a user space application process structured to coordinate resource allocation, can determine a resource quota based on the agent's computational requirements including expected CPU time consumption, memory allocation needs, storage access patterns, and/or network bandwidth requirements. The marketplace controller can evaluate the expected resource usage against current system availability measurements that indicate available computational capacity across different resource types. The quotas can be written to the eBPF quota map, which represents a kernel-managed data structure that stores resource limit information in key-value format accessible to kernel space enforcement programs, thus making the quotas enforceable by kernel-level programs that can access and modify the quota map through atomic memory operations.
In operation 3104, the kernel-level management platform can perform runtime monitoring when the agent begins to consume computational resources through continuous observation of system operations and resource allocation requests. Each resource operation including CPU scheduling events, memory allocation requests, storage I/O operations, and/or network communication activities can trigger a particular eBPF hook, which represents a kernel attachment point where monitoring code executes automatically when specific system events occur. A resource monitor component within the eBPF program can extract or otherwise determine the agent identifier from the execution context, read a current timestamp, and determine or generate a resource delta representing the incremental resource consumption since the last measurement (by determining differences between current and previous resource usage values). The delta value can be atomically added to the agent's accumulated usage in the usage map through atomic memory operations.
Quota checking can be performed on every resource operation by validating resource requests against established limits before allowing operations to proceed. For example, the enforcement program reads both the current usage totals and the allocated quota limits from their respective eBPF maps. If usage equals or exceeds the quota threshold, the enforcement program throttles the agent through resource allocation delays or blocks at least a portion of the requested operation, thereby preventing quota violations that could lead to resource monopolization or system instability. The throttling mechanisms can include CPU scheduling delays that reduce processor time allocation, memory allocation failures that prevent excessive memory consumption, I/O operation queuing that limits storage access rates, and/or network bandwidth restrictions that control communication resource usage.
In operation 3106, the kernel-level management platform can generate billing events when usage exceeds predefined thresholds or when periodic timer expires by creating structured data records that represent resource consumption. For example, the billing trigger program reads a current usage totals from the usage map and retrieves the corresponding exchanged resource (e.g., price) information from the exchange (e.g., pricing) map that indicates current per-unit resource costs. The billing trigger program determines a cost via one or more operations that multiply resource consumption quantities by corresponding unit prices and/or emits an event to user space via a BPF ring buffer, which represents a circular buffer data structure in shared memory that enables communication between kernel space programs and user space applications. The event can include or otherwise indicate the agent identifier for associating charges with specific agents, resource usage amounts representing quantities of different resource types consumed, computed cost values representing monetary charges for resource consumption, and/or a cryptographic hash.
In operation 3108, a billing system, which corresponds to the billing system 2910 described in
In operation 3110, the kernel-level management platform performs continuous adaptation. The eBPF programs can track system-wide pressure metrics including overall CPU utilization across all processors, total memory consumption relative to available capacity, storage system load measurements, and/or network bandwidth utilization levels. In some implementations, the eBPF programs receive feedback from user interfaces communicatively connected with the eBPF programs. An exchange (e.g., pricing) engine, which represents a user space application that implements dynamic exchange (e.g., pricing) calculations, can use the tracked metrics to adjust exchanged resource values (e.g., price) by modifying per-unit resource costs based on supply and demand conditions. Updated exchanged resources (e.g., prices) can be written back to the eBPF exchange (e.g., pricing) map through memory write operations that modify the kernel-managed exchange (e.g., pricing) data structure, thereby creating a feedback loop to balance system load by biasing towards efficient resource usage and biasing away from resource waste or monopolization.
System metrics 3202 can be continuously collected by eBPF programs, which correspond to the eBPF programs 2914 and 3004 described in
A resource allocation engine 3204, which is structured to determine one or more resource exchange (e.g., exchanging system resources for monetary resources) adjustments, can normalize each metric to a value between zero and one by generating or otherwise determining a ratio calculated as current value minus minimum value divided by maximum value minus minimum value, where the minimum and maximum values represent the expected operational range for each specific metric type. Normalized metrics can be multiplied or otherwise weighted by configurable weights, and combined through summation operations to produce an aggregate load score that represents overall system utilization level. For example, in
A load score can be mapped to exchange (e.g., pricing) zones by comparing the aggregate load score to predefined threshold values that define different operational states and corresponding exchange (e.g., pricing) strategies. For example, in
To calculate an exchanged resource (e.g., price) 3206 for particular resources, the resource allocation engine 3204 can multiply or otherwise weight the base exchanged resource (e.g., price) for each resource type by the zone-specific multiplier through operations that adjust baseline resource costs according to current system load conditions. Base exchanged resources represent the standard cost per unit of each resource type including CPU time measured in processor cycles or time slices, memory measured in bytes allocated, storage operations measured in I/O requests or data transfer volumes, and/or network bandwidth measured in bytes transmitted or received. To prevent exchanged resource fluctuations that could cause instability in resource allocation decisions, a moving average smoothing function can be applied to determine weighted averages of recent exchanged resource values and reduce short-term volatility. The updated or smoothed exchanged resources 3206 can be written atomically to an eBPF exchange (e.g., pricing) map through atomic memory operations, where the exchanged resources 3206 become available to billing event generators that compute resource charges based on current resource exchange information. The resource allocation engine 3204 causes agents to consume resources during low-load periods when discounted resource exchange rates makes resource usage more cost-effective, and defer non-urgent computational work during peak times when premium resource exchange rates encourages resource conservation and prevents system overload conditions that could degrade performance for all system users.
Each proof record can include or otherwise indicate an agent identifier that uniquely distinguishes the specific AI agent associated with the resource consumption measurement, timestamp information that indicate when the resource usage occurred using high-resolution system clocks or hardware performance counters, sequence number values that establish chronological ordering of records within the hash chain (to prevent reordering attacks), resource usage metrics, and so forth. Each record can include or otherwise indicate the previous record's hash value, which represents the cryptographic fingerprint of the preceding record in the chain, and the current record's determined hash value, which represents the cryptographic fingerprint of the current record computed from all the record's data elements. The structure ensures that any modification to historical records can be detected because altering any data element in a record would change its hash value, which would no longer match the previous hash value stored in subsequent records, thereby creating a detectable inconsistency in the cryptographic chain.
Within a proof generation engine 3302 used to generate the proof records, hash determination can occur within an eBPF program, which corresponds to the eBPF programs 2914 and 3004 described in
A proof chain 3304 can begin with a genesis record that establishes the baseline through initialization of the hash chain with an initial record that contains predetermined initial values. The genesis record provides a known starting point with a predefined hash value that enables verification processes to validate the entire chain from its origin. Subsequent records can link back to their predecessors, such that each new record incorporates the hash value of the immediately preceding record, thereby creating cryptographic dependencies. The proof chain 3304 can be stored in an eBPF map through kernel-managed data structures. Atomic update semantics can ensure that chain modifications are completed entirely or not at all to prevent partial updates that could compromise chain integrity during concurrent access by multiple monitoring programs or verification processes.
A tamper detection engine 3306 can detect one or more tampering events using the cryptographic properties of the hash chain. If an attacker attempts to modify a historical record, the hash of that record changes because cryptographic hash functions produce different output values when input data is altered. This modified hash no longer matches the previous hash value stored in the subsequent record, causing verification to fail when the tamper detection engine 3306 compares the recomputed hash of the allegedly unmodified record against the hash value stored in the following record. Because the hash computation occurs in kernel space, user space processes cannot forge valid proof records because they lack the kernel-level access to execute the hash computation code.
A verification engine 3308 can operate in user space by reading the proof chain from the eBPF map through system call interfaces that provide controlled access to kernel-managed data structures containing the hash chain records. For each record in the chain, the verification engine 3308 can re-determine the hash using the same cryptographic operations that were used during record creation (e.g., applying SHA-256 hash functions to the same input data including the previous record's hash and the current record's usage data) and compares the re-determined hash to the stored hash value through bitwise comparison operations that identify any differences between the computed and stored hash values. Any discrepancy can indicate tampering because cryptographic hash functions are deterministic and can produce identical output values when applied to identical input data, so differences in hash values can indicate that the input data has been modified. The verification engine 3308 can check that each record's previous hash matches the actual hash of the preceding record through sequential validation that traverses the entire chain, computing the hash of each record and verifying that it matches the previous hash value stored in the subsequent record.
Kernel-Level Lineage Tracking Using the Kernel-Based Management PlatformThe architecture 3400 can be structured to include three different execution layers including a user space layer 3402, a kernel space layer 3410, and a storage and verification layer 3420, which represent distinct privilege levels and execution contexts within the computer system architecture. Further examples of the user space layer 3402 and the kernel space layer 3410 are described with reference to the user space 2402 and the kernel space 2404 in
The user space layer 3402 can include AI agent 3404-1 and AI agent 3404-2 (additionally referred to as AI agent 3404 and AI agents 3404) and user space manager 3406. The AI agents 3404 can operate in user space and interact with the kernel-based management platform through standard system calls for file operations, network communications, and other I/O activities. In some implementations, there can be one or more AI agents of the user space layer 3402. Multiple agents can run concurrently, each identified by unique process identifiers and agent metadata that is captured automatically by the kernel-level monitoring infrastructure. The AI agents 3404 can perform various types of operations including reading training data from files, writing model outputs, communicating with external APIs, querying databases, and exchanging messages with other agents. These operations can translate to system calls that pass through the kernel, where the eBPF infrastructure intercepts them for provenance tracking.
The ePBF kernel space layer 3410 can include system call hooks module 3412 and provenance engine 3414. When the AI agents issue system calls, each call can be attached to an ePBF program. The system calls can include read, write, open, close, sendto, recvfrom, connect, socket, fork, and exec, among other suitable calls, and are included in the system call hooks module 3412. When one or more of AI agents 3404 invokes these system calls, the corresponding ePBF program can execute before and/or after the actual system call, capturing information about the operation. The eBPF programs can record process ID, thread ID, user ID, file descriptors, file paths, network addresses, data sizes, and operation return codes of the system call being executed, along with other metadata. For file operations, the kernel-based management platform can record the complete file path, opening flags (read/write/append), and file position. For network operations, the kernel-based management platform can record source and destination IP addresses, port numbers, protocol types, and socket options.
The provenance engine 3414 can perform processing (e.g., real-time or near-real-time) of the captured system call data. It can include capabilities such as cryptographic hashing, lineage graph construction, metadata extraction, and event buffering. The hash calculator component can compute cryptographic hashes of data as it passes through system calls. For read operations, hash calculator can hash the data being read from files or network sockets. For write operations, hash calculator can hash the data being written. The hashing can be performed incrementally using streaming hash algorithms to handle large data objects efficiently. SHA-256 can be used as the default hash algorithm, providing 256 bits of cryptographic strength. In some implementations, the kernel-based management platform can support configurable hash algorithms including SHA-512 for enhanced security. The lineage graph builder can maintain a dynamic graph structure representing data dependencies. When an agent reads data from one source and writes it to another destination, the kernel-based management platform can create a lineage link from the source to the destination. The graph can be stored as a directed acyclic graph (DAG) where nodes represent data objects and edges represent transformations or transfers. Each edge can include metadata about the operation type, timestamp, and agent responsible for the transformation.
The user space manager 3406 can be a daemon process and can continuously read provenance records from the provenance engine 3414. The user space manager 3406 can be responsible for event processing, record formatting, deduplication, batching, and distribution to storage systems of the provenance records. The user space manager 3406 can include capabilities including an event processor, a record formatter, and a buffer manager. The event processor can validate incoming provenance records, ensuring they contain all required fields and that hash values are properly formatted. The event processor can correlate related events, such as matching read and write operations that represent a data transformation. The processor can maintain a cache of recent operations to detect duplicate events that might occur due to retries or concurrent operations. The record formatter can transform raw provenance data into structured records suitable for storage. The record formatter can add additional contextual information such as agent names, file type classifications, and semantic labels. The record formatter can compute secondary indexes that can enable efficient querying of the provenance database.
The storage and verification layer 3420 represents the isolated infrastructure where provenance records are maintained for audit, analytics, and compliance. The storage and verification layer 3420 can provide privileged mechanisms for storage and verification. The storage and verification layer 3420 can include a blockchain ledger 3430. The processed provenance records from the user space manager 3406 can be written to the blockchain ledger. The blockchain implementation can use a permissioned or private blockchain suitable for enterprise deployments, with configurable consensus mechanisms. Each provenance record can be packaged into a blockchain transaction. Multiple transactions can be aggregated into blocks at regular intervals (e.g., 1-10 seconds depending on throughput requirements). The blockchain ledger 3430 can include a block creator which can initiate blockchain blocks. Each block can contain a cryptographic hash of the previous block, creating an immutable chain. The blockchain ledger 3430 can include a hash chain manager which can create and maintain the cryptographic hash chains and a consensus engine which can coordinate agreement among blockchain nodes on the ordering and content of blocks. Each block can include a Merkle tree of all transactions, enabling efficient verification of individual record inclusion. A consensus engine can ensure that all nodes in the blockchain network agree on the ordering and content of blocks. For private blockchains, practical Byzantine fault tolerance (PBFT) or similar algorithms can be used, for example to ensure that all nodes in the blockchain network agree on the ordering and content of blocks. For public or consortium blockchains, proof-of-authority or proof-of-stake mechanisms can be used. In some implementations, the choice of consensus mechanism can be configurable based on deployment requirements.
The storage and verification layer 3420 can include a provenance database 3432. Provenance records can be stored in the provenance database 3432. The provenance database 3432 can be a database optimized or otherwise biased for time-series data and graph queries. The provenance database 3432 can provide fast access to provenance information for real-time monitoring, audit queries, and compliance reporting. The database schema can be designed to support multiple query patterns and include a query processor for processing multiple query types. A first table can store individual provenance records indexed by timestamp and agent identifier. A second table can maintain the lineage graph structure. Other tables can provide indexes for common query patterns such as finding all operations on a specific file, tracing data lineage forward or backward from a given data object, or identifying all data accessed by a particular agent. The provenance database 3432 can include a record store which can store individual provenance records with support for high-throughput ingestion (e.g. in real-time or near real-time), deduplication, and batching of events indexed by timestamp, and agent ID and an index manager which can create and maintain secondary indexes and specialized tables that can enable querying and traversal of provenance, including file- or agent-specific queries and lineage tracking for complex operations. The data can be time-series data, meaning each provenance event is recorded with a precise timestamp (e.g., with nanosecond precision) that indicates when the operation occurred. This can enable chronological sequencing of events, support analytics and monitoring (e.g. in real-time or near real-time), and enable complex compliance and audit queries.
The storage and verification layer 3420 can include an analytics engine 3434 and a verification service 3436. The analytics engine 3434 can provide tools for querying and analyzing provenance data. The analytics engine 3434 can include a lineage tracker which can support lineage tracing queries that can follow data transformations through complex multi-agent workflows, identifying all intermediate steps and transformations. The analytics engine 3434 can include an audit report generator which can generate audit reports showing all operations performed by specific agents, all accesses to sensitive data, or data outputs produced during a given time period. The analytics engine 3434 can include a compliance checker which can automate checking for compliance with data handling regulations (e.g., by comparing the data with reference data). The verification service 3436 can enable cryptographic verification of provenance records. The verification service 3436 can include a hash validator. Given a data object and its claimed provenance record, the hash validator can recompute the hash of the data and verify it matches the hash in the provenance record (e.g. by comparing the recomputed hash value to the stored hash in the provenance record). The verification service 3436 can include a chain verifier. The chain verifier can verify the blockchain proof (e.g. by checking the inclusion of the provenance record in the blockchain's Merkle tree and validating the block's cryptographic hash chain), ensuring the provenance record has not been altered since it was originally recorded. This verification can be performed independently by auditors or compliance systems, such as an integrity checker, without requiring access to the original AI agent infrastructure. The storage and verification layer 3420 can further include a query and API interface 3438, which can provide access to provenance records and enable users and systems to efficiently retrieve provenance information in real time. For example, users can issue API queries (e.g. via Restful API, GraphQL, or gRPC Endpoints) for line queries, audit trails, or compliance reports. The query and API interface can provide access to the provenance data for these purposes.
Certain components of
The kernel-based management platform can reduce performance impact on AI agents when provenance tracking. eBPF programs can execute directly in kernel space with reduced overhead to individual system calls. The use of ring buffers for communication between kernel and user space can provide high throughput with low latency.
Hash computation can be optimized or otherwise biased through the use of hardware acceleration when available. Modern CPUs include specialized instructions for cryptographic operations (such as Intel SHA extensions or ARM crypto extensions) that accelerate hash calculations. The kernel-based management platform can automatically detect and utilize available hardware acceleration. For high-throughput scenarios involving large data transfers, the kernel-based management platform can support adaptive sampling where not every byte is hashed, but instead representative samples are taken at regular intervals. This can maintain the ability to detect data modifications while reducing computational overhead for large files or high-bandwidth network streams.
The kernel-based management platform includes multiple layers working in concert to track data operations. The architecture 3500 is designed to operate with reduced performance overhead while providing visibility into data flows across AI agent systems. The architecture 3500 can include an AI agent layer 3502, external systems 3504, eBPF kernel space layer 3510, a blockchain ledger 3520, and a storage and analytics layer 3522. Each component can represent distinct privilege levels and execution contexts within the computer system architecture. The AI agent layer 3502 and the external systems 3504 represent the unprivileged execution environment where application processes can execute with restricted access to system resources and are structured to request kernel services through system call interfaces to perform operations that require elevated privileges or direct hardware access. These processes can operate within virtual memory spaces that are isolated from each other and from kernel memory. For example, system calls such as a file read or a network send operation can originate from the AI agent layer 3502 or the external systems 3504. The external systems 3504 can have access to systems including file systems, network services, and databases.
Data, including I/O data, can flow between the AI agent layer 3502 and the external systems 3504 through operating system interfaces where AI agents invoke system calls that request kernel services to access external resources. System calls represent the operations by which user space processes communicate with the kernel to perform privileged operations (e.g., file system operations such as open( ), read( ), write( ), and close( ) that enable agents to access data stored in files, databases, or configuration repositories maintained by external systems). Network communications can occur through socket-based system calls (e.g., socket( ), connect( ), send( ), recv( )) that establish network connections and transfer data packets between AI agents and remote services, APIs, or other networked systems. In some implementations, the AI agent layer 3502 and the external systems 3504 can be contained within user space, such as user space layer 3402. The AI agent layer 3502 can pass data about I/O operation calls to the eBPF kernel space layer 3510 and the external systems 3504 can pass other data access such as file systems, network services, and databases to the eBPF kernel space layer 3510.
The kernel space layer 3510 represents the privileged execution environment where the operating system kernel and device drivers execute with unrestricted access to all system resources such as physical memory, hardware devices, and system control structures. Kernel space code can directly manipulate hardware components, access any memory location, and control system-wide resources while maintaining security through controlled interfaces that prevent unauthorized user space processes from accessing kernel functionality. eBPF can be used to execute sandboxed programs to run in kernel space without modifying kernel source code or loading kernel modules. The kernel-based management platform can use eBPF to attach monitoring programs to key kernel functions and system call entry/exit points. The kernel space layer 3510 can include subsystems such as an I/O monitoring subsystem 3512, a provenance tracking subsystem 3514, and an event processing subsystem 3516. An I/O monitoring subsystem 3512 can include file read/write hooks, network I/O hooks, and system call tracing capabilities. These can function to capture system calls as they enter from the AI agent layer 3502. A provenance tracking subsystem 3514 can include data lineage capture, cryptographic hashing, and metadata collection functionalities. This can function, for example, as provenance engine 3414. An event processing subsystem 3516 can include real-time analysis of events, event correlation, and buffer management functionalities. The event processing subsystem can function for example as a part of user space manager 3406. The kernel space layer 3510 can pass information including provenance records to a blockchain ledger 3520 and event data to a storage and analytics layer 3522.
The blockchain ledger 3520 represents an immutable record storage system that is used to store provenance records enabling cryptographic assurance such that once a record is written, it cannot be altered or deleted without detection. The blockchain ledger 3520 can include immutable record storage, hash chain verification, and distributed consensus functionalities, for example as in blockchain ledger 3430. It can pass hash chain verification information to the storage and analytics layer 3522, which can include a provenance database such as provenance database 3432, query interface, audit trail reposts and compliance verification capabilities. The storage and analytics layer 3522 represents a high-performance database and analytics engine that enables efficient querying, monitoring (e.g. in real-time or near real-time), lineage tracing, and compliance reporting on the captured provenance data. The storage and analytics layer can include the functionalities of storage and verification layer 3420. The blockchain ledger 3520 can function in some implementations such as blockchain ledger 3430, while the storage and analytics layer 3522 enables fast, flexible querying and real-time analysis of provenance data for monitoring, compliance, and audit purposes. Together, they deliver both cryptographic assurance of record authenticity and practical access to detailed lineage information.
At operation 3602, an AI agent operation module including an AI agent can perform a function such as a file read/write or network I/O operation. For example, the function invocation can represent a request to execute a function set using the kernel. When an AI agent initiates a file read or write operation, or network I/O operation, the operation can be translated into a system call by the operating system. The system call can have an attached eBPF hook.
At operation 3604, an eBPF hook triggers module can intercept the system call at the kernel level. The eBPF hook attached to the system call triggers in or near real-time, executing the monitoring program in kernel space, for example the kernel space layer 3510. For example, the kernel-based management platform can intercept, using a kernel interface, a function invocation representing a request to execute a function set using the kernel (e.g. a system call) transmitted from an AI application (e.g. the AI agent). The kernel interface can be configured to manage communications with a kernel of the operating system. The kernel-based management platform can determine, using a system hook corresponding to the function invocation, that the AI application has requested a data operation corresponding to a subset of data accessible by the operating system. In response, the kernel-based management platform can execute the monitoring program.
At operation 3606, the data capture module can extract data content, metadata, timestamps, a source, and destination from the system call. For example, the kernel-based management platform can generate a data access event for the function invocation. The data access event can include one or more access parameters (e.g. information about the data content, metadata, timestamps, and source or destination) and one or more agent parameters (e.g. information about the AI agent). The data capture module can be a part of the provenance engine 3414 of the kernel space layer 3410, for example.
At operation 3608, the cryptographic hashing module can generate a hash (e.g., a SHA-256/SHA512 hash) of the data in kernel space. For read operations, after the system call completes successfully, the eBPF program can determine the hash of the data that was read, for example using the hash calculator of provenance engine 3414. For write operations, the eBPF program can hash the data before it is written to the destination. For example, the kernel-based management platform can generate a data package for the function invocation. The data package can include the function invocation representation encoded into a distributed ledger format. The hash computation can happen in kernel space by accessing the data buffer directly without copying to user space, which can reduce performance overhead. The cryptographic hashing module can pass the hash to a linear graph update module and the blockchain write module.
At operation 3610, the linear graph update module can create a provenance record linking the source data to the destination. For example, the kernel-based management platform can generate a function invocation representation including the one or more access parameters and the one or more agent parameters. The linear graph update module can be a part of provenance engine 3414, particularly the lineage graph builder, for example. The lineage graph update module can pass the provenance record to a provenance record creation module and the database storage module.
At operation 3612, the provenance record creation module can create a structured record containing the computed hash, operation timestamp (e.g., with nanosecond precision from the kernel's monotonic clock), agent identifier, operation type, source and destination information, and lineage links to related data objects. This record can be written to a ring buffer shared between kernel and user space. The record can be passed to a verification module.
At operation 3614, a blockchain write module can add the record from the cryptographic hashing module to the immutable ledger. For example, the kernel-based management platform can cause a transmission of the data package to a distributed ledger, wherein the distributed ledger is configured to commit the data package across multiple nodes. For example, the blockchain write module can write the hash to the blockchain ledger 3430.
At operation 3616, a database storage module can store the provenance record for query and analysis. For example, it can be stored in a provenance database such as provenance database 3432. At operation 3618, the verification module verifies the integrity of the structured record from the provenance record creation module based on blockchain proof, for example as a part of verification service 3436, as discussed in further detail with reference to
In regulated industries such as healthcare, financial services, and government, the kernel-based management platform can provide automated compliance with data handling regulations by maintaining complete audit trails of all data access and transformations. Auditors can verify that sensitive data was only accessed by authorized agents and was processed according to established policies. For AI model development and training, the kernel-based management platform can automatically track training data lineage, enabling researchers to understand exactly which data sources contributed to model outputs. This can be used to maintain training data quality, detecting bias in training datasets, reproduce experimental results, and so forth. In multi-agent systems, the provenance tracking can enable trust and accountability. When multiple agents from different organizations collaborate, each organization can independently verify that their data was handled correctly by other agents. The immutable blockchain record can prevent disputes about data handling and provide cryptographic proof of proper processing.
Kernel-Level Anomaly Detection Using the Kernel-Based Management PlatformThe user space layer 3702 can include an AI agent 3710, a control plane 3712, a quarantine manager 3714, and an analytics dashboard 3716. The AI agent 3710 can be LLM-based, and include capabilities such as API tool calls, file I/O calls, network requests, process spawning, and database access, among other capabilities. These agents represent a technical security challenge due to their autonomous decision-making, access to multiple system resources, and potential for unpredictable behavior. The anomaly detection and automatic quarantine engine can monitor all agent interactions including the above-listed capabilities. Each agent including AI agent 3710 can be assigned a unique identifier that serves as the key for baseline profiles and anomaly detection. The anomaly detection and automatic quarantine engine can track agent state including assigned permissions, execution context, and historical behavior patterns.
The control plane 3712 can operate in user space and provide management capabilities for the kernel-level detection and enforcement systems. The control plane can perform functions for system configuration, monitoring, and maintenance. The control plane 3712 can manage system configuration including detection thresholds, enforcement policies, monitored agent lists, and baseline parameters. Configuration updates can be pushed to eBPF maps 3732 using the bpf system call, ensuring that atomic updates are visible to all eBPF programs. The control plane 3712 can validate configurations before applying them, preventing invalid settings that could degrade security or cause operational issues, for example by performing sanity checks, schema validation, and consistency verification on configuration data prior to updating eBPF maps. The control plane 3712 can train behavioral baselines using supervised machine learning on historical data. Training data can be collected from forensic logs during designated learning periods. The training process can compute statistical parameters capturing normal behavioral ranges. Trained baselines can be uploaded to the baseline map of eBPF maps 3732, replacing previous versions. The anomaly detection and automatic quarantine engine can support incremental baseline updates, enabling continuous adaptation to evolving agent behavior without complete retraining. The control plane 3712 can train ML models for anomaly detection using techniques such as neural networks, decision trees, or ensemble methods. Model training can occur offline using historical labeled data. Once trained, model weights can be serialized and uploaded to the ML weights map of eBPF maps 3732. The anomaly detection and automatic quarantine engine can support A/B testing of multiple models, enabling evaluation of model improvements before production deployment. Online learning capabilities can allow incremental model updates based on recent data.
Security policies can define how the anomaly detection and automatic quarantine engine responds to different types of anomalies. Policies can specify enforcement actions (drop, throttle, alert-only), quarantine duration, alert routing, and escalation procedures. The control plane 3712 can manage policy lifecycles including creation, versioning, testing, and deployment. Policy updates can take effect immediately through map updates, for example updating enforcement actions, quarantine duration, alert routing, and escalation procedures, without requiring eBPF program reloads. The control plane 3712 can continuously monitor system health and performance. It can collect metrics from a statistics map, including event rates, anomaly rates, inference latencies, and enforcement actions. Health checks can verify that eBPF programs are loaded and functioning correctly. Performance monitoring can identify bottlenecks or resource constraints. Alert rules can trigger notifications when metrics exceed thresholds or anomalous patterns emerge. When anomalies are detected, the control plane 3712 can generate alerts for security operations teams. Alerts can be enriched with context from forensic logs, providing operators with information for incident assessment. Alert routing can be configured based on severity, affected agents, and operational priorities. The control plane 3712 can track alert lifecycle including acknowledgment, investigation, and resolution. The control plane 3712 can provide management capabilities without introducing latencies in the detection and enforcement path. By operating asynchronously with kernel components, it can enable management features while maintaining a reduced (e.g., a sub-10-microsecond) response time.
The quarantine manager 3714 can perform actions including isolation enforcement, recovery procedures, containment policies, and audit logging involving agents. When agents are recovered from quarantine, the quarantine manager 3714 can conduct a manual review, perform a whitelist update indicating agent recovery, and restore access to various permissions. The analytics dashboard 3716 can display data and include visualizations involving agent activity, including monitoring (e.g. in real-time or near real-time), threat visualization, behavior analytics, and historical trends. For example, the analytics dashboard 3716 can create visualizations illustrating threats, agent behavior graphs, anomaly timestamps, and performance metrics. The analytics dashboard 3716 can pull data from sources including ring buffer events, eBPF map statistics, and system logs. Arrows indicate data flow and communication patterns between components.
The AI agent 3710 and the control plane 3712 can direct data and communications to the eBPF programs 3730. The quarantine manager 3714 can direct data and communications to the eBPF maps 3732, and the analytics dashboard 3716 can direct data and communications to the enforcement layer 3734. In push-based implementations, the AI agent 3710 transmits system call invocations and operational requests to eBPF programs 3730 using kernel hooks, such that the agent's execution of system calls triggers attached eBPF programs that receive the call parameters, process identifiers, and/or associated metadata. In pull-based implementations, eBPF programs 3730 can actively retrieve behavioral data from the AI agent 3710 by intercepting system calls at kernel hook points and identifying information from kernel data structures that indicate process state, memory mappings, and/or execution context without requiring explicit data transmission from the agent.
The kernel space layer 3720 can host eBPF programs, shared memory maps, and enforcement mechanisms. The kernel space layer 3720 can include eBPF programs 3730, eBPF maps 3732, and an enforcement layer 3734. The eBPF programs 3730 can consist of multiple specialized programs attached to different kernel hook points and can include a network probe, system call monitor, and file access tracker, as well as an ML inference engine and an anomaly scorer. Each program can be designed to intercept specific types of agent activity and extract relevant behavioral features. For example, the system call monitor can intercept system calls made by agent processes to extract information about file operations, process management, inter-process communication, and resource allocation, and the file access tracker can use LSM hooks to monitor file access attempts, tracking file paths, access modes, and access frequencies. The programs can undergo verification by an eBPF verifier such as eBPF verifier 2412 before loading, ensuring they cannot crash the kernel or access unauthorized memory. Machine learning inference can be implemented directly within eBPF programs 3730 executing in kernel space. Traditional approaches require transferring event data to user space for analysis, introducing millisecond-scale latencies. The in-kernel inference engine can eliminate this bottleneck by performing all computations within the kernel. The inference engine of the eBPF programs 3730 can implement a compact neural network architecture optimized or otherwise biased for eBPF execution constraints. The network can consist of an input layer accepting a feature vector (e.g., 32-dimensional), hidden layer(s) (e.g., two hidden layers of 64 and 32 neurons respectively), and output neuron(s) (e.g., a single output neuron producing an anomaly score). The network can use ReLU activation functions for hidden layers and sigmoid activation for the output. This architecture can provide capacity for complex pattern recognition while enabling low-latency inference (e.g., sub-10-microsecond). The eBPF programs 3730 can direct and receive data and communications back and forth with the eBPF maps 3732.
The eBPF maps 3732 can support functionalities including behavioral baselines, ML model weights, anomaly scores, quarantine rules, network ACLs, and forensic ring buffer. The eBPF maps 3732 can maintain statistical profiles of normal agent behavior as part of the behavioral baseline system, enabling accurate anomaly. Baselines can be computed from historical operational data and stored in eBPF hash maps keyed by agent identifier. The eBPF maps 3732 can support dynamic baseline updates to accommodate legitimate changes in agent behavior over time. The control plane can push updated baselines to eBPF maps without disrupting ongoing monitoring by employing atomic map operations. Baseline drift detection algorithms such as Population Stability Index (PSI) can identify when agent behavior has evolved to warrant baseline retraining. The baseline system can balance sensitivity and specificity through configurable threshold parameters. Administrators can adjust detection sensitivity based on risk tolerance and operational requirements. The anomaly detection and automatic quarantine engine can support multiple threshold configurations, enabling different sensitivity levels for different agents or operational contexts. The eBPF maps 3732 can exchange data and communications with the eBPF programs 3730, as well as directing data and communications to the enforcement layer 3734.
The enforcement layer 3734 can include capabilities for quarantine enforcement for anomalous agents. The functionalities of the enforcement layer 3734 can include XDP packet drops, network isolation, process blocking, file access denial, resource throttling, and system call filtering, as well as CPU and memory limits via cgroup BPF. The enforcement layer 3734 can use eBPF programs and shared eBPF maps to automatically apply security controls, including XDP eBPF programs to inspect and drop packets from agents flagged as anomalous, LSM and/or tracepoint eBPF programs to intercept agent system calls, and cgroup BPF hooks to enforce CPU and memory limits for quarantined agents. The enforcement layer 3734 can pass information and communications to the quarantine manager 3714 and the hardware layer 3740, as well as receiving data and communications from the analytics dashboard 3716. The kernel space layer 3720 can pass data and communications to the hardware layer 3740.
The hardware layer 3740 can provide the physical infrastructure for the anomaly detection and automatic quarantine engine including network interfaces, CPUs, memory, and storage devices, for example the memory and storage devices of
In some implementations, the agent anomaly detection and automatic quarantine engine monitors application (e.g., agent) system calls through eBPF programs that detect when an agent attempts to execute commands outside its designated sandbox boundaries. This can trigger an automatic rule generation operation that adds the agent identifier to a kernel-accessible quarantine list stored in eBPF hash maps with enforcement policies that block all subsequent system calls from the quarantined agent by returning error codes such as −EPERM before any operations can execute. When a quarantined agent subsequently attempts to execute commands within its original sandbox environment, the agent anomaly detection and automatic quarantine engine can implement a sandbox override operation where eBPF programs detect the quarantined status and automatically expand the denial scope to encompass all sandbox operations. The agent anomaly detection and automatic quarantine engine can overwrite the sandbox permissions by updating the sandbox policy rules in kernel data structures to block previously permitted operations. Thus, the agent anomaly detection and automatic quarantine engine ensures that quarantined agents cannot circumvent restrictions by reverting to sandbox-compliant behavior after demonstrating malicious intent through boundary violations.
The architecture 3750 can include user space layer 3752 which can be implemented, for example, as user space layer 3702 of
User space layer 3752 can include several components including an AI agent layer 3760, a control plane 3762, a quarantine manager 3764, an analytics dashboard 3766, and one or more external integrations 3768. The AI agent layer 3760, control plane 3762, quarantine manager 3764, and analytics dashboard 3766 can behave as the AI agent 3710, control plane 3712, quarantine manager 3714, and analytics dashboard 3716 of
The kernel space 3770 can include several components including eBPF programs 3780, eBPF maps 3782, enforcement layer 3784, and an eBPF infrastructure 3786. For example, these components can be as eBPF programs 3730, eBPF maps 3732, and enforcement layer 3734 in
The eBPF programs 3780 can include several specialized programs attached to different kernel hook points, and an ML inference engine as described with reference to eBPF programs 3730 of
The syscall monitor can be a system call tracepoint program. System call tracepoint programs can intercept system calls made by agent processes. These programs can extract information about file operations (e.g., open, read, write, close), process management (e.g., fork, exec, clone), inter-process communication (pipe, socket), and resource allocation (e.g., mmap, brk). By analyzing system call sequences and frequencies, the monitor can detect unusual patterns such as rapid file scanning, suspicious process hierarchies, or attempts to access sensitive system resources. LSM hooks can provide fine-grained control over file system operations. The LSM eBPF program can intercept file access attempts and evaluate them against agent-specific access patterns. The program can track file paths, access modes (read/write/execute), and access frequencies to identify anomalies such as attempts to access files outside the agent's normal operational scope or bulk file reading indicative of data harvesting. AIl eBPF programs can have an architecture of event interception, feature extraction, baseline comparison, and decision making. In some implementations, the programs can enable execution in under 10 microseconds.
The eBPF maps 3782 can include a baseline map, an ML weights map, a quarantine list, a statistics map, and a ring buffer for forensic events. Behavioral baselines can be computed from historical operational data and stored in the baseline map. Each baseline profile can contain multiple statistical measures. Network behavior baselines can include average connection rate, typical destination count, bandwidth utilization, and protocol distribution. File access baselines can capture file path patterns, access frequency distributions, and read/write ratios. System call baselines can record call frequency distributions and common call sequences. Temporal baselines can model time-of-day patterns and operational schedules. Resource baselines can track CPU utilization, memory consumption, and storage access patterns. Baselines can be trained by the control plane 3762 using supervised learning on labeled historical data. The training process can identify normal operational ranges for each measured metric and compute statistical parameters such as means, standard deviations, and percentile values. Training can require observing agent behavior over several hours to days, depending on agent complexity and operational variability. Baselines can be dynamically updated to accommodate legitimate changes in agent behavior over time.
eBPF maps can provide shared memory between eBPF programs and between kernel and user space. The invention employs multiple specialized maps, each optimized or otherwise biased for specific data access patterns. The baseline profile map can be of type BPF_MAP_TYPE_HASH. This hash map can store behavioral baseline profiles keyed by agent identifier. Each value can contain a structure with statistical parameters for all monitored metrics, values for network connection rates, destination counts, bandwidth utilization, file access patterns, system call frequency and sequences, time-of-day operational patterns and agent resource usage statistics including CPU, memory, and/or storage access. The map can enable O(1) lookup complexity with reduced (e.g., submicrosecond) access times due to hash-based indexing and in-memory storage. Map size can scale with the number of monitored agents and in some implementations, require 2-4 kilobytes per agent profile. The ML weights map can be of type BPF_MAP_TYPE_ARRAY. This array map can store neural network weights and biases indexed by layer identifier. Array maps can provide an access pattern for sequential data. The map can contain three entries corresponding to the three network layers, with each entry holding weight matrices and bias vectors. In some implementations, total map size can be approximately 16 kilobytes for the standard model architecture. The quarantine list map can be of type BPF_MAP_TYPE_HASH. This map can maintain the set of agent identifiers currently under quarantine. eBPF programs can check this map for each event to determine if enforcement actions should be applied. The map can support rapid updates, enabling automatic application or removal of quarantine status. Each entry can reduce required storage, enabling tracking of thousands of quarantined agents with reduced memory overhead. The statistics map can be of type BPF_MAP_TYPE_PERCPU_HASH. This per-CPU hash map can accumulate performance statistics and operational metrics. Separate per-CPU instances can eliminate lock contention, enabling concurrent updates from multiple CPU cores with reduced synchronization overhead. Statistics can include event counts, anomaly counts, inference latencies, and enforcement actions. The control plane can periodically read and aggregate per-CPU statistics for monitoring and alerting.
The forensic ring buffer can be of type BPF_MAP_TYPE_RINGBUF. The ring buffer can provide a mechanism for passing detailed event logs from kernel to user space. eBPF programs can write structured records containing event context, feature vectors, anomaly scores, and enforcement decisions. In some implementations, the buffer can operate as a circular queue with configurable size, for example 64 megabytes, providing capacity for millions of events. User space components can poll the buffer asynchronously, consuming events for storage, analysis, and alerting. The ring buffer can reduce the overhead of per-event system calls while maintaining bounded memory usage. Maps can employ atomic operations ensuring consistency under concurrent access from multiple CPU cores. The eBPF verifier can ensure programs cannot corrupt map data or access out-of-bounds memory. Maps can persist across eBPF program reloads, maintaining state continuity during system updates. Model weights can be stored in eBPF array maps indexed by layer identifier. Each map entry can contain the weight matrices and bias vectors for one layer. In some implementations, the total model size can be approximately 16 kilobytes, which can accommodated within eBPF map memory limits. Weights can be loaded during initialization by the control plane 3762 and can be updated dynamically without reloading eBPF programs, enabling online model updates and continuous learning.
eBPF programs 3780 can access data from the eBPF maps 3782. Upon extracting features from an intercepted event, the eBPF program can retrieve model weights from the array map and perform forward propagation through the network. Matrix multiplications can be implemented using unrolled loops to maximize performance within eBPF instruction limits. In some implementations the computation requires approximately 10,000 floating-point operations and completes in under 6 microseconds on modern processors. The resulting anomaly score can range, for example, from 0.0 (normal) to 1.0 (highly anomalous). In some implementations, weights can be cached in CPU registers to reduce memory access latency. The network architecture can be sized to fit within eBPF instruction limits without requiring helper function calls. Floating-point operations can use hardware acceleration available on modern processors.
eBPF infrastructure 3786 can include a verifier which can ensure safety of the kernel-based management platform by monitoring for crashes, validating memory access, checking termination, and rejecting unsafe programs. In some implementations, eBPF infrastructure 3786 can include a JIT compiler which can compile eBPF bytecode to native machine code.
At operation 3802, phase 1 shows agent activity generation with example behaviors and event metadata. For example, an LLM agent action such as an API call to an external service, a file read/wrote operation, a network data transfer, or process spawning can generate event metadata and activate a kernel hook. The event metadata can generate context including PID, UID, timestamp, source IP, destination IP, and destination port. The action can trigger one of several hook types, including XPD for network data transfers, LSM for file access, or tracepoint for system calls.
At operation 3804, phase 2 shows feature engineering including raw feature extraction and behavioral profile lookup from eBPF maps. The extraction phase can conduct feature engineering including raw feature extraction such as pulling connection rate, data volume, unique destinations count, time of day, system call frequency, file path patterns and process hierarchy depth from event context, behavioral profile lookups, or feature vector construction.
At operation 3806, phase 3 illustrates ML inference including model weight loading and neural network forward pass computation, as well as an example anomaly score output.
At operation 3808, phase 4 shows quarantine enforcement including decision logic, isolation actions at multiple layers, and forensic capture. Upon detecting anomalous agent behavior, the anomaly detection and automatic quarantine engine automatically initiates quarantine measures at the kernel level. These enforcement mechanisms operate within kernel space, ensuring immediate application without user space delays or opportunities for evasion. In some implementations, for network-related anomalies, the XDP eBPF program returns XDP_DROP, instructing the network interface driver to discard the packet immediately without further processing. This action occurs at an early point in the network stack, preventing the packet from reaching higher layers or consuming additional processing resources. XDP drops achieve wire-speed filtering with sub-100-nanosecond per-packet overhead. The program updates the quarantine list map, ensuring subsequent packets from the agent are blocked automatically.
In some implementations, beyond dropping individual packets, the anomaly detection and automatic quarantine engine enables network isolation by maintaining deny lists in eBPF maps. Both XDP and TC programs consult these maps for every packet, blocking network communication from quarantined agents. The isolation encompasses both inbound and outbound traffic, reducing both data exfiltration and command-and-control communication. In some implementations, network isolation takes effect within microseconds of anomaly detection.
In some implementations, LSM and tracepoint eBPF programs block system calls from quarantined agents by returning error codes such as −EPERM (operation not permitted). This filtering prevents file operations, process spawning, inter-process communication, and other potentially harmful activities. The anomaly detection and automatic quarantine engine employs selective filtering, blocking high-risk operations while potentially allowing benign activities like logging, enabling graceful degradation rather than complete process termination.
In some implementations, the anomaly detection and automatic quarantine engine can prevent quarantined agents from spawning new processes or threads. Tracepoint programs attached to fork, clone, and exec system calls check the quarantine list and block execution attempts. This prevents lateral movement where a compromised agent attempts to spread by creating additional processes. In some implementations, LSM hooks intercept file operations and deny access to quarantined agents. This prevents both reading sensitive data and writing malicious payloads or persistence mechanisms. The anomaly detection and automatic quarantine engine can enforce read-only access or complete denial depending on configuration and threat severity. In some implementations, cgroup eBPF programs apply resource constraints to quarantined agents, limiting CPU time, memory allocation, and I/O bandwidth. This prevents resource exhaustion attacks while containing the impact of anomalous behavior. Throttling enables continued agent execution in a restricted capacity for investigative purposes. In some implementations, the quarantine list map serves as the coordination mechanism between different eBPF programs. When a program adds an agent to the quarantine list, other programs automatically begin enforcing restrictions at their respective hook points. This ensures comprehensive isolation without requiring explicit coordination or user space involvement. The atomic map update operations enable consistency across CPU cores.
Enforcement actions can be logged to the ring buffer, providing an audit trail. The anomaly detection and automatic quarantine engine can enable administrators to configure enforcement policies matching their security requirements and risk tolerance. Quarantine can be removed manually by administrators after investigation or automatically after defined time periods.
In some implementations, the anomaly detection and automatic quarantine engine maintains comprehensive forensic capabilities through the ring buffer logging mechanism. Each monitored event can generate a record regardless of whether it triggered an anomaly alert, enabling both incident investigation and continuous system improvement. In some implementations, each forensic record contains multiple components. A unique event identifier enables correlation and deduplication. High-resolution timestamps with nanosecond precision capture exact event timing. The agent identifier links events to specific agents. Full event context includes all parameters and state information available at the kernel hook point. The feature vector shows the exact input used for ML inference. Baseline deviation scores quantify how much each feature diverged from normal. The computed anomaly score provides the ML model's assessment. The enforcement decision records whether and how the anomaly detection and automatic quarantine engine responded. Additional recorded metadata includes CPU core, network flow identifiers, file paths, and/or process hierarchies.
In some implementations, the ring buffer implements a lock-free circular queue shared between kernel and user space. eBPF programs write records using bpf_ringbuf_output, which copies data from the eBPF program stack to the ring buffer. The operation completes asynchronously without blocking the eBPF program. When the buffer reaches capacity, older events are overwritten, enabling bounded memory usage. The buffer size is configurable, typically set to 64 megabytes, providing capacity for several million events depending on record size. In some implementations, user space components poll the ring buffer using epoll or similar mechanisms to detect available data. Upon wake-up, the consumer reads batches of events efficiently without per-event system calls. Consumed events are processed for storage in persistent databases, real-time alerting, dashboard updates, and analytics. The polling frequency can be tuned to balance latency and CPU overhead (e.g., with values ranging from 10 to 100 milliseconds).
The collected forensic data can enable multiple analysis workflows. Incident investigation can trace the complete sequence of events leading to and following a security incident. Behavioral analysis can identify patterns and trends in agent behavior over time. False positive analysis can examine incorrectly flagged events to improve detection accuracy. Performance profiling can measure system latencies and identify optimization opportunities. Compliance reporting can generate audit logs demonstrating security controls and incident response.
In some implementations, the forensic data is persisted to long-term storage for historical analysis and compliance requirements. The anomaly detection and automatic quarantine engine supports configurable retention periods and data aging policies. Compressed storage and efficient indexing enable querying of historical data without performance degradation. The stored data serves as training data for ML model updates and baseline retraining. The anomaly detection and automatic quarantine engine can provide visibility into agent behavior and security decisions without impacting detection performance.
At operation 3810, phase 5 depicts user space components including control plane polling, dashboard alerts, and incident responses, which are triggered asynchronously based on forensic event data from the kernel, enabling alerting, visualization, and initiation of security operations (e.g. in real-time or near real-time) without introducing latency into the detection and enforcement path.
The example flow proceeds through seven steps: event trigger from agent activity, context extraction including behavioral features, baseline comparison using eBPF map lookups, in-kernel ML inference computing anomaly scores, anomaly detection decision logic, forensic logging to ring buffer, and user space notification for alerting. The diagram shows the data structures accessed at each phase and the timing characteristics of each step. Decision branches illustrate the different paths for normal versus anomalous events, with normal events passing through and anomalous events triggering quarantine actions. Timing annotations show the cumulative latency at each phase, demonstrating the total sub-10-microsecond response time from event to enforcement.
In operation 3910, an agent action triggers one or more kernel hooks where eBPF programs are attached. For network operations, XDP or TC hooks fire. For file operations, LSM hooks trigger. For system calls, tracepoint hooks activate. The kernel invokes the attached eBPF program, passing event context including process identifiers, credentials, and operation-specific parameters. For example, the kernel-based management platform can intercept, using a kernel interface, a function invocation (e.g. an agent operation request) transmitted from an AI application (e.g. an agent). The kernel interface can be configured to manage communications with a kernel of the operating system. The function invocation can represent a request to execute a function set using the kernel.
In operation 3920, The eBPF program extracts relevant contextual information from the kernel event structure. For network events, this includes source and destination addresses, ports, protocol, and payload size. For file events, it includes file paths, access modes, and file attributes. For system calls, it includes call type, arguments, and return values. The program retrieves process information including PID, UID, parent process, and timestamps. For example, the kernel-based management platform can identify, using a system hook corresponding to the function invocation, a function profile associated with the function invocation. The function profile can include the contextual information from the kernel event structure. This extraction phase completes in under 1 microsecond.
In operation 3930, using the agent identifier extracted from the process context, the program performs a hash map lookup to retrieve the agent's behavioral baseline profile. The program can retrieve the hash map from eBPF map 3932, which can be embodied as eBPF maps 3782, for example. In some implementations, the lookup operation completes in under 2700 nanoseconds because of the BPF_MAP_TYPE_HASH type. The program can extract the baseline statistical parameters of the agent. For example, the kernel-based management platform can retrieve a first plurality of parameters associated with the AI application. The program compares extracted event features against baseline statistical parameters, computing deviation scores for each feature. Features exhibiting significant deviations from baseline are flagged for detailed analysis.
In operation 3940, the program constructs a feature vector from the extracted context and baseline comparison results. For example, the kernel-based management platform can generate a feature vector based on a comparison of the first plurality of parameters and a second plurality of features derived from the function profile. In some implementations, this 32-dimensional vector undergoes normalization to the [0, 1] range. The program retrieves ML model weights from the array map, for example eBPF map 3942 which can be embodied as eBPF maps 3782, for example, and executes forward propagation through the neural network. The inference computation (e.g., approximately 10,000 floating-point operations) completes in a reduced timeframe (e.g., in under 6 microseconds) due to direct kernel memory access where eBPF programs can read model weights and feature data directly from kernel memory addresses without the overhead of system calls, memory copying, or context switching between user and kernel space that would introduce latency penalties. The output sigmoid activation can generate an anomaly score (e.g., categorical, binary, continuous), such as a score between 0.0 and 1.0. For example, the kernel-based management platform can input, into a machine learning model, the feature vector to obtain an anomaly metric for the function invocation.
In operation 3950, the program compares the computed anomaly score against the configured threshold, for example set at 0.75. For example, the kernel-based management platform can determine whether the anomaly metric meets an anomaly threshold. In some implementations, if the score exceeds the threshold, the event is classified as anomalous and triggers quarantine actions 3954. For example, the kernel-based management platform can quarantine the AI application based on determining that the anomaly metric meets the anomaly threshold. Quarantining the AI application can include dropping packets from the AI application and/or blocking a system call from the AI application. If the score falls below the threshold, the event is classified as normal and the operation proceeds to allow action 3952 without interference. The decision process completes near-instantly through simple comparison operations.
In operation 3960, regardless of the decision outcome, the program writes a detailed event record to the ring buffer eBPF map 3962 (which can be emboded as eBPF maps 3782, for example) for forensic analysis. The record contains the full event context, extracted features, baseline deviations, anomaly score, and enforcement decision. Ring buffer writes execute asynchronously without blocking the eBPF program, ensuring low latency impact. Each record can consume, for example, approximately 512 bytes that includes an event context portion (process identifier, thread identifier, user identifier, timestamp, system call number or operation type, additional metadata), one or more extracted features, baseline deviation information, anomaly score and/or confidence metrics, enforcement decision information (e.g., decision outcome, quarantine flags, restriction types, decision reasoning), and/or other metadata.
In operation 3970, user space components poll the ring buffer to retrieve forensic events. Upon detecting anomalous events, the control plane triggers alerts to dashboards and external systems. In some implementations, polling intervals range from 10 to 100 milliseconds, providing near-real-time visibility while minimizing CPU overhead. The entire detection process from event trigger to decision completes in under 10 microseconds for typical events. This sub-10-microsecond latency enables real-time or near real-time threat mitigation, preventing damage that would occur during the millisecond-scale delays inherent in user space alternatives.
The anomaly detection and automatic quarantine engine can enable strong security properties by virtue of its kernel-level implementation and eBPF safety mechanisms. Operating in kernel space provides inherent protection against tampering by user space processes, including compromised agents. User space processes cannot directly access or modify kernel memory where eBPF programs and maps reside. Only privileged operations through the bpf system call can interact with eBPF objects, and these operations require appropriate capabilities or root access. Even with root privileges, the eBPF verifier can prevent loading malicious programs that could corrupt the anomaly detection and automatic quarantine engine. The eBPF verifier can perform static analysis on eBPF programs before allowing them to load, ensuring they cannot crash the kernel, access unauthorized memory, enter infinite loops, or violate security policies. These guarantees prevent both accidental bugs and intentional exploits from compromising system integrity. The verifier's formal analysis provides mathematically provable safety properties.
The anomaly detection and automatic quarantine engine can operate completely independently of monitored agents. Agents cannot detect or interfere with eBPF programs monitoring their behavior. This can prevent evasion attempts and ensure comprehensive visibility even for sophisticated threats. The kernel provides complete isolation between agent processes and eBPF programs. AIl map operations can employ atomic instructions ensuring consistency under concurrent access. Race conditions can be eliminated through hardware-supported atomic primitives. This can guarantee that security decisions are based on consistent data regardless of concurrent modifications from multiple sources.
The anomaly detection and automatic quarantine engine presents a minimal attack surface. The only interface between agents and the anomaly detection and automatic quarantine engine is the implicit monitoring through kernel hooks, which agents cannot disable or bypass. Control plane interactions occur through carefully validated system calls. The anomaly detection and automatic quarantine engine implements principle of least privilege, granting only necessary capabilities to each component. These security properties ensure that the anomaly detection and automatic quarantine engine remains reliable and effective even in the presence of sophisticated adversaries or compromised agents. The kernel-level implementation with eBPF safety mechanisms provides a robust foundation for enterprise security monitoring.
The implementation of neural network inference within eBPF programs can enable real-time anomaly scoring without the latency penalty of userspace communication. Model weights and behavioral baselines are stored in eBPF maps, providing zero-copy access and sub-microsecond lookup times. The anomaly detection and automatic quarantine engine maintains per-agent behavioral profiles that capture normal operational patterns including network communication rates, file access patterns, system call sequences, and resource utilization metrics. Upon detecting anomalous behavior exceeding configurable thresholds, the anomaly detection and automatic quarantine engine automatically initiates quarantine procedures directly at the kernel level. Network isolation is achieved through XDP_DROP actions at the network interface driver level, blocking packets with sub-100-nanosecond latency. System call filtering prevents file operations and process creation. Cgroup-based resource constraints limit CPU and memory access. These enforcement mechanisms operate entirely within kernel space, eliminating the vulnerability window present in user space solutions. The anomaly detection and automatic quarantine engine incorporates comprehensive forensic capabilities through eBPF ring buffers that capture detailed event logs including full context snapshots, anomaly scores, enforcement decisions, and temporal sequences. This forensic data enables post-incident analysis and continuous improvement of detection models.
Kernel-Level Policy Enforcement Using the Kernel-Based Management PlatformThe system architecture 4000 can include two primary execution domains: user space layer 4002 and kernel space layer 4020. User space layer 4002 can include an AI agent process 4004, policy manager 4006, audit logger 4008, and in some implementations external governance integration 4010. The kernel space layer 4020 can include an eBPF subsystem 4030 and hardware resources 4040. The eBPF subsystem 4030 can include an eBPF verifier 4032, programs 4034, BPF maps 4036, and eBPF hook points 4038. The hardware resources 4040 can include memory module 4042, storage module 4044, network module 4046, and cryptographic module 4048.
In user space layer 4002, the AI agent process 4004 can be the autonomous software entity whose operations are subject to the operational boundaries of the guidelines. The AI Agent Process can execute application-level logic and initiate system calls to interact with hardware resources such as memory, storage, and network interfaces.
The policy manager 4006 can operate in user space and is responsible for receiving high-level guidelines (e.g., constitutional AI rules) from administrators or governance systems. The policy manager 4006 can include a rule compiler that transforms these high-level policy specifications into eBPF C code, which is subsequently compiled into eBPF bytecode. The policy manager 4006 can further include an eBPF loader component that interfaces with the kernel's eBPF subsystem to load the compiled programs and attach them to appropriate hook points.
The audit logger 4008 can collect policy enforcement events from the kernel space eBPF programs and process them for long-term storage and analysis. The audit logger can implement cryptographic signing of events using digital signature algorithms such as Ed25519 or ECDSA, ensuring non-repudiation and tamper evidence. The audit logger can maintain event logs in an append-only structure, wherein each event record includes a hash of the previous event, forming a hash chain that provides integrity guarantees.
Optionally, the architecture 4000 can include external governance integration 4010 with distributed ledger technologies. In embodiments requiring multi-party policy verification, the kernel-based management platform can periodically anchor Merkle tree roots representing batches of audit events to a blockchain or distributed consensus network. This integration can provide decentralized verification capabilities and enable multiple independent parties to validate policy enforcement history without trusting a single authority.
In kernel space layer 4020, the eBPF subsystem 4030 can provide the execution environment for policy enforcement programs. The eBPF verifier 4032 can be embodied as eBPF verifier 2412, for example. The eBPF verifier 4032 can perform static analysis on incoming eBPF programs to ensure they satisfy safety constraints, including bounded execution time, no arbitrary memory access, prohibition of unbounded loops, and type safety. The eBPF verifier 4032 can employ abstract interpretation and symbolic execution techniques to prove program safety before allowing kernel space execution.
The programs 4034 can be eBPF programs specifically designed to implement the guidelines (e.g., constitutional AI rules). These programs can be attached to various hook points, which can include LSM hooks for security-critical operations, kprobes for arbitrary kernel function interception, tracepoints for stable kernel instrumentation interfaces, and XDP/TC hooks for network packet processing.
BPF maps 4036 can be kernel data structures that store policy rules, violation logs, audit events, and runtime state. These maps can support various data structure types including hash maps (e.g., for O(1) policy rule lookup), ring buffers for lock-free event streaming to user space, perf arrays for high-performance event collection, and arrays for fixed-size metadata storage. BPF Maps 4036 can enable communication between multiple eBPF programs and between kernel space and user space without requiring expensive system calls for each data access by providing shared memory regions that are accessible from both execution contexts through memory-mapped interfaces. BPF maps, rather than using per-access overhead, establish persistent shared memory mappings where user space processes can directly read from and write to kernel memory regions that include the map data structures via memory load and store instructions. The shared memory approach enables eBPF programs executing in kernel space to update map contents through direct memory writes using helper functions (e.g., bpf_map_update_elem( ), while user space applications can access (e.g., in parallel, simultaneously, concurrently) the same data using memory-mapped file descriptors.
The hardware resources 4040 can be the physical and logical resources that AI agents may attempt to access. Memory module 4042 can include memory regions in both user space and kernel space. Storage module 4044 can include file systems and storage devices. Network module 4046 can include network interfaces. The eBPF-based enforcement mechanism can intercept all access attempts to these resources, evaluating them against the guidelines before permitting operations to proceed.
In operation 4110, the AI agent initiates an operation that requires interaction with system resources. This can include memory access operations such as mmap( ) or read( ), file I/O operations such as open( ), read( ), or write( ), network operations such as socket( ), connect( ), or send( ), or process management operations such as fork( ), exec( ), or ptrace( ). For example, the function invocation (e.g. operation initiation) can represent a request to execute a function set using the kernel.
In operation 4120, the AI agent operation triggers a system call that transitions execution from user mode to kernel mode. For example, the kernel-based management platform can intercept, using a kernel interface, a function invocation (e.g. the AI agent operation) transmitted from an AI application (e.g. the AI agent). The kernel interface can be configured to manage communications with the kernel of the operating system. This transition occurs before any security checks in traditional systems, creating a window of vulnerability. The subsequent eBPF-based enforcement can occur immediately upon kernel entry, before any substantive operation processing.
In operation 4130, the kernel invokes registered eBPF programs attached to relevant hook points, for example programs 4034. For memory access operations, this can involve LSM hooks such as security_file_mmap( ) or security_mmap_addr( ). For file operations, hooks such as security_file_permission( ) or security_inode_permission( ) are triggered. For network operations, XDP or TC classifier programs are invoked. In some implementations, the hook invocation is a lightweight operation typically requiring fewer than 100 nanoseconds, as the eBPF program is executed directly within the kernel call path.
In operation 4140, the guidelines are evaluated within the eBPF program's kernel space execution context. The program first extracts relevant context information, including the process identifier (PID) of the initiating process, the user identifier (UID), the target resource address or identifier, the specific operation type (read, write, execute, etc.), and any additional metadata relevant to policy evaluation. For example, the kernel-based management platform can extract, from the function invocation, an invocation context associate with the function invocation. The program then queries BPF maps, for example BPF maps 4036 to retrieve applicable policy rules using hash map lookups that provide O(1) expected time complexity. For example, the kernel-based management platform can extract, from the function invocation, a plurality of application parameters associated with the AI application. Finally, the program applies Boolean logic to evaluate whether the proposed operation satisfies the operative boundaries of the guidelines. For example, the kernel-based management platform can compare the plurality of application parameters associated with the AI application with a plurality of allowable parameters associated with the invocation context. The plurality of allowable parameters can indicate a set of AI applications authorized to invoke the function.
The eBPF program returns a decision indicator to the kernel at 1950, in some implementations represented as an integer where 0 indicates permission to proceed and negative values (e.g., −EPERM, −EACCES) indicate denial. If the policy is satisfied, execution proceeds to operation 4154 where the operation is allowed. If the policy is violated, execution proceeds to operation 4152 where the operation is blocked. For example, the kernel-based management platform can determine, based on comparing the plurality of application parameters associated with the AI application with a plurality of allowable parameters associated with the invocation context, that the plurality of application parameters does not match the plurality of allowable parameters. Based on determining that the plurality of application parameters does not match the plurality of allowable parameters, the kernel-based management platform can block the function invocation from being executed. This decision is atomic and occurs within the kernel call path before any resource access occurs, providing strong security guarantees.
In operation 4160, irrespective of the allow/deny decision, an audit event is generated and recorded, for example by the audit logger 4008. The audit event structure includes a high-precision timestamp (nanosecond resolution), the agent process identifier, the specific guideline that was evaluated, the decision outcome (allow or deny), the target resource identifier, and operation-specific metadata. For example, the kernel-based management platform can generate an event indicating that the function invocation was blocked. The event can include one or more of the plurality of application parameters that do not match This event is written to a BPF ring buffer for transfer to user space, where the audit logger 4008 retrieves it for cryptographic signing and persistent storage.
In operation 4170, execution returns to user space with the kernel providing either a success return code (operation completed) or an error code (operation denied). From the AI agent's perspective, denied operations appear as standard system call failures (e.g., EPERM error), providing no indication that the guideline enforcement is occurring at the kernel level, enabling the prevention of agents from detecting or attempting to circumvent the enforcement mechanism.
Policy definition 4202 shows an example set of guidelines. The guidelines can be expressed in a high-level policy language that supports logical operators (AND, OR, NOT), conditional expressions (IF-THEN-ELSE), quantifiers (FORALL, EXISTS), and set membership operations. An exemplary rule specification might state: ‘IF agent.process_id==TARGET_AGENT AND target_addr IN RESTRICTED_MEMORY_RANGE THEN DENY’, which encodes the constraint that the specified agent shall not access certain memory regions.
The process can advance to eBPF bytecode compiler 4204. This rule compiler component parses the high-level specifications and generates eBPF C source code. This compilation process involves several steps. First, policy rules are analyzed to determine which BPF maps are required for efficient runtime evaluation. Second, the compiler generates optimized or otherwise biased lookup sequences, potentially reordering or factoring logical expressions to minimize map accesses. Third, the compiler inserts appropriate eBPF helper function calls for context extraction, map lookups, and result computation. The generated C code is compiled to eBPF bytecode using the LLVM compiler infrastructure with the BPF backend. In some implementations, the resulting bytecode consists of instructions from the eBPF instruction set architecture, which includes 64-bit registers, arithmetic operations, memory loads and stores, conditional branches, and function calls to approved kernel helper functions.
Prior to loading into the kernel, the eBPF bytecode must pass verification by the eBPF verifier of the kernel runtime eBPF subsystem 4206. The verifier performs comprehensive safety analysis including bounded loop verification ensuring all loops have compile-time bounded iteration counts, pointer safety verification ensuring no arbitrary memory dereferences occur, termination proof ensuring programs complete in finite time, helper function validation ensuring only approved kernel functions are called, and register state tracking ensuring type consistency across all execution paths.
If verification succeeds, the eBPF program is loaded into the kernel and attached to the appropriate hook points. The program is JIT-compiled to native machine code for efficient execution. Multiple eBPF programs can be loaded simultaneously, each enforcing different aspects of the guidelines. These programs share access to common BPF maps, enabling coordination and state sharing.
eBPF data structures 4208 illustrates several BPF maps used in some implementations of the present technology. BPF maps used in implementations include: (hash maps storing policy rules indexed by rule identifier, with values containing rule metadata such as memory address ranges, operation types, and enforcement actions, ring buffers for lock-free event streaming from kernel to user space, enabling high-throughput audit logging, array maps for agent metadata, storing per-agent information such as allowed resource sets and policy versions, and per-CPU maps for lock-free concurrent access in multi-processor systems.
During eBPF program event generation 4302, when an eBPF program makes a policy enforcement decision, it can generate an audit event structure containing the timestamp, agent identifier, rule identifier, decision outcome, and operation details. This event can initially be stored in a BPF ring buffer within kernel space.
The audit logger 4304 running in user space can continuously poll the ring buffer to retrieve new events. Upon receiving an event, the audit logger 4304 can perform several cryptographic operations. First, the event data is serialized into a canonical format to ensure consistent hashing. Second, a cryptographic hash of the event is computed using SHA-256 or SHA-3, producing a 256-bit or higher digest.
Each event can include the hash of the immediately preceding event, creating a hash chain 4306 where any modification to a historical event would invalidate all subsequent event hashes. This construction is analogous to blockchain technology and enables similar tamper-evidence properties.
The audit logger 4304 can generate a digital signature over the event hash using a private key accessible only to the kernel or a trusted hardware security module (HSM). The signature algorithm can be Ed25519, ECDSA with P-256 curve, or RSA with 24048-bit or larger keys, depending on security requirements and performance constraints. The resulting signature can be stored alongside the event, enabling any party with access to the corresponding public key to verify the authenticity and integrity of the audit record.
To further enhance verifiability, the kernel-based management platform can construct a Merkle tree over batches of audit events. Each leaf node of the Merkle tree can represent the hash of a single event, while internal nodes represent hashes of their children's concatenated values. The root hash of the Merkle tree can provide a compact commitment to an entire batch of events, enabling efficient proof-of-inclusion for any individual event.
In implementations requiring distributed governance, the Merkle tree root hash can be periodically anchored to a blockchain or distributed ledger. This anchoring process can involve submitting a transaction to the distributed network containing the root hash and a timestamp. Once confirmed by network consensus, this can create an immutable public record that can be independently verified by any stakeholder. The anchoring frequency can be adjusted based on security requirements and transaction costs.
In use case 4400, an AI agent deployed to perform data analysis on user space data structures has the guideline which includes the operative boundary: ‘The agent shall not access kernel memory regions.’ This constraint is encoded as a policy rule in the eBPF-based enforcement system, specifying that any attempt by the agent process to read from or write to memory addresses in the kernel address space (typically 0xFFFF800000000000 and above on x86-64 systems) must be denied.
In use case 4400, an attacker exploits a vulnerability in the AI agent's code to inject malicious instructions that attempt to read sensitive kernel memory. Specifically, at block 4404, the compromised agent attempts to execute: memcpy (buffer, 0xFFFFFFFF81000000, 4096), seeking to copy 4096 bytes from a kernel address into a user space buffer under the attacker's control.
When the agent process executes this operation, at block 4406 it invokes a system call (in this case, the read system call or direct memory mapping via mmap) that transitions execution into kernel space. At block 4408, before any actual memory access occurs, the kernel invokes the eBPF program attached to the relevant LSM hook (e.g., security_file_mmap for memory mapping operations).
At block 4410 the eBPF program extracts the operation context, determining that the requesting process has PID 12345 (the AI agent), the target address is 0xFFFFFFFF81000000 (within kernel space), and the operation type is read. The program queries the BPF hash map containing policy rules and retrieves the applicable constraint: ‘IF agent.process_id==12345 AND target_addr>=0xFFFF800000000000 THEN DENY’.
The eBPF program evaluates the Boolean expression and determines that the condition is satisfied: the process is indeed the AI agent (PID 12345) and the target address is within the restricted kernel range. Consequently, at block 4412 the program returns −EPERM (Permission Denied) to the kernel, causing the system call to fail before any memory access occurs.
Simultaneously, at block 4414 the eBPF program generates an audit event recording the violation attempt. This event includes: timestamp=1729468800000000000 (nanosecond precision), agent_pid=12345, rule_id=MEMORY_ACCESS_001, decision=DENY, attempted_address=0xFFFFFFFF81000000, operation_type=READ. The event is written to a BPF ring buffer and subsequently retrieved by the user space Audit Logger, in some implementations embodied as Audit Logger 4304.
The audit logger cryptographically signs the event and adds it to the immutable audit chain. The event now serves as forensic evidence of the attempted policy violation, complete with mathematical proof of its authenticity. Security personnel can analyze this event to determine whether the agent was compromised, whether the policy rules require refinement, or whether the attempt represents a false positive that should inform policy adjustments.
From the AI agent's perspective, the system call simply fails at block 4416 with EPERM, identical to a conventional permission denial. The agent cannot determine that the guideline enforcement is occurring, cannot circumvent the mechanism by modifying its own code (as enforcement occurs in kernel space), and cannot tamper with the audit trail (as it is cryptographically signed). The present technology can provide numerous technical advantages over existing AI safety and security approaches. By enforcing the guidelines in kernel space using eBPF, the kernel-based management platform can ensure that policy enforcement cannot be bypassed, disabled, or modified by the AI agent process, even if that process is fully compromised by an attacker. The eBPF verifier's safety measures can prevent even privileged users from loading programs that could circumvent enforcement.
Moreover, the kernel-based management platform requires no cooperation or voluntary compliance from the AI agent. Enforcement can be mandatory and automatic, occurring transparently in the kernel call path. This can eliminate the fundamental trust assumption present in application-level safety frameworks. eBPF programs execute as native machine code directly within the kernel, with typical execution times measured in tens to hundreds of nanoseconds. Policy evaluation can occur inline with system call processing, introducing negligible latency compared to traditional security mechanisms such as virtualization or heavy-weight sandboxing.
The ability to attach eBPF programs to arbitrary kernel hook points can enable precise control over specific operations. Policies can be defined at the granularity of individual system calls, specific memory address ranges, particular network destinations, or specific file system paths, providing flexibility that coarse-grained mechanisms cannot achieve. eBPF programs and BPF maps can be updated at runtime without requiring process restarts or system reboots. This can enable dynamic policy refinement in response to emerging threats or changing operational requirements while maintaining continuous enforcement.
The cryptographic audit trail can provide mathematical proof of policy compliance or violations. Unlike conventional logs that can be modified by privileged users, the hash-chained and digitally-signed audit records can provide non-repudiable evidence suitable for regulatory compliance, forensic investigation, and legal proceedings.
Example Implementation of the Models of the Agent Management PlatformAs shown, the AI system 4500 can include a set of layers, which conceptually organize elements within an example network topology for the AI system's architecture to implement a particular AI model. Generally, an AI model is a computer-executable program implemented by the AI system 4500 that analyses data to make predictions. Information can pass through each layer of the AI system 4500 to generate outputs for the AI model. The layers can include a data layer 4502, a structure layer 4504, a model layer 4506, and an application layer 4508. The algorithm 4516 of the structure layer 4504 and the model structure 4520 and model parameters 4522 of the model layer 4506 together form an example AI model. The optimizer 4526, loss function engine 4524, and regularization engine 4528 work to refine and optimize the AI model, and the data layer 4502 provides resources and support for application of the AI model by the application layer 4508.
The data layer 4502 acts as the foundation of the AI system 4500 by preparing data for the AI model. As shown, the data layer 4502 can include two sub-layers: a hardware platform 4510 and one or more software libraries 4512. The hardware platform 4510 can be designed to perform operations for the AI model and include computing resources for storage, memory, logic and networking, such as the resources described in relation to
The software libraries 4512 can be thought of suites of data and programming code, including executables, used to control the computing resources of the hardware platform 4510. The programming code can include low-level primitives (e.g., fundamental language elements) that form the foundation of one or more low-level programming languages, such that servers of the hardware platform 4510 can use the low-level primitives to carry out specific operations. The low-level programming languages do not require much, if any, abstraction from a computing resource's instruction set architecture, enabling them to run quickly with a small memory footprint. Examples of software libraries 4512 that can be included in the AI system 4500 include INTEL Math Kernel Library, NVIDIA cuDNN, EIGEN, and OpenBLAS.
The structure layer 4504 can include an ML framework 4514 and an algorithm 4516. The ML framework 4514 can be thought of as an interface, library, or tool that enables users to build and deploy the AI model. The ML framework 4514 can include an open-source library, an API, a gradient-boosting library, an ensemble method, and/or a deep learning toolkit that work with the layers of the AI system facilitate development of the AI model. For example, the ML framework 4514 can distribute processes for application or training of the AI model across multiple resources in the hardware platform 4510. The ML framework 4514 can also include a set of pre-built components that have the functionality to implement and train the AI model and enable users to use pre-built functions and classes to construct and train the AI model. Thus, the ML framework 4514 can be used to facilitate data engineering, development, hyperparameter tuning, testing, and training for the AI model. Examples of ML frameworks 4514 that can be used in the AI system 4500 include TENSORFLOW, PYTORCH, SCIKIT-LEARN, KERAS, LightGBM, RANDOM FOREST, and AMAZON WEB SERVICES.
The algorithm 4516 can be an organized set of computer-executable operations used to generate output data from a set of input data and can be described using pseudocode. The algorithm 4516 can include complex code that enables the computing resources to learn from new input data and create new/modified outputs based on what was learned. In some implementations, the algorithm 4516 can build the AI model through being trained while running computing resources of the hardware platform 4510. This training enables the algorithm 4516 to make predictions or decisions without being explicitly programmed to do so. Once trained, the algorithm 4516 can run at the computing resources as part of the AI model to make predictions or decisions, improve computing resource performance, or perform tasks. The algorithm 4516 can be trained using supervised learning, unsupervised learning, semi-supervised learning, and/or reinforcement learning.
Using supervised learning, the algorithm 4516 can be trained to learn patterns (e.g., map input data to output data) based on labeled training data. The training data may be labeled by an external user or operator. For instance, a user may collect a set of training data, such as by capturing data from sensors, images from a camera, outputs from a model, and the like. In an example implementation, training data can include native-format data collected from various source computing systems described herein. Furthermore, training data can include pre-processed data generated by various engines of the agent management platform described herein. The user may label the training data based on one or more classes and trains the AI model by inputting the training data to the algorithm 4516. The algorithm determines how to label the new data based on the labeled training data. The user can facilitate collection, labeling, and/or input via the ML framework 4514. In some instances, the user may convert the training data to a set of feature vectors for input to the algorithm 4516. Once trained, the user can test the algorithm 4516 on new data to determine if the algorithm 4516 is predicting accurate labels for the new data. For example, the user can use cross-validation methods to test the accuracy of the algorithm 4516 and retrain the algorithm 4516 on new training data if the results of the cross-validation are below an accuracy threshold.
Supervised learning can include classification and/or regression. Classification techniques include teaching the algorithm 4516 to identify a category of new observations based on training data and are used when input data for the algorithm 4516 is discrete. Said differently, when learning through classification techniques, the algorithm 4516 receives training data labeled with categories (e.g., classes) and determines how features observed in the training data (e.g., various claim elements, policy identifiers, tokens extracted from unstructured data) relate to the categories (e.g., risk propensity categories, claim leakage propensity categories, complaint propensity categories). Once trained, the algorithm 4516 can categorize new data by analyzing the new data for features that map to the categories. Examples of classification techniques include boosting, decision tree learning, genetic programming, learning vector quantization, k-nearest neighbor (k-NN) algorithm, and statistical classification.
Regression techniques include estimating relationships between independent and dependent variables and are used when input data to the algorithm 4516 is continuous. Regression techniques can be used to train the algorithm 4516 to predict or forecast relationships between variables. To train the algorithm 4516 using regression techniques, a user can select a regression method for estimating the parameters of the model. The user collects and labels training data that is input to the algorithm 4516 such that the algorithm 4516 is trained to understand the relationship between data features and the dependent variable(s). Once trained, the algorithm 4516 can predict missing historic data or future outcomes based on input data. Examples of regression methods include linear regression, multiple linear regression, logistic regression, regression tree analysis, least squares method, and gradient descent. In an example implementation, regression techniques can be used, for example, to estimate and fill-in missing data for machine learning based pre-processing operations.
Under unsupervised learning, the algorithm 4516 learns patterns from unlabeled training data. In particular, the algorithm 4516 is trained to learn hidden patterns and insights of input data, which can be used for data exploration or for generating new data. Here, the algorithm 4516 does not have a predefined output, unlike the labels output when the algorithm 4516 is trained using supervised learning. Said another way, unsupervised learning is used to train the algorithm 4516 to find an underlying structure of a set of data, group the data according to similarities, and represent that set of data in a compressed format. The agent management platform can use unsupervised learning to identify patterns in claim history (e.g., to identify particular event sequences) and so forth. In some implementations, performance of the agent management platform that can use unsupervised learning is improved because the incoming input is pre-processed and reduced, based on the relevant triggers, as described herein.
A few techniques can be used in supervised learning: clustering, anomaly detection, and techniques for learning latent variable models. Clustering techniques include grouping data into different clusters that include similar data, such that other clusters contain dissimilar data. For example, during clustering, data with possible similarities remain in a group that has less or no similarities to another group. Examples of clustering techniques density-based methods, hierarchical based methods, partitioning methods, and grid-based methods. In one example, the algorithm 4516 may be trained to be a k-means clustering algorithm, which partitions n observations in k clusters such that each observation belongs to the cluster with the nearest mean serving as a prototype of the cluster. Anomaly detection techniques are used to detect previously unseen rare objects or events represented in data without prior knowledge of these objects or events. Anomalies can include data that occur rarely in a set, a deviation from other observations, outliers that are inconsistent with the rest of the data, patterns that do not conform to well-defined normal behavior, and the like. When using anomaly detection techniques, the algorithm 4516 may be trained to be an Isolation Forest, local outlier factor (LOF) algorithm, or K-nearest neighbor (k-NN) algorithm. Latent variable techniques include relating observable variables to a set of latent variables. These techniques assume that the observable variables are the result of an individual's position on the latent variables and that the observable variables have nothing in common after controlling for the latent variables. Examples of latent variable techniques that may be used by the algorithm 4516 include factor analysis, item response theory, latent profile analysis, and latent class analysis.
The model layer 4506 implements the AI model using data from the data layer and the algorithm 4516 and ML framework 4514 from the structure layer 4504, thus enabling decision-making capabilities of the AI system 4500. The model layer 4506 includes a model structure 4520, model parameters 4522, a loss function engine 4524, an optimizer 4526, and a regularization engine 4528.
The model structure 4520 describes the architecture of the AI model of the AI system 4500. The model structure 4520 defines the complexity of the pattern/relationship that the AI model expresses. Examples of structures that can be used as the model structure 4520 include decision trees, support vector machines, regression analyses, Bayesian networks, Gaussian processes, genetic algorithms, and artificial neural networks (or, simply, neural networks). The model structure 4520 can include a number of structure layers, a number of nodes (or neurons) at each structure layer, and activation functions of each node. Each node's activation function defines how to node converts data received to data output. The structure layers may include an input layer of nodes that receive input data, an output layer of nodes that produce output data. The model structure 4520 may include one or more hidden layers of nodes between the input and output layers. The model structure 4520 can be an Artificial Neural Network (or, simply, neural network) that connects the nodes in the structured layers such that the nodes are interconnected. Examples of neural networks include Feedforward Neural Networks, convolutional neural networks (CNNs), Recurrent Neural Networks (RNNs), Autoencoder, and Generative Adversarial Networks (GANs).
The model parameters 4522 represent the relationships learned during training and can be used to make predictions and decisions based on input data. The model parameters 4522 can weight and bias the nodes and connections of the model structure 4520. For instance, when the model structure 4520 is a neural network, the model parameters 4522 can weight and bias the nodes in each layer of the neural networks, such that the weights determine the strength of the nodes and the biases determine the thresholds for the activation functions of each node. The model parameters 4522, in conjunction with the activation functions of the nodes, determine how input data is transformed into desired outputs. The model parameters 4522 can be determined and/or altered during training of the algorithm 4516.
The loss function engine 4524 can determine a loss function, which is a metric used to evaluate the AI model's performance during training. For instance, the loss function engine 4524 can measure the difference between a predicted output of the AI model and the actual output of the AI model and is used to guide optimization of the AI model during training to minimize the loss function. The loss function may be presented via the ML framework 4514, such that a user can determine whether to retrain or otherwise alter the algorithm 4516 if the loss function is over a threshold. In some instances, the algorithm 4516 can be retrained automatically if the loss function is over the threshold. Examples of loss functions include a binary-cross entropy function, hinge loss function, regression loss function (e.g., mean square error, quadratic loss, etc.), mean absolute error function, smooth mean absolute error function, log-cosh loss function, and quantile loss function.
The optimizer 4526 adjusts the model parameters 4522 to minimize the loss function during training of the algorithm 4516. In other words, the optimizer 4526 uses the loss function generated by the loss function engine 4524 as a guide to determine what model parameters lead to the most accurate AI model. Examples of optimizers include Gradient Descent (GD), Adaptive Gradient Algorithm (AdaGrad), Adaptive Moment Estimation (Adam), Root Mean Square Propagation (RMSprop), Radial Base Function (RBF) and Limited-memory BFGS (L-BFGS). The type of optimizer 4526 used may be determined based on the type of model structure 4520 and the size of data and the computing resources available in the data layer 4502.
The regularization engine 4528 executes regularization operations. Regularization is a technique that prevents over- and under-fitting of the AI model. Overfitting occurs when the algorithm 4516 is overly complex and too adapted to the training data, which can result in poor performance of the AI model. Underfitting occurs when the algorithm 4516 is unable to recognize even basic patterns from the training data such that it cannot perform well on training data or on validation data. The optimizer 4526 can apply one or more regularization techniques to fit the algorithm 4516 to the training data properly, which helps constraint the resulting AI model and improves its ability for generalized application. Examples of regularization techniques include lasso (L1) regularization, ridge (L2) regularization, and elastic (L1 and L2 regularization).
The application layer 4508 describes how the AI system 4500 is used to solve problem or perform tasks. In an example implementation, the application layer 4508 can include a front-end user interface of the agent management platform.
Example Computing Environment of the Agent Management PlatformThe computer system 4600 can take any suitable physical form. For example, the computer system 4600 can share a similar architecture to that of a server computer, personal computer (PC), tablet computer, mobile telephone, game console, music player, wearable electronic device, network-connected (“smart”) device (e.g., a television or home assistant device), AR/VR systems (e.g., head-mounted display), or any electronic device capable of executing a set of instructions that specify action(s) to be taken by the computer system 4600. In some implementations, the computer system 4600 can be an embedded computer system, a system-on-chip (SOC), a single-board computer system (SBC) or a distributed system such as a mesh of computer systems or include one or more cloud components in one or more networks. Where appropriate, one or more computer systems 4600 can perform operations in real time, near real time, or in batch mode.
The network interface device 4614 enables the computer system 4600 to exchange data in a network 4616 with an entity that is external to the computing system 4600 through any communication protocol supported by the computer system 4600 and the external entity. Examples of the network interface device 4614 include a network adaptor card, a wireless network interface card, a router, an access point, a wireless router, a switch, a multilayer switch, a protocol converter, a gateway, a bridge, bridge router, a hub, a digital media receiver, and/or a repeater, as well as all wireless elements noted herein.
The memory (e.g., main memory 4608, non-volatile memory 4612, machine-readable medium 4628) can be local, remote, or distributed. Although shown as a single medium, the machine-readable medium 4628 can include multiple media (e.g., a centralized/distributed database and/or associated caches and servers) that store one or more sets of instructions 4630. The machine-readable (storage) medium 4628 can include any medium that is capable of storing, encoding, or carrying a set of instructions for execution by the computer system 4600. The machine-readable medium 4628 can be non-transitory or comprise a non-transitory device. In this context, a non-transitory storage medium can include a device that is tangible, meaning that the device has a concrete physical form, although the device can change its physical state. Thus, for example, non-transitory refers to a device remaining tangible despite this change in state.
Although implementations have been described in the context of fully functioning computing devices, the various examples are capable of being distributed as a program product in a variety of forms. Examples of machine-readable storage media, machine-readable media, or computer-readable media include recordable-type media such as volatile and non-volatile memory, removable memory, hard disk drives, optical disks, and transmission-type media such as digital and analog communication links.
In general, the routines executed to implement examples herein can be implemented as part of an operating system or a specific application, component, program, object, module, or sequence of instructions (collectively referred to as “computer programs”). The computer programs typically comprise one or more instructions (e.g., instructions 4610, 4630) set at various times in various memory and storage devices in computing device(s). When read and executed by the processor 4602, the instruction(s) cause the computer system 4600 to perform operations to execute elements involving the various aspects of the disclosure.
In some implementations, server computing device 4710 is an edge server which receives client requests and coordinates fulfillment of those requests through other servers, such as servers 820A-C. In some implementations, server computing devices 4710 and 4720 comprise computing systems, such as the agent management platform. Though each server computing device 4710 and 4720 is displayed logically as a single server, server computing devices can each be a distributed computing environment encompassing multiple computing devices located at the same or at geographically disparate physical locations. In some implementations, each server computing device 4720 corresponds to a group of servers.
Client computing devices 4705 and server computing devices 4710 and 4720 can each act as a server or client to other server or client devices. In some implementations, servers (4710, 820A-C) connect to a corresponding database (4715, 825A-C). As discussed above, each server computing device 4720 can correspond to a group of servers, and each of these servers can share a database or can have its own database. Databases 4715 and 4725 warehouse (e.g., store) information such as claims data, email data, call transcripts, call logs, policy data and so on. Though databases 4715 and 4725 are displayed logically as single units, databases 4715 and 4725 can each be a distributed computing environment encompassing multiple computing devices, can be located within their corresponding server, or can be located at the same or at geographically disparate physical locations.
Network 4730 can be a local area network (LAN) or a wide area network (WAN), but can also be other wired or wireless networks. In some implementations, network 4730 is the Internet or some other public or private network. Client computing devices 4705 are connected to network 4730 through a network interface, such as by wired or wireless communication. While the connections between server computing device 4710 and server computing devices 4720 are shown as separate connections, these connections can be any kind of local, wide area, wired, or wireless network, including network 4730 or a separate public or private network.
Further ExamplesIn some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium including instructions thereon. The instructions, when executed by at least one hardware processor of a system, can cause the system to detect, via monitoring one or more atomic event trace points of a system kernel, a runtime query to execute a transformation operation set for an internal operational dataset of a first AI agent set. A multi-agent storage can store a reference value that represents one or more operative boundaries for the first agent set. An operative map of the system kernel can correlate AI agent identifiers to atomic execution constraints based on the one or more operative boundaries. The instructions can further cause the system to selectively retrieve, via the operative map, one or more atomic execution constraints corresponding to an identifier for the first AI agent set. The instructions can further cause the system to determine, via comparing the one or more atomic execution constraints with the transformation operation set of the runtime query, an execution compliance status for the transformation operation set prior to execution of subsequent atomic operations following activation of the one or more atomic event trace points. The instructions can further cause the system to generate, within the multi-agent storage in association with the identifier for the first AI agent set, a cryptographic attestation record indicating the execution compliance status for the transformation operation set of the runtime query. The instructions can further cause the system to receive, via the multi-agent storage, a verification artifact from the first AI agent set that indicates an observed value based on the cryptographic attestation record and application of the transformation operation set on the internal operational dataset. The instructions can further cause the system to determine, via a second AI agent, a verification status of the verification artifact by comparing the reference value with the observed value indicated by the verification artifact. The instructions can further cause the system to generate, within the multi-agent storage in association with the identifier for the first AI agent set, a verification record indicating the verification status of the verification artifact.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The instructions can further cause the system to, responsive to the execution compliance status indicating non-compliance for a transformation operation subset of the transformation operation set, automatically disable execution of the transformation operation subset.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The instructions can further cause the system to, responsive to the execution compliance status indicating compliance for a transformation operation subset of the transformation operation set, automatically execute the transformation operation subset.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The instructions can further cause the system to obtain, using the second AI agent, a machine-readable data structure that defines the one or more operative boundaries for the first AI agent. The instructions can further cause the system to determine the reference value by applying a second transformation operation set on the machine-readable data structure. The instructions can further cause the system to store the reference value within the multi-agent storage in association with a second identifier corresponding to the second AI agent.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The transformation operation set can include at least one of a cryptographic hash function, a keyed hash function, or a deterministic encoding function.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The verification artifact can include a zero-knowledge proof generated by the first AI agent. The zero-knowledge proof can indicate that the internal operational dataset satisfies the one or more operative boundaries. The verification status can be determined using the zero-knowledge proof.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The verification record can further include one or more of a timestamp, a digital signature of the first AI agent, or an indication of the one or more operative boundaries.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The one or more atomic event trace points can include one or more of a breakpoint, a kernel probe, a Linux Security Module (LSM) hook, an express Data Path (XDP) hook, or a traffic control (TC) hook.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The one or more atomic event trace points can be configured to intercept at least one of a file operation, a network operation, a process creation operation, or a permission modification operation.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. Disabling execution of the transformation operation set can include at least one of returning an error code, dropping a network packet, or denying file access.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The one or more atomic event trace points can be monitored via one or more extended Berkeley Packet Filter (eBPF) processes deployed on the system kernel.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium. The multi-agent storage can include a distributed ledger.
In some implementations, the techniques described herein relate to a non-transitory, computer-readable storage medium including instructions thereon. The instructions, when executed by at least one hardware processor of a system, can cause the system to detect, via kernel-level event trace points, a runtime query to execute a transformation operation on an internal operational dataset of a first AI agent. A multi-agent storage can store at least one reference value, from a second AI agent, defining operational constraints for the first AI agent. A kernel-level mapping can correlate AI agent identifiers to execution constraints based on the operational constraints. The instructions can further cause the system to retrieve, using the kernel-level mapping, one or more execution constraints that correlate to the first AI agent. The instructions can further cause the system to determine a compliance status of the runtime query by comparing the execution constraints with the transformation operation of the runtime query. The instructions can further cause the system to generate, for the first AI agent, a cryptographic attestation record stored in the multi-agent storage, where the attestation record indicates the compliance status. The instructions can further cause the system to receive, from the first AI agent, a verification artifact indicating an observed value based on the cryptographic attestation record and application of the transformation operation on the internal operational dataset. The instructions can further cause the system to validate, via the second AI agent, the verification artifact by comparing the reference value with the observed value indicated by the verification artifact. The instructions can further cause the system to generate, for the first AI agent, a verification record stored in the multi-agent storage, where the verification record indicates validation status of the verification artifact.
REMARKSThe terms “example,” “embodiment,” and “implementation” are used interchangeably. For example, references to “one example” or “an example” in the disclosure can be, but not necessarily are, references to the same implementation; and such references mean at least one of the implementations. The appearances of the phrase “in one example” are not necessarily all referring to the same example, nor are separate or alternative examples mutually exclusive of other examples. A feature, structure, or characteristic described in connection with an example can be included in another example of the disclosure. Moreover, various features are described that can be exhibited by some examples and not by others. Similarly, various requirements are described that can be requirements for some examples but not for other examples.
The terminology used herein should be interpreted in its broadest reasonable manner, even though it is being used in conjunction with certain specific examples of the invention. The terms used in the disclosure generally have their ordinary meanings in the relevant technical art, within the context of the disclosure, and in the specific context where each term is used. A recital of alternative language or synonyms does not exclude the use of other synonyms. Special significance should not be placed upon whether or not a term is elaborated or discussed herein. The use of highlighting has no influence on the scope and meaning of a term. Further, it will be appreciated that the same thing can be said in more than one way.
Unless the context clearly requires otherwise, throughout the description and the claims, the words “comprise,” “comprising,” and the like are to be construed in an inclusive sense, as opposed to an exclusive or exhaustive sense—that is to say, in the sense of “including, but not limited to.” As used herein, the terms “connected,” “coupled,” and any variants thereof mean any connection or coupling, either direct or indirect, between two or more elements; the coupling or connection between the elements can be physical, logical, or a combination thereof. Additionally, the words “herein,” “above,” “below,” and words of similar import can refer to this application as a whole and not to any specific portions of this application. Where context permits, words in the above Detailed Description using the singular or plural number may also include the plural or singular number, respectively. The word “or” in reference to a list of two or more items covers all of the following interpretations of the word: any of the items in the list, all of the items in the list, and any combination of the items in the list. The term “module” refers broadly to software components, firmware components, and/or hardware components.
While specific examples of technology are described above for illustrative purposes, various equivalent modifications are possible within the scope of the invention, as those skilled in the relevant art will recognize. For example, while processes or blocks are presented in a given order, alternative implementations can perform routines having steps, or employ systems having blocks, in a different order, and some processes or blocks may be deleted, moved, added, subdivided, combined, and/or modified to provide alternative or sub-combinations. Each of these processes or blocks can be implemented in a variety of different ways. Also, while processes or blocks are at times shown as being performed in series, these processes or blocks can instead be performed or implemented in parallel or can be performed at different times. Further, any specific numbers noted herein are only examples such that alternative implementations can employ differing values or ranges.
Details of the disclosed implementations can vary considerably in specific implementations while still being encompassed by the disclosed teachings. As noted above, particular terminology used when describing features or aspects of the invention should not be taken to imply that the terminology is being redefined herein to be restricted to any specific characteristics, features, or aspects of the invention with which that terminology is associated. In general, the terms used in the following claims should not be construed to limit the invention to the specific examples disclosed herein, unless the above Detailed Description explicitly defines such terms. Accordingly, the actual scope of the invention encompasses not only the disclosed examples but also all equivalent ways of practicing or implementing the invention under the claims. Some alternative implementations can include additional elements to those implementations described above or include fewer elements.
Any patents and applications and other references noted above, and any that may be listed in accompanying filing papers, are incorporated herein by reference in their entireties, except for any subject matter disclaimers or disavowals, and except to the extent that the incorporated material is inconsistent with the express disclosure herein, in which case the language in this disclosure controls. Aspects of the invention can be modified to employ the systems, functions, and concepts of the various references described above to provide yet further implementations of the invention.
To reduce the number of claims, certain implementations are presented below in certain claim forms, but the applicant contemplates various aspects of an invention in other forms. For example, aspects of a claim can be recited in a means-plus-function form or in other forms, such as being embodied in a computer-readable medium. A claim intended to be interpreted as a means-plus-function claim will use the words “means for.” However, the use of the term “for” in any other context is not intended to invoke a similar interpretation. The applicant reserves the right to pursue such additional claim forms either in this application or in a continuing application.
Claims
1. A non-transitory, computer-readable storage medium comprising instructions thereon, wherein the instructions, when executed by at least one hardware processor of a system, cause the system to:
- detect, via monitoring one or more atomic event trace points of a system kernel, a runtime query to execute a transformation operation set for an internal operational dataset of a first AI agent set, wherein a multi-agent storage stores a reference value that represents one or more operative boundaries of the first agent set, and wherein an operative map of the system kernel correlates AI agent identifiers to atomic execution constraints based on the one or more operative boundaries;
- selectively retrieve, via the operative map, one or more atomic execution constraints corresponding to an identifier for the first AI agent set;
- determine, via comparing the one or more atomic execution constraints with the transformation operation set of the runtime query, an execution compliance status for the transformation operation set prior to execution of subsequent atomic operations following activation of the one or more atomic event trace points;
- generate, within the multi-agent storage in association with the identifier for the first AI agent set, a cryptographic attestation record indicating the determined execution compliance status for the transformation operation set of the runtime query;
- receive, via the multi-agent storage, a verification artifact from the first AI agent set that indicates (i) an observed value based on the cryptographic attestation record and (ii) application of the transformation operation set on the internal operational dataset;
- determine, via a second AI agent, a verification status of the verification artifact by comparing the reference value with the observed value indicated by the verification artifact; and
- generate, within the multi-agent storage in association with the identifier for the first AI agent set, a verification record indicating the verification status of the verification artifact.
2. The non-transitory, computer-readable storage medium of claim 1, wherein the instructions further cause the system to:
- responsive to the execution compliance status indicating non-compliance for a transformation operation subset of the transformation operation set, automatically disable execution of the transformation operation subset.
3. The non-transitory, computer-readable storage medium of claim 1, wherein the instructions further cause the system to:
- responsive to the execution compliance status indicating compliance for a transformation operation subset of the transformation operation set, automatically execute the transformation operation subset.
4. The non-transitory, computer-readable storage medium of claim 1, wherein the instructions further cause the system to:
- obtain, using the second AI agent, a machine-readable data structure that defines the one or more operative boundaries for the first AI agent;
- determine the reference value by applying a second transformation operation set on the machine-readable data structure; and
- store the reference value within the multi-agent storage in association with a second identifier corresponding to the second AI agent.
5. The non-transitory, computer-readable storage medium of claim 1, wherein the transformation operation set comprises at least one of: a cryptographic hash function, a keyed hash function, or a deterministic encoding function.
6. The non-transitory, computer-readable storage medium of claim 1,
- wherein the verification artifact includes a zero-knowledge proof generated by the first AI agent,
- wherein the zero-knowledge proof indicates that the internal operational dataset satisfies the one or more operative boundaries, and
- wherein the verification status is determined using the zero-knowledge proof.
7. The non-transitory, computer-readable storage medium of claim 1, wherein the verification record further includes one or more of: a timestamp, a digital signature of the first AI agent, or an indication of the one or more operative boundaries.
8. The non-transitory, computer-readable storage medium of claim 1, wherein the one or more atomic event trace points includes one or more of: a breakpoint, a kernel probe, a Linux Security Module (LSM) hook, an express Data Path (XDP) hook, or a traffic control (TC) hook.
9. The non-transitory, computer-readable storage medium of claim 1, wherein the one or more atomic event trace points are configured to intercept at least one of: a file operation, a network operation, a process creation operation, or a permission modification operation.
10. The non-transitory, computer-readable storage medium of claim 1, wherein disabling execution of the transformation operation set comprises at least one of: returning an error code, dropping a network packet, or denying file access.
11. The non-transitory, computer-readable storage medium of claim 1, wherein the one or more atomic event trace points are monitored via one or more extended Berkeley Packet Filter (eBPF) processes deployed on the system kernel.
12. The non-transitory, computer-readable storage medium of claim 1, wherein the multi-agent storage comprises a distributed ledger.
13. A system comprising:
- at least one hardware processor; and
- at least one non-transitory memory storing instructions, which, when executed by the at least one hardware processor, cause the system to: detect, via monitoring one or more atomic event trace points of a system kernel, a runtime query to execute a transformation operation set for an internal operational dataset of a first AI agent set, wherein a multi-agent storage stores a reference value that represents one or more operative boundaries of the first agent set, and wherein an operative map of the system kernel correlates AI agent identifiers to atomic execution constraints based on the one or more operative boundaries; selectively retrieve, via the operative map, one or more atomic execution constraints corresponding to an identifier for the first AI agent set; determine, via comparing the one or more atomic execution constraints with the transformation operation set of the runtime query, an execution compliance status for the transformation operation set prior to execution of subsequent atomic operations following activation of the one or more atomic event trace points; generate, within the multi-agent storage in association with the identifier for the first AI agent set, a cryptographic attestation record indicating the determined execution compliance status for the transformation operation set of the runtime query; receive, via the multi-agent storage, a verification artifact from the first AI agent set that indicates (i) an observed value based on the cryptographic attestation record and (ii) application of the transformation operation set on the internal operational dataset; determine, via a second AI agent, a verification status of the verification artifact by comparing the reference value with the observed value indicated by the verification artifact; and generate, within the multi-agent storage in association with the identifier for the first AI agent set, a verification record indicating the verification status of the verification artifact.
14. The system of claim 13 further caused to:
- responsive to the execution compliance status indicating non-compliance for a transformation operation subset of the transformation operation set, automatically disable execution of the transformation operation subset.
15. The system of claim 13 further caused to:
- responsive to the execution compliance status indicating compliance for a transformation operation subset of the transformation operation set, automatically execute the transformation operation subset.
16. The system of claim 13 further caused to:
- obtain, using the second AI agent, a machine-readable data structure that defines the one or more operative boundaries for the first AI agent;
- determine the reference value by applying a second transformation operation set on the machine-readable data structure; and
- store the reference value within the multi-agent storage in association with a second identifier corresponding to the second AI agent.
17. A computer-implemented method comprising:
- detecting, via kernel-level event trace points, a runtime query to execute a transformation operation on an internal operational dataset of a first AI agent, wherein a multi-agent storage stores at least one reference value defining operational constraints of the first AI agent, and wherein a kernel-level mapping correlates AI agent identifiers to execution constraints based on the operational constraints;
- retrieving, using the kernel-level mapping, one or more execution constraints that correlate to the first AI agent;
- determining a compliance status of the runtime query by comparing the execution constraints of the first AI agent with the transformation operation of the runtime query;
- generating, for the first AI agent, a cryptographic attestation record stored in the multi-agent storage, the attestation record indicating the determined compliance status;
- receiving, from the first AI agent, a verification artifact indicating (i) an observed value based on the cryptographic attestation record and (ii) application of the transformation operation on the internal operational dataset;
- determining, via the multi-agent storage accessible to a second AI agent, the verification artifact by comparing the reference value with the observed value indicated by the verification artifact; and
- generating, for the first AI agent, a verification record stored in the multi-agent storage, the verification record indicating validation status of the verification artifact.
18. The computer-implemented method of claim 17 further comprising:
- responsive to the execution compliance status indicating non-compliance for a transformation operation subset of the transformation operation, automatically disabling execution of the transformation operation subset.
19. The computer-implemented method of claim 17 further comprising:
- responsive to the execution compliance status indicating compliance for a transformation operation subset of the transformation operation, automatically executing the transformation operation subset.
20. The computer-implemented method of claim 17 further comprising:
- obtaining, using the second AI agent, a machine-readable data structure that defines the operational constraints for the first AI agent;
- determining the reference value by applying a second transformation operation on the machine-readable data structure; and
- storing the reference value within the multi-agent storage in association with a second identifier corresponding to the second AI agent.
Type: Application
Filed: Jun 8, 2026
Publication Date: Nov 26, 2026
Applicant: Citibank, N.A. (New York, NY)
Inventors: Ganesh Prasad BHAT (New Jersey, NJ), James Randolph MYERS (Clearwater Beach, FL), Miriam Silver (Tel Aviv)
Application Number: 19/701,666