System and Method for Deterministic Validation of Automation Workflows Guided by Large Language Models
A system for deterministic validation of automation workflows generated by a large language model (LLM) is disclosed. The system comprises a task guide generation module configured to generate a task guide comprising a sequence of user interface (UI) actions, wherein the task guide is derived from at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow. A validation engine evaluates the task guide to determine whether it conforms to a validatable graph, compares a current UI element and application page state to a corresponding reference UI element and reference page state from a previously verified execution, and permits execution of the UI action only if the current context matches the reference context within a defined similarity threshold.
This application claims the benefit of U.S. Provisional Patent Application No. 63/810,356, filed on May 22, 2025, titled “System and Method for Deterministic Validation of Automation Workflows Guided by Large Language Models” (Atty. Docket No. RDBL1006USP01); U.S. Provisional Patent Application No. 63/837,276, filed on Jul. 2, 2025, titled “SYSTEM AND METHOD FOR AUTOMATED EXPLORATION OF APPLICATION SOFTWARE” (Atty. Docket No. RDBL1007USP01); U.S. Provisional Patent Application No. 63/880,059, filed on Sep. 11, 2025, titled “SYSTEM AND METHOD FOR AUTOMATED EXPLORATION OF APPLICATION SOFTWARE” (Atty. Docket No. RDBL1007USP02); U.S. Provisional Patent Application No. 63/872,640, filed on Aug. 29, 2025, titled “SYSTEM AND METHOD FOR INTEGRATING NON-API APPLICATIONS WITH IDENTITY PLATFORMS BASED ON ARTIFICIAL INTELLIGENCE” (Atty. Docket No. RDBL1008USP01); U.S. Provisional Patent Application No. 63/878,629, filed on Sep. 9, 2025, titled “SYSTEM AND METHOD FOR INTEGRATING NON-API APPLICATIONS WITH IDENTITY PLATFORMS BASED ON ARTIFICIAL INTELLIGENCE” (Atty. Docket No. RDBL1008USP02); U.S. Provisional Patent Application No. 63/887,721, filed on Sep. 25, 2025, titled “HIERARCHICAL STRUCTURING OF GRAPHICAL USER INTERFACE ELEMENTS IN APPLICATION SOFTWARE PAGES” (Atty. Docket No. RDBL1009USP01); U.S. Provisional Patent Application No. 63/872,656, filed on Aug. 29, 2025, titled “SYSTEM AND METHOD FOR IDENTITY-CENTRIC ACTIVITY LOG CAPTURE FROM APPLICATIONS LACKING PROGRAMMATIC INTERFACES” (Atty. Docket No. RDBL1010USP01); U.S. Provisional Patent Application No. 63/872,665, filed on Aug. 29, 2025, titled “AGENTIC ARTIFICIAL INTELLIGENCE FOR AUTOMATED CONNECTOR CONFIGURATION AND APPLICATION ONBOARDING IN IDENTITY PLATFORMS” (Atty. Docket No. RDBL1011USP01); and U.S. Provisional Patent Application No. 63/881,837, filed on Sep. 15, 2025, titled “TASK-SPECIFIC HIGH-LEVEL LANGUAGE FRAMEWORK FOR STRUCTURED INTERACTION WITH LARGE LANGUAGE MODELS” (Atty. Docket No. RDBL1012USP01). All of the foregoing provisional applications are hereby incorporated by reference for all purposes.
FIELD OF THE TECHNOLOGYThe technology disclosed relates to artificial intelligence type computers and digital data processing systems and corresponding data processing methods and products for emulation of intelligence (i.e., knowledge based systems, reasoning systems, and knowledge acquisition systems); and including systems for reasoning with uncertainty (e.g., fuzzy logic systems), adaptive systems, machine learning systems, and artificial neural networks. Specifically to systems and methods for deterministic validation of graphical user interface (GUI)-based actions generated or executed by large language models (LLMs), using graphs, interface state comparisons, and contextual matching for secure and reproducible task execution.
BACKGROUNDAutonomous agents driven by artificial intelligence are increasingly deployed within enterprise software environments to perform operational, administrative, and integration tasks that historically required human operators. The autonomous agents navigate application interfaces by perceiving graphical user interface (GUI) elements such as buttons, dropdowns, input fields, and modal dialogs, and simulate user interactions including clicks, text entry, and navigation sequences. The autonomous agents perform the tasks across applications including customer relationship management platforms, regulatory submission portals, financial dashboards, internal field service systems, and partner-managed applications, and the autonomous agents extend automation coverage to applications that lack programmatic interfaces and that can be operated only through the rendered interface.
Modern implementations of the autonomous agents are increasingly driven by large language models (LLMs), which interpret input prompts or signals and dynamically generate task execution flows for the autonomous agents to perform against the application interfaces. The LLM translates a natural language objective into a structured sequence of user interface (UI) actions, which together form an automation workflow that carries out the requested task. As enterprises deploy LLM-driven automation at scale across heterogeneous applications and interface paradigms, the volume and operational significance of LLM-driven UI actions in regulated and high-stakes enterprise environments continues to grow.
A more complete appreciation of this disclosure and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:
In the drawings, like reference numerals designate identical or corresponding parts throughout the several views. Further, as used herein, the words “a,” “an” and the like generally carry a meaning of “one or more,” unless stated otherwise.
Indicia of Novelty, Inventiveness, Non-Obviousness, and Subject-Matter Eligibility OverviewLarge language models (LLMs) are non-deterministic by design. The same prompt fed into the LLM can produce different outputs across runs. The same instruction that revoked the right credential yesterday can target the wrong toggle today.
Enterprises are deploying LLM-driven AI agents to do operational work inside their software: revoking access, resetting passwords, modifying privileges, and triggering workflows across hundreds of applications. The agents act through the screen, not through a backend interface. In regulated industries, the non-determinism is operationally unacceptable. A misconfigured role grants unauthorized access. A failed deprovisioning leaves a former employee with active credentials. A misinterpreted page exposes protected data.
Conventional approaches do not solve the problem. Observability systems built for code-driven software cannot see a screen-based action. Robotic process automation (RPA) tools drive screens but rely on brittle scripts that check only one identifier without verifying the surrounding state. Post-LLM validation scores the LLM's output after generation, leaving the LLM to be asked to execute unreliable workflows in the first place. Each gap is small. Together, the gaps are the reason LLM-driven automation cannot be safely deployed in the industries that have the most to gain from it.
The technology disclosed does not attempt to make the LLM deterministic. Instead, the technology disclosed places a deterministic validation layer between the LLM and the target graphical user interface, so that only graph-validated, state-verified actions are permitted to execute.
The technology disclosed closes the verification gap. The technology disclosed is a deterministic validation system that sits between the LLM agent and the application. The system filters unreliable workflows before the LLM ever sees them, confirms both the target user interface (UI) element and the surrounding page state before every action executes, and records every decision in a form auditors can trust. The technology disclosed treats LLM-driven automation not as a process to trust, but as a sequence of events to verify.
How it WorksThe technology disclosed works in three layers.
The first layer filters before the LLM ever sees the work. The task guide, generated from a recorded video of user interaction, a predefined graph of available application functions, or a manually authored task flow, passes first to a validation engine. The validation engine scores the task guide against a determinism threshold using graph-based measures, specifically path convergence and node activation entropy. Task guides that fail the score never reach the LLM. The LLM is not asked to execute workflows the system already knows are unreliable.
The second layer verifies at runtime. When the agent goes to perform a UI action, the validation engine intercepts. The validation engine compares the target UI element on the live screen against a reference UI element using a neural-network-based similarity model that encodes semantic, visual, and structural properties into a vector and measures distance. The validation engine also compares the surrounding application page state against a reference page state. The reference page state can be a composite built from at least two screenshots taken at different times, so modal overlays, dropdowns, and other transient features register in the comparison. The action executes only if both match within one or more predetermined similarity thresholds. A correct element on the wrong page is denied. A correct page with a moved element is denied. On denial, the validation engine halts the action or routes it to a fallback path comprising an exception handler, an alternate sequence of actions, or human-in-the-loop review.
The third layer sources the reference and logs the decision. The reference comes from a deterministic execution cache that has saved verified UI elements, their corresponding actions, and their associated page states from prior verified executions. The reference can also come from an expected value written into the task guide itself as a post-execution condition. The cache handles actions the agent has performed before. The task-guide value handles first-time actions. The validation engine works from the first execution, with no warm-up period. After the action runs, the validation engine can take one more snapshot at a defined delay, for example 200 milliseconds after a save click, to confirm the action produced its intended effect. Every decision is tagged with identifiers, timestamps, and an outcome status, plus reasoning trails, visual cues, and decision states. Critical actions, including modifying user access privileges, resetting application passwords, and initiating secure data transmissions, get a stricter similarity threshold or an additional confirmation step. Repeated actions across sessions execute in the next session only when the prior execution was validated.
The Technical ArchitectureThe technology disclosed rests on four structural elements that work together. Removing any one of them collapses the whole.
The first element is the pre-LLM gate. The validation engine checks the task guide for reproducibility before the LLM sees it. Bad workflows are stopped at the door, not caught after the fact. The check uses path convergence and node activation entropy as the structural measures. No prior system positions the validation gate before the LLM.
The second element is the conjunctive runtime check. The validation engine compares both the element and the surrounding page state, independently, and requires both to match. Single-axis matching, where only the element or only the state is checked, lets failures through. Dual-axis matching catches them.
The third element is the dual-source reference. The cache covers actions the agent has performed before. The task-guide value covers actions the agent is performing for the first time. The validation engine works on every workflow from the first execution, with no warm-up period. No prior system combines the two pathways.
The fourth element is the modular validation engine itself. The validation engine is built from four sub-modules: graph validity, element comparison, page state comparison, and execution gating. Each sub-module can be improved without disturbing the others.
The four elements depend on each other. The pre-LLM gate matters only because the runtime gate operates on validated task guides. The runtime gate matters only because the dual-source reference supplies the comparison. The dual-source reference matters only because the modular engine routes both sources through the same comparison logic. The modular engine matters only because the four sub-modules close the verification loop on every action.
Technical AdvantagesThe technology disclosed offers concrete advantages. The pre-LLM gate keeps the LLM from being asked to do something unreliable in the first place. The runtime conjunctive check catches the failure modes that single-axis systems miss. The dual-source reference removes the warm-up requirement that other validation systems need. The cache speeds up repeated workflows. The deep-learning similarity model tolerates minor UI changes that attribute-matching tools cannot. The composite page state catches transient screen features that single-frame checks misclassify. The time-relative check confirms the action produced its intended effect. The criticality tiering accommodates regulatory weight without slowing down routine work. The audit log produces a record that compliance teams and auditors can actually use.
Why it MattersFor enterprises pushing AI agents into operational workflows, the technology disclosed is not a productivity enhancement. The technology disclosed is the verification layer that makes LLM-driven automation safe to deploy in regulated environments. The LLM agent is no longer something the enterprise has to trust on faith. The LLM agent operates inside a validation pipeline that checks every action against a verified reference, permits the action only when the check passes, and records the result in a form that holds up to audit.
The action the LLM proposes is the action that gets verified. The action that passes verification is the action that gets executed. The result observed is the result recorded. The record produced is the same record compliance officers, auditors, and operations teams all rely on. The difference between trusting that the LLM did the right thing and verifying that it did is the difference between an automation system an enterprise can deploy and one it cannot.
System ArchitectureThe application management platform 100 includes a plurality of users 102-1 and 102-2, each operating a respective user device 104-1 and 104-2. The user devices 104-1 and 104-2, collectively referred to as user devices 104, may be any computing devices capable of initiating or supporting interaction with components of the application management platform 100. The user devices 104 may include desktop computers, laptops, tablets, smartphones, or other network-enabled terminals. The user devices 104-1 and 104-2 are communicatively linked to other components of the application management platform 100 via a network 108. The network 108 may include any combination of communication technologies, including wired connections, wireless protocols, cellular networks, local area networks (LANs), wide area networks (WANs), metropolitan area networks (MANs), the Internet, or any suitable data transmission medium.
The agent command systems 101-1 and 101-2, collectively referred to as agent command systems 101 and as illustrated in
In one exemplary embodiment, an agent command system 101 may be realized as an enterprise human resources platform, such as Workday or SuccessFactors, which automatically triggers a new-user provisioning task upon successful onboarding of an employee. Alternatively, an agent command system 101 may be a cloud identity orchestration platform or identity governance solution, such as Okta Workflows or SailPoint, which detects a status change and delegates an appropriate downstream action to an agentic automation layer.
In another scenario, an agent command system 101 may comprise an enterprise-grade ticketing or service desk tool, such as ServiceNow or Jira, where an administrator raises a request for access removal or a credential reset. Once the ticket receives approval, the agent command system 101 generates a task trigger, which an AI agent system 106 receives for execution across relevant applications.
Additionally, an agent command system 101 may be embodied as a Python script or a lightweight command-line utility maintained by enterprise information technology teams. The agent command system 101 may invoke credential management tasks based on custom logic, policy thresholds, or compliance audit findings. For example, a script may be scheduled to review stale accounts, or trigger revocation flows for temporary users whose access is due to expire.
The scope of the agent command systems 101 also extends to externally hosted platforms. For example, a partner organization operating an integration gateway may initiate access modification workflows through representational state transfer (RESTful) callbacks or secure webhooks when a role matrix of a joint project is updated. Similarly, identity-centric middleware, such as Active Directory Federation Services (AD FS) or Azure Conditional Access policies, may initiate dynamic policy enforcement actions through integration with the application management platform 100.
Furthermore, websites that serve as operational hubs for user provisioning, including custom-built contractor registration portals or partner self-service applications, may function as instances of the agent command systems 101. These web portals collect user metadata, roles, and authorization preferences and transmit the metadata, the roles, and the authorization preferences as task directives to the agentic execution layer for automated credential provisioning.
The AI agent systems 106-1 and 106-2, collectively referred to as AI agent systems 106, serve as intermediary execution and orchestration layers between the agent command systems 101 and the set of applications 110. In the embodiment of
A set of applications 110 is denoted as application 1, application 2, application 3, and continuing through application N. The applications within the set of applications 110 represent tools, platforms, and services utilized by enterprises in operational workflows. Illustrative examples include customer relationship management platforms such as Salesforce, regulatory filing portals such as Securities and Exchange Commission (SEC) submission websites, internal field service management systems, and partner-managed applications hosted on third-party infrastructure. Within the set of applications 110, some applications may be sanctioned enterprise applications that have been vetted and formally approved for use within the enterprise environment. However, not all sanctioned applications are programmatically integrated with enterprise identity systems. For example, Salesforce may be both sanctioned and programmatically connected through secure application programming interfaces (APIs), whereas other sanctioned tools, including a field service application hosted in a partner cloud, may lack programmatic integrations entirely and may be accessible through graphical user interfaces.
In cases of applications lacking programmatic integration, an AI agent system 106 is positioned to bridge the integration gap by executing graphical user interface (GUI)-based workflows. The AI agent system 106 functions across both API-enabled and GUI-only applications without requiring custom connectors for every application, thereby supporting a wide spectrum of use cases. The applications denoted by reference numeral 110, including application 1 through application N, represent the diversity in application connectivity and accessibility.
The application management platform 100 provides an operational control plane for deployment, configuration, and update management of the AI agent systems 106 across the enterprise environment. The application management platform 100 may further serve as an interface through which deployment packages, including deployment application template (DAT) files containing task templates and user interface locators, are delivered and version controlled. Version-controlled deployment ensures that application-specific logic can be updated without requiring modification to enterprise systems or target applications.
Operationally, when a task is initiated, including onboarding a new employee or revoking access for a departing contractor, the AI agent system 106 identifies relevant applications, determines whether the relevant applications are sanctioned or unsanctioned, and further determines whether programmatic access is available. Where APIs exist, the AI agent system 106 may utilize the APIs. Where no APIs are exposed, the AI agent system 106 performs interface-based automation by identifying credential fields, invoking generation elements, interacting with application controls, and confirming task completion through visual confirmation or response logging.
The users 102 represent individuals or entities that require interaction with the AI agent system 106 for accessing enterprise functionalities or initiating enterprise workflows. The users 102 may include enterprise employees, external customers, partners, vendors, and contractors. Within an enterprise, the users 102 may take the form of managers, analysts, administrative staff, or compliance officers. For example, a marketing manager may request insights into sales performance metrics, while a data analyst may query historical usage patterns to train predictive models. Each interaction is facilitated through the user devices 104, which may include desktop computers, laptops, mobile phones, or tablets configured to transmit queries or task instructions to the AI agent system 106.
The AI agent system 106 functions as an intelligent middleware layer, interfacing with user instructions or task directives and performing corresponding task executions within the enterprise infrastructure. Upon receiving requests from the user devices 104-1 through 104-N or task directives from the agent command systems 101, the AI agent system 106 interprets an objective of the request or directive, references one or more semantic models, and orchestrates an execution strategy. The execution may involve data extraction from enterprise databases, task automation across enterprise applications, generation of alerts and recommendations, or credential and entitlement management operations.
An underlying semantic model employed by the AI agent system 106 maps concepts, relationships, and terminologies specific to the enterprise and an operational domain of the enterprise. The semantic model may incorporate language-specific and language-independent elements and may maintain a knowledge graph that encapsulates industry-specific vocabularies, inter-entity relationships, and organizational hierarchies. The semantic model allows the AI agent system 106 to provide meaningful and contextually accurate responses, even when user inputs are ambiguous, multilingual, or incomplete. For example, the AI agent system 106 may infer that a query about “partner logins” likely pertains to privileged account access in partner-facing systems and may respond accordingly.
The AI agent system 106 is capable of initiating omni-channel communication, providing task updates, delivering alerts, recommending actions, and handling real-time queries via chat, voice, or system notification interfaces. The AI agent system 106 may also proactively interact with the users 102 to suggest workflow improvements or to flag policy violations. For example, if a departing employee retains access to sensitive systems, the AI agent system 106 may initiate a revocation task and notify a security team.
The architecture is adaptable to various industry verticals including manufacturing, financial services, healthcare, oil and gas, and telecommunications. The AI agent system 106 is designed to accommodate industry-specific models, allowing the AI agent system 106 to process domain-relevant queries and execute tasks with high specificity and compliance.
The network 108 facilitates data transfer between the user devices 104-1 through 104-N and the AI agent system 106. In some embodiments, multiple interconnected networks 108 may be present between the user devices 104-1 through 104-N and the AI agent system 106. The network 108 may be a private network, a public network, or a hybrid network. The network 108 may be a local area network (LAN) or a wide area network (WAN).
The network 108 may be connected via wired or wireless links. Wired links may include digital subscriber line (DSL), coaxial cable lines, Ethernet, fiber optic links, or other links used for network infrastructure. Wireless links may include cellular, BLUETOOTH, Wi-Fi, Worldwide Interoperability for Microwave Access (WiMAX), infrared channels, satellite bands, or other wireless networking technologies. Wireless links may also include any cellular network standards used to communicate among mobile devices, including standards that qualify as 1G, 2G, 3G, 4G, 5G, or Long Term Evolution (LTE). Network standards may qualify as one or more generations of mobile telecommunication standards by fulfilling a specification or standards including specifications maintained by the International Telecommunication Union. The 3G standards, for example, may correspond to the International Mobile Telecommunications-2000 (IMT-2000) specification, and the 4G standards may correspond to the International Mobile Telecommunications Advanced (IMT-Advanced) specification. Examples of cellular network standards include Advanced Mobile Phone System (AMPS), Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Universal Mobile Telecommunications System (UMTS), High Speed Packet Access (HSPA), LTE, LTE Advanced, Mobile WiMAX, and WiMAX Advanced. Cellular network standards may use various channel access methods, including frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA), or space division multiple access (SDMA). In some embodiments, different types of data may be transmitted via different links and standards. In other embodiments, the same types of data may be transmitted via different links and standards.
The network 108 may be any type and form of network. The geographical scope of the network 108 may vary widely. The network 108 can be a body area network (BAN), a personal area network (PAN), a LAN including an Intranet, a metropolitan area network (MAN), or a WAN including the Internet. The topology of the network 108 may be of any form and may include point-to-point, serial, bus, star, ring, mesh, or tree topologies. The network 108 may be an overlay network that is virtual and sits on top of one or more layers of other networks. The network 108 may be of any network topology capable of supporting the operations described herein. The network 108 may utilize different techniques and layers or stacks of protocols, including the Ethernet protocol, the Internet protocol suite including Transmission Control Protocol over Internet Protocol (TCP/IP) and User Datagram Protocol over Internet Protocol (UDP/IP), the Asynchronous Transfer Mode (ATM) technique, the Synchronous Optical Networking (SONET) protocol, or the Synchronous Digital Hierarchy (SDH) protocol. The TCP/IP Internet protocol suite may include an application layer, a transport layer, an Internet layer including IPv6, or a link layer. The network 108 may be a type of broadcast network, telecommunications network, data communication network, or computer network.
In some implementations, one or more of the users 102-1 through 102-N may access the AI agent system 106 using one or more of the user devices 104-1 through 104-N. The AI agent system 106 may include one or more user interfaces, including browsers and textual or graphical user interfaces, through which the users 102-1 through 102-N may access the AI agent system 106.
The user devices 104-1 through 104-N and the AI agent system 106 may exist on a shared or segmented network. In some embodiments, the users 102 may access the AI agent system 106 remotely via virtual private networks (VPNs) or federated identity mechanisms, while in other embodiments, the users 102 may be co-located within an enterprise premise. The AI agent system 106 may access one or more databases communicatively coupled to the user devices 104-1 through 104-N through the network 108.
The database may be persistent storage that is capable of storing data. The persistent storage may be a local storage unit or a remote storage unit. The persistent storage may be a magnetic storage unit, an optical storage unit, a solid-state storage unit, an electronic storage unit including main memory, or a similar storage unit. The persistent storage may also be a monolithic single device or a distributed set of devices. Each component may include hardware including processing devices, including processors, central processing units (CPUs), and graphics processing units (GPUs), memory including random access memory (RAM), storage devices including a hard disk drive (HDD) and a solid-state drive (SSD), and other hardware devices including a sound card and a video card. The computing system may comprise any suitable type of computing device or machine that has a programmable processor including server computers, desktop computers, laptop computers, tablet computers, smartphones, and set-top boxes. In some examples, the computing system may comprise a single machine or may include multiple interconnected machines including multiple servers configured in a cluster. The computing system may be implemented by a common entity or organization or may be implemented by different entities or organizations.
As depicted in
The AI agent system 106 interfaces with the agent command systems 101 and the set of applications 110 across the plurality of networks 108-1 and 108-2 and acts as an intermediary that facilitates intelligent, automated task execution based on enterprise identity controls. The AI agent system 106 may be communicatively coupled with the application management platform 100 that oversees and orchestrates deployment, access provisioning, and lifecycle management of AI-agent-based automation. The applications form a collective set of applications 110 of enterprise-deployed software systems, comprising commonly used platforms including Salesforce, customer relationship management systems, regulatory filing portals, or internally hosted operational tools. The set of applications 110 varies in accordance with each enterprise. The set of applications 110 is a customized set tailored to address the specific requirements of each enterprise.
The architecture of
The AI agent system 106 mediates communication and operational requests between command-originating enterprise systems and the managed application ecosystem. The AI agent system 106 may incorporate logic for parsing user instructions or task directives, orchestrating task flows, validating access policies, updating credential states, and sending execution notifications. The AI agent system 106 enables agentic automation even in cases where application integration is incomplete or where manual processes are still used, by employing techniques including interface automation, synthetic API generation, or remote workflow triggers.
By situating the AI agent system 106 between disparate agent command systems and applications, the architecture shown in
The human resources system 202 is a centralized enterprise repository that maintains user-specific attributes and employment metadata, including designation, department, employment status, access eligibility criteria, and historical access records. For example, upon onboarding a new employee into a marketing department, the human resources system 202 stores the relevant role, project assignment, and department-specific flags that inform downstream access decisions. When an employee transitions from one department to another or exits the organization, the human resources system 202 updates the employment status accordingly.
The enterprise user 204 may be an internal administrative system, service entity, or administrative user operating within the enterprise infrastructure that fetches the employee details from the human resources system 202. The employee details include identity attributes, department-based entitlements, project-specific roles, and policy flags that define a scope of application access for the employee. For example, the enterprise user 204 may detect that an employee assigned to a financial audit project is eligible for limited access to an enterprise financial ledger application while being denied access to engineering development platforms.
The identity control system 206 serves as a decision engine that interprets enterprise-defined access control policies and determines an eligible set of applications each employee is permitted to access. The identity control system 206 may utilize static policy rules, dynamic access condition evaluation, or role-based access control logic to determine entitlements. For example, a data analyst joining a compliance team may be granted view-only access to compliance dashboards, whereas a senior compliance officer may be granted editing and submission privileges. Based on the determined scope of access, the identity control system 206 triggers either a credential creation task upon employee onboarding or a revocation task upon employee exit or access expiration.
The application access policy repository 208 is a dedicated storage layer or configuration store that maintains policy documents, compliance checklists, access templates, and entitlement definitions. The application access policy repository 208 may include per-application authentication modes, credential types, and compliance requirements. For example, a customer relationship management system may require multi-factor authentication using time-based tokens, while a regulatory submission platform may require access through a secure virtual private network (VPN). The identity control system 206 consults the application access policy repository 208 when making determinations regarding access provisioning or deprovisioning.
The AI agent system 210 functions as an intelligent execution layer that translates an intent derived from the identity control system 206 into a series of task executions across multiple heterogeneous applications. The AI agent system 210 orchestrates a credential creation, modification, or removal process and communicates with both connected and disconnected applications. For example, a customer relationship management platform may be a sanctioned and programmatically accessible application supporting standard authentication protocols, while a third-party treasury interface hosted on a partner cloud infrastructure may require interface automation using RPA or semantic uniform resource locator (URL)-based mapping. The AI agent system 210 handles both categories with equal agility, providing consistent and audit-friendly execution.
The set of applications 212, comprising application 1 through application N, represents a portfolio of enterprise tools and applications that employees may need to access. The set of applications 212 includes customer relationship management platforms, regulatory submission platforms, internal operational tools hosted on private cloud, and third-party partner interfaces. Some applications within the set of applications 212 are classified as sanctioned and support direct programmatic access, while other applications may be unlisted, disconnected, or legacy systems that do not expose modern application programming interfaces. For example, a sanctioned system may allow secure identity federation, while an unsanctioned procurement portal may require screen-based automation or manual form parsing.
The access manager 214 supervises overall task execution and maintains auditability. The access manager 214 verifies that credential lifecycle management activities, including provisioning, updates, and revocations, are completed successfully, logged appropriately, and aligned with enterprise compliance expectations. For example, in scenarios where a deprovisioning task fails due to an unreachable application, the access manager 214 may escalate an issue to an administrator and trigger a retry loop. The access manager 214 may also enforce temporal access constraints, including expiring credentials issued for short-term contractors, and may maintain versioned audit logs to support forensic analysis and compliance reporting.
The identity vault 216 functions as a secure storage module for credentials issued to enterprise users. The identity vault 216 may store usernames, passwords, application programming interface tokens, multi-factor secrets, and biometric templates. For example, when an employee is granted access to a cloud database, generated credentials are securely stored in the identity vault 216 in compliance with encryption-at-rest policies, audit logging, access expiration, and role-based retrieval constraints. The identity vault 216 may support zero-trust integrations with endpoint agents to facilitate secure credential injection at runtime.
The components of the system 200 operate in coordination to provide seamless, policy-compliant, and secure identity orchestration within complex enterprise environments. The AI-driven architecture of the system 200 provisions user access in accordance with verified human resources data and policy data, and executes tasks including application programming interface key refresh and user deactivation proactively, even for applications not directly connected to enterprise identity systems.
The architecture comprises an agentic AI platform 312 containing an agentic AI engine 314. The agentic AI engine 314 comprises a perception module 316, a planning module 318, and an execution module 320. The perception module 316 is configured to detect and interpret user interface elements rendered on graphical interfaces of enterprise applications using computer vision and image recognition techniques. The planning module 318 is configured to decompose identity governance intents into structured execution plans by interpreting user instructions, evaluating policy constraints, and determining a sequence of actions to be performed across target enterprise applications. The execution module 320 is configured to carry out actions determined by the planning module 318 by generating and executing simulated user interactions with the enterprise application interfaces, including mouse-click simulation, keyboard-input simulation, and form-field population.
The agentic AI platform 312 further comprises a security solution module 322, an identity compliance module 324, an identity and access module 326, a privileged access module 328, and a non-human identity manager 330. The security solution module 322 provides security validation and enforcement across platform workflows. The identity compliance module 324 monitors and enforces compliance with regulatory and organizational access control policies. The identity and access module 326 manages user identity lifecycle operations including provisioning, deprovisioning, and entitlement review. The privileged access module 328 manages elevated access privileges and privileged session controls. The non-human identity manager 330 manages credentials and access privileges associated with service accounts, machine identities, and automated processes.
The architecture comprises a user interface 332 including a dashboard 334 and configuration tools 336 accessible to enterprise administrators and compliance personnel. The architecture is communicatively coupled to databases 338 including an enterprise database 340 and an internal database 342 that store identity records, access policies, credential metadata, and audit logs.
Agentic AI Credential Automation SystemThe agentic AI platform 312, as depicted in
An identity control system (ICS) 352 receives the user identity attributes from the enterprise HR system 350 and evaluates organizational access policies. The identity control system 352 determines application access, triggers credential creation or removal, and stores policy metadata. For example, upon offboarding, the identity control system 352 triggers workflows to remove application-level access, which are then delegated to the credential automation subsystem.
An agentic AI credential automation module 354 functions as a middleware execution engine configured to translate access decisions into executable actions. The agentic AI credential automation module 354 receives the employee data, the roles, and the access entitlements from the identity control system 352 and serves as a core protocol abstraction layer capable of interacting with a heterogeneous application ecosystem. The agentic AI credential automation module 354 orchestrates credential issuance, revocation, and updates across both connected and disconnected systems.
The agentic AI credential automation module 354 comprises an agent execution manager 356, an interface automation module 358, a credential storage workflow engine 360, a security and access mediator 362, and a notification and alert manager 364. The agent execution manager 356 initiates workflows and tracks execution status by decomposing incoming identity intents into atomic sub-tasks and routing the sub-tasks to appropriate modules. For example, upon receiving an instruction to generate a new application programming interface key, the agent execution manager 356 may trigger the credential storage workflow engine 360 and a credential generation workflow in parallel.
The interface automation module 358 facilitates GUI-level automation for applications that lack standard application programming interface connectivity. The interface automation module 358 includes logic for identifying GUI elements including input fields, buttons, dropdowns, and dynamic frames using element locators. The interface automation module 358 enables the agentic AI platform 312 to perform programmatic interactions with external systems in a human-like manner.
The credential storage workflow engine 360 manages secure handling and routing of credentials. The credential storage workflow engine 360 supports vault write operations to a centralized credential vault 370 and application-side write operations via GUI interfaces. For example, a newly created application programming interface key for a field service application may be stored in the credential vault 370 while also being simultaneously injected into an application user management portal.
The security and access mediator 362 logs access events, performs policy validations, and manages credential routing during workflow execution. The security and access mediator 362 monitors transactional success or failure and is configured to enforce conditional logic including time-based access expiry and escalation rules.
The notification and alert manager 364 handles completion alerts and client notifications across the agentic AI platform 312. Upon successful completion of credential-related operations, the notification and alert manager 364 sends alerts to appropriate stakeholders including system administrators, compliance officers, or application owners.
Producer applications 366 represent internal enterprise systems configured to generate credentials, including credential generators, application programming interface key generators, and internal administrative user interfaces. Consumer applications 368 are target systems that rely on generated credentials for user access, including regulatory submission applications, customer relationship management platforms, field operations tools, and treasury systems. The agentic AI credential automation module 354 interacts with both the producer applications 366 and the consumer applications 368 via GUI-based interaction.
The credential vault 370 serves as a centralized storage repository for enterprise credentials. The credential vault 370 is updated via the credential storage workflow engine 360 and supports credential rotations and time-to-live (TTL) enforcement. The credential vault 370 stores credentials including passwords, application programming interface keys, and authentication tokens in an encrypted format, and maintains credentials that are valid and within expiration boundaries.
The agentic AI platform 312, as depicted in
The architectures described above with reference to
The autonomous agents driven by LLMs introduce a verification requirement that does not arise in conventional programmatic automation. LLMs are non-deterministic by design, and the structured sequence of UI actions that an LLM produces for a given task may vary across runs, across application updates, and across interface state transitions. In regulated and high-stakes enterprise environments, including the environments addressed by the agentic AI platform 312 of
To address this verification requirement within the agentic AI platform described above, the technology disclosed introduces a deterministic validation system that operates as a control layer interposed between the LLM that produces the proposed UI actions and the target application graphical user interface on which the proposed UI actions would be executed. The deterministic validation system filters task guides for structural reproducibility before the task guides are transmitted to the LLM, intercepts each proposed UI action before the proposed UI action reaches the target application graphical user interface, compares both the target UI element and the surrounding application page state against verified references, and permits execution of the proposed UI action only when both comparisons satisfy one or more predetermined similarity thresholds. The deterministic validation system further records each validation decision, together with associated identifiers, timestamps, and reasoning context, in a tamper-evident audit record that supports compliance review and operational auditing. The deterministic validation system, its sub-modules, and the validation processes performed thereby are described in greater detail below with reference to
The system 400 comprises a task guide generation module 408 and a validation engine 410. The task guide generation module 408 is operatively configured to generate a task guide 414 based on input from at least one of a recorded video 402 of user interaction with an application, a predefined graph 404 of available application functions, or a manually created task flow 406. The task guide 414 comprises a structured sequence of user interface (UI) actions that represent the intended automation workflow.
The recorded video 402 may comprise a recording of user interactions captured during a prior session in which a human operator performed the workflow against the application, including cursor movements, click events, keystrokes, navigation events, and modal-dialog interactions. The predefined graph 404 may comprise a state-transition graph, a directed acyclic graph (DAG), or a decision tree that enumerates available application functions as nodes and permissible transitions between the functions as edges. The manually created task flow 406 may comprise a sequence of authored steps describing the intended workflow, optionally parameterized with expected post-conditions that the validation engine 410 may use as reference values during validation, as described in greater detail below.
In one embodiment, the task guide generation module 408 is further configured to select a validatable graph from a library of candidate graphs and to filter out candidate graphs from the library that do not satisfy a determinism threshold. The determinism threshold may be defined based on at least one of path convergence or node activation entropy. Path convergence measures the degree to which independent execution traces of the candidate graph converge to a consistent end state under similar interface conditions. Node activation entropy measures the variability of node activation patterns across executions, with lower entropy indicating greater determinism.
The validation engine 410 receives the task guide 414 from the task guide generation module 408 and is configured to evaluate whether the task guide 414 corresponds to a validatable graph prior to transmission of the task guide 414 to the LLM 412. The evaluating comprises computing a determinism score for the task guide 414 based on at least one of path convergence or node activation entropy and comparing the determinism score against the determinism threshold. The task guide 414 is transmitted to the LLM 412 as a validated task guide only when the determinism score satisfies the determinism threshold, so that task guides that fail to satisfy the determinism threshold are filtered out and are not transmitted to the LLM 412.
The LLM 412 receives the validated task guide and generates a target UI element 426 or a proposed UI action that the LLM 412 intends to perform against the target application graphical user interface 428. The LLM 412 may comprise any sufficiently capable large language model, including without limitation a transformer-based language model, a multimodal language model, an instruction-tuned model, or a domain-fine-tuned model. The LLM 412 interprets the validated task guide as a structured instruction and translates the instruction into a sequence of proposed UI actions for execution.
The system 400 further comprises an automation agent or GUI agent 430 operatively coupled to the LLM 412 and to the validation engine 410. The automation agent or GUI agent 430 is configured to capture a current application state 420 of the target application graphical user interface 428 by performing a live interface-state capture 434. The live interface-state capture 434 may include capturing a screenshot of the target application graphical user interface 428, capturing a structural representation of the target application graphical user interface 428, capturing a document object model (DOM) tree snapshot, capturing a layout-based map of UI components, or any combination thereof.
The automation agent or GUI agent 430 intercepts the proposed UI action from the LLM 412 and provides the proposed UI action as an intercepted proposed UI action 432 to the validation engine 410 before the proposed UI action reaches the target application graphical user interface 428. The interception allows the validation engine 410 to evaluate the proposed UI action against verified references before execution against the target application graphical user interface 428, so that no proposed UI action reaches the target application graphical user interface 428 without first passing through the validation engine 410.
The validation engine 410 is configured to compare the target UI element 426 in the current application state 420 with a reference UI element using one or more element-similarity measures. The validation engine 410 is further configured to determine whether the current application state 420 matches a reference page state. The validation engine 410 permits execution of an action of the sequence of UI actions only if both the target UI element 426 and the current application state 420 are independently determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds. Failure of either the target UI element 426 to match the reference UI element or the current application state 420 to match the reference page state alone is sufficient to deny execution permission.
The validation engine 410 issues a permit/deny decision output based on the outcome of the comparing and determining operations. When the validation engine 410 issues a permit decision, the corresponding UI action is forwarded to the target application graphical user interface 428 as a permitted simulated UI interaction 436. The automation agent or GUI agent 430 may carry out the permitted simulated UI interaction 436 by simulating a click, a text-entry event, a keystroke, a navigation event, a modal-dialog interaction, or any combination thereof against the target application graphical user interface 428. When the validation engine 410 issues a deny decision, the proposed UI action is not transmitted to the target application graphical user interface 428, and the validation engine 410 may halt, terminate, reroute, or escalate the workflow, as described in greater detail below.
The reference UI element and the reference page state used by the validation engine 410 are obtained from an expected state reference 438. The expected state reference 438 may be derived from one of a deterministic execution cache 416, an expected post-condition 422, an expected-to-be-observed value 424, or a synthetically generated validated task graph 440. The expected state reference 438 thereby supports historical, task-guide-based, and predictive validation sources within a single coordinated architecture.
The deterministic execution cache 416 stores verified UI elements, corresponding actions, and associated page states as element-action-state triplets from one or more prior verified executions. The deterministic execution cache 416 may be implemented as a key-value store, a relational database, an in-memory data structure, or a distributed cache, and may be co-located with the validation engine 410 or hosted on a separate storage subsystem accessible to the validation engine 410. The validation engine 410 utilizes the deterministic execution cache 416 to quickly assess whether a proposed UI action has already been validated in a similar context, thereby optimizing runtime performance and reducing validation latency.
The expected post-condition 422 may comprise data assigned within the task guide 414 specifying an expected post-execution state of the target application graphical user interface 428 following a particular UI action. The expected-to-be-observed value 424 may comprise a specific value, attribute, or interface artifact that the validation engine 410 expects to observe in the current application state 420 following a successful action. The synthetically generated validated task graph 440 may comprise a graph generated by an offline generative process and pre-validated against simulated or modeled interface conditions, allowing the validation engine 410 to perform predictive validation against expected interface states that have not been previously executed in production. The synthetically generated validated task graph 440 supports embodiments in which historical references are unavailable, for example on first execution of a new workflow.
In some embodiments, the reference UI element and the reference page state are obtained from one of (i) a previously verified execution stored in the deterministic execution cache 416, or (ii) one or more expected post-execution conditions explicitly assigned within the task guide 414. The one or more expected post-execution conditions may specify at least one expected UI element, expected UI state, expected page state, or expected state transition. The dual-source reference pathway enables the validation engine 410 to operate continuously, including on a first execution of a new workflow in which no prior verified execution exists for a particular UI action, without requiring a warm-up period during which the validation engine 410 has nothing to compare against.
According to one embodiment, the deterministic validation system 400 enables a closed-loop, reference-anchored, auditable execution architecture for LLM-driven UI automation. The action that the LLM 412 generates as a proposed UI action is the action that is gated by the validation engine 410 against verified references. The action that passes the gate is the action that is executed against the target application graphical user interface 428 as the permitted simulated UI interaction 436. The result that is observed by the live interface-state capture 434 is the result that may be recorded in association with the validated action. The deterministic validation system 400 thereby supports reproducibility, traceability, and policy conformance for enterprise automation workflows guided by a large language model, including in regulated environments where pre-execution validation, dual-axis matching, and dual-source references are operationally required.
The method 500 begins at start 501 and concludes at end 530.
The method 500 begins at step 502, in which a task guide is generated. The task guide comprises a sequence of user interface (UI) actions and is generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow. The recorded video may be parsed by a task guide generation module to extract the sequence of UI actions performed by the user, including cursor movements, click events, text-entry events, keystrokes, navigation events, and modal-dialog interactions. The predefined graph may be retrieved from a library of candidate graphs maintained for one or more applications. The manually created task flow may comprise a sequence of authored steps optionally parameterized with one or more expected post-execution conditions.
At step 504, a determinism score is computed for the task guide based on at least one of path convergence or node activation entropy. The determinism score quantifies the degree to which the task guide produces repeatable results under similar interface conditions. Path convergence may be measured by counting the number of independent execution traces of the task guide that converge to a consistent end state across a set of trial runs. Node activation entropy may be measured by computing the information entropy of node activation distributions across the trial runs, with lower entropy indicating greater determinism.
At step 506, the validation engine determines whether the determinism score satisfies a determinism threshold. The first gate of the two-gate validation process is implemented at step 506. The determinism threshold may be a numerical value defined by a system operator, by a policy, or by an automated calibration process. If the determinism score satisfies the determinism threshold, the method 500 advances to step 510. If the determinism score does not satisfy the determinism threshold, the method 500 advances to step 508.
At step 508, when the determinism score does not satisfy the determinism threshold, the candidate graph is rejected, an alternate graph is selected from the library of candidate graphs, or the task guide is routed for review. The first gate at step 506 thereby prevents insufficiently deterministic or non-validatable graphs from reaching the LLM or from being used as execution scaffolding for the automation workflow.
At step 510, the validated task guide is transmitted to the LLM. The LLM may comprise a transformer-based language model, a multimodal language model, an instruction-tuned model, or a domain-fine-tuned model. The LLM receives the validated task guide as a structured instruction and interprets the structured instruction to produce a sequence of proposed UI actions for execution against the target application graphical user interface.
At step 512, an LLM-proposed UI action is received. The LLM-proposed UI action may comprise a click on a target UI element, a text entry into a target UI element, a navigation event triggered by a target UI element, a modal-dialog interaction with a target UI element, or any combination thereof.
At step 514, a live application state is captured before action execution. The live application state may be captured by an automation agent or GUI agent coupled to the target application graphical user interface. The capturing may comprise capturing a screenshot of the target application graphical user interface, capturing a document object model (DOM) tree snapshot of the target application graphical user interface, capturing a layout-based map of UI components of the target application graphical user interface, or any combination thereof.
At step 516, an expected state reference is retrieved. The expected state reference comprises a reference UI element and a reference page state, and may be retrieved from a deterministic execution cache, from one or more expected post-execution conditions explicitly assigned within the task guide, or from a synthetically generated validated task graph. The deterministic execution cache stores verified UI elements, corresponding actions, and associated page states as element-action-state triplets from one or more prior verified executions. The one or more expected post-execution conditions may specify at least one expected UI element, expected UI state, expected page state, or expected state transition.
At step 518, a target UI element in the current application state is compared with the reference UI element using one or more element-similarity measures. The element-similarity measures may include an embedding-vector distance computed between vector embeddings of the target UI element and the reference UI element using a neural-network-based similarity model, an identifier-metadata comparison between identifier metadata of the target UI element and identifier metadata of the reference UI element selected from an element identifier, a document object model (DOM) position, label text, or a visual bounding box, or any combination thereof. The output of step 518 is an element match result indicating whether the target UI element matches the reference UI element within one of one or more predetermined similarity thresholds.
At step 520, the current application state is compared with the reference page state. The comparing may be performed using a similarity metric based on at least one of a visual representation comprising a full screenshot or a partial screenshot of a page corresponding to the reference page state, or a structural representation comprising a layout-based map of UI components including positions, types, and interrelationships of the UI components. The reference page state may further comprise a composite structure derived from at least two screenshots of an application window captured at different time intervals. The output of step 520 is a page-state match result indicating whether the current application state matches the reference page state within one of the one or more predetermined similarity thresholds.
At step 522, the validation engine determines whether both the element match result and the page-state match result satisfy the one or more predetermined similarity thresholds. The second gate of the two-gate validation process is implemented at step 522. Failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission. If both matches satisfy the thresholds, the method 500 advances to step 524. If either match does not satisfy the threshold, the method 500 advances to step 526.
At step 524, when both matches satisfy the thresholds, the action is permitted to the target application. The action may be carried out by the automation agent or GUI agent as a permitted simulated UI interaction against the target application graphical user interface, including a simulated click, a simulated text-entry event, a simulated keystroke, a simulated navigation event, a simulated modal-dialog interaction, or any combination thereof.
At step 526, when either match does not satisfy the threshold, the validation engine suspends, terminates, reroutes, or escalates the workflow. Suspension may comprise pausing LLM execution pending further analysis. Termination may comprise halting the workflow and reporting a validation failure. Rerouting may comprise invoking a fallback execution path comprising at least one of an exception-handling routine, an alternate sequence of UI actions, or an invocation of human-in-the-loop review. Escalation may comprise brokering a secure human review session in which a human system owner is presented with the current UI state, the proposed UI action, and the expected state reference, as described in greater detail below with reference to
At step 528, after the validation operations of steps 518, 520, and 522 are completed, the deterministic execution cache or an audit record is updated. Updating the deterministic execution cache may comprise writing a verified element-action-state triplet to the deterministic execution cache when the action passes validation, thereby allowing the deterministic execution cache to supply the reference UI element and the reference page state for one or more subsequent executions of the same or similar UI action. Updating the audit record may comprise tagging the validated UI action with one or more identifiers, one or more timestamps, and an outcome status, and storing one or more reasoning trails, one or more visual cues, and one or more decision states associated with the validated UI action in an audit record associated with the validated action. The audit record supports root-cause analysis, model behavior fine-tuning, and regulatory auditability of the validated UI action.
According to one embodiment, the method 500 thereby implements a closed-loop, reference-anchored validation pipeline in which the first gate at step 506 admits only task guides that satisfy the determinism threshold and the second gate at step 522 permits only UI actions for which both the target UI element and the current application state match the corresponding references within the one or more predetermined similarity thresholds. The method 500 may iterate over the sequence of UI actions in the task guide, repeating steps 512 through 528 for each subsequent LLM-proposed UI action, until the task guide is completed, terminated, or escalated.
The architecture 600 comprises a graph validity sub-module 602, a reference-source selector 604, a UI element comparison sub-module 606, a page-state comparison sub-module 608, an execution gating sub-module 610, a cache/audit update sub-module 612, a dynamic masking and structural-semantic extraction sub-module 614, and an escalation management sub-module 616. The architecture 600 receives a task guide 414, an expected state reference 438, a deterministic execution cache 416, a proposed UI action 426 from a large language model (LLM) 412, and a current application state 420 from an automation agent or GUI agent 430. The architecture 600 produces a permit/deny decision 418 that governs whether the proposed UI action 426 is permitted to reach the target application graphical user interface or denied.
The graph validity sub-module 602 is configured to evaluate whether the task guide 414 corresponds to a validatable graph prior to transmission of the task guide 414 to the LLM 412. The graph validity sub-module 602 computes a determinism score for the task guide 414 based on at least one of path convergence or node activation entropy and compares the determinism score against a determinism threshold. The graph validity sub-module 602 may be implemented as a graph-theoretic analyzer that traverses the nodes and edges of the task guide 414, computes the path convergence and node activation entropy metrics, and applies a configured threshold comparison. The graph validity sub-module 602 thereby gates the transmission of the task guide 414 to the LLM 412 so that the task guide 414 is transmitted to the LLM 412 as a validated task guide only when the determinism score satisfies the determinism threshold, and so that task guides that fail the determinism threshold are filtered out and are not transmitted to the LLM 412.
The reference-source selector 604 is configured to obtain the expected state reference 438 used as a reference UI element and a reference page state for downstream comparison operations. The reference-source selector 604 may select the expected state reference 438 from one of (i) a previously verified execution stored in the deterministic execution cache 416, or (ii) one or more expected post-execution conditions explicitly assigned within the task guide 414. The one or more expected post-execution conditions may specify at least one expected UI element, expected UI state, expected page state, or expected state transition. The reference-source selector 604 may further obtain the expected state reference 438 from a synthetically generated validated task graph in embodiments where historical references are unavailable, for example on a first execution of a new workflow. The reference-source selector 604 thereby enables the architecture 600 to operate against historical references, task-guide-specified references, or pre-validated synthetic references within a single coordinated architecture.
The UI element comparison sub-module 606 is configured to compare a target UI element in the current application state 420 with the reference UI element using one or more element-similarity measures. The UI element comparison sub-module 606 receives the target UI element from the current application state 420 and the reference UI element from the reference-source selector 604, and produces an element match result. In one embodiment, the UI element comparison sub-module 606 generates, using a neural-network-based similarity model, vector embeddings of the target UI element and the reference UI element, the vector embeddings capturing semantic, visual, and structural properties of the respective UI elements, and determines an embedding-vector distance between the vector embeddings. In another embodiment, the UI element comparison sub-module 606 compares identifier metadata of the target UI element with identifier metadata of the reference UI element, the identifier metadata being selected from an element identifier, a document object model (DOM) position, label text, or a visual bounding box. The UI element comparison sub-module 606 may further combine embedding-based and identifier-metadata-based comparisons to produce a composite element-match result, allowing the architecture 600 to validate UI elements robustly across layout changes, wording updates, and rendering differences due to application updates or localization.
The page-state comparison sub-module 608 is configured to determine whether the current application state 420 matches the reference page state. The page-state comparison sub-module 608 produces a page-state match result and may use a similarity metric based on at least one of a visual representation or a structural representation of a page corresponding to the reference page state. The visual representation may comprise a full screenshot or a partial screenshot of the page. The structural representation may comprise a layout-based map of UI components including positions, types, and interrelationships of the UI components. The page-state comparison sub-module 608 may further compare a composite structure derived from at least two screenshots of an application window captured at different time intervals against the reference page state, so that transient UI features including a confirmation dialog and a dropdown expansion register in the comparison rather than producing false negatives from single-frame snapshots.
The execution gating sub-module 610 is configured to permit or deny execution of the proposed UI action 426 based on the element match result from the UI element comparison sub-module 606 and the page-state match result from the page-state comparison sub-module 608. The execution gating sub-module 610 implements a conjunctive logic in which both the target UI element and the current application state 420 must be independently determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds. Failure of either the target UI element to match the reference UI element or the current application state 420 to match the reference page state alone is sufficient to deny execution permission. The execution gating sub-module 610 outputs the permit/deny decision 418, which controls whether the proposed UI action 426 reaches the target application graphical user interface as a permitted simulated UI interaction.
The cache/audit update sub-module 612 is configured to update the deterministic execution cache 416 and an audit record following validation of the proposed UI action 426. When the execution gating sub-module 610 issues a permit decision, the cache/audit update sub-module 612 may write a verified element-action-state triplet to the deterministic execution cache 416, the verified element-action-state triplet including the verified UI element, the corresponding action, and the associated page state. The cache/audit update sub-module 612 may further tag each action validated by the architecture 600 with one or more identifiers, one or more timestamps, and an outcome status, and may store, in the audit record associated with the validated action, one or more reasoning trails, one or more visual cues, and one or more decision states associated with the validated action. The audit record supports root-cause analysis, model behavior fine-tuning, and regulatory auditability of the validated action.
The dynamic masking and structural-semantic extraction sub-module 614 is configured to mask variable data payloads in the current application state 420 and to extract a structural-semantic representation of the page corresponding to the current application state 420. The dynamic masking and structural-semantic extraction sub-module 614 may detect variable data payloads including a user name, a transaction amount, a date or time value, a transaction identifier, or other user-specific, transaction-specific, or time-specific values, and may mask the variable data payloads to produce masked field regions. The structural-semantic representation may comprise a layout-based map of UI components together with extracted semantic intent of the UI components. The dynamic masking and structural-semantic extraction sub-module 614 may provide the structural-semantic representation to the page-state comparison sub-module 608 so that the page-state comparison sub-module 608 may validate the structural and semantic context of the page corresponding to the current application state 420 without producing a false validation failure caused by variation in the dynamic data fields that may legitimately differ between executions.
The escalation management sub-module 616 is configured to invoke escalation when validation fails or when the architecture 600 encounters an unrecognized state. The escalation management sub-module 616 may suspend LLM execution, broker a secure human review session, and present a current UI state, the proposed UI action 426, and the expected state reference 438 to a human system owner. The escalation management sub-module 616 may receive a decision from the human system owner indicating whether the new state is valid. When the new state is confirmed as valid, the escalation management sub-module 616 may direct the cache/audit update sub-module 612 to update a validated task graph and to update the expected state reference 438 or the deterministic execution cache 416, after which the workflow may resume. When the new state is not approved, the escalation management sub-module 616 may abort the workflow. The escalation management sub-module 616 thereby provides a controlled human-supervised adaptation path for situations in which deterministic validation alone cannot resolve the proposed UI action 426.
The architecture 600 may further include one or more interfaces to external systems, including the LLM 412, the automation agent or GUI agent 430, and the deterministic execution cache 416. The LLM 412 may comprise a transformer-based language model, a multimodal language model, an instruction-tuned model, or a domain-fine-tuned model. The automation agent or GUI agent 430 may be operatively coupled to a target application graphical user interface and may be configured to capture the current application state 420, intercept the proposed UI action 426 generated by the LLM 412, and carry out a permitted simulated UI interaction against the target application graphical user interface when the permit/deny decision 418 indicates a permit decision. The deterministic execution cache 416 may be implemented as a key-value store, a relational database, an in-memory data structure, or a distributed cache, and may be co-located with the validation engine architecture 600 or hosted on a separate storage subsystem accessible to the architecture 600.
According to one embodiment, the validation engine architecture 600 thereby decomposes the validation engine into eight discrete functional sub-modules, each operatively coupled to the others through defined inputs and outputs. The decomposition allows each comparison stage to be implemented, audited, and updated independently without disturbing the operation of the other sub-modules, and allows the validation engine architecture 600 to evolve as the underlying similarity models, graph metrics, dynamic masking techniques, and storage architectures improve. The validation engine architecture 600 collectively closes the verification loop on each proposed UI action 426 produced by the LLM 412 by admitting only task guides that satisfy the determinism threshold at the graph validity sub-module 602, comparing UI elements and page states against verified references at the UI element comparison sub-module 606 and the page-state comparison sub-module 608, gating execution through the conjunctive logic of the execution gating sub-module 610, updating the deterministic execution cache 416 and the audit record through the cache/audit update sub-module 612, masking dynamic data through the dynamic masking and structural-semantic extraction sub-module 614, and invoking escalation through the escalation management sub-module 616 when required.
The graph validity gate 700 begins at step 702, in which a library of candidate graphs is accessed. The library of candidate graphs may comprise a plurality of candidate task graphs maintained for one or more target applications, where each candidate task graph represents a potential workflow that may be performed against the target application graphical user interface. The library of candidate graphs may be stored as a structured collection of candidate task graphs in a persistent data store, including a key-value store, a relational database, a graph database, a file-based repository, or any combination thereof. In some embodiments, the library of candidate graphs is populated by the task guide generation module 408 of
At step 704, a candidate graph is selected from the library of candidate graphs for the task guide. The selecting may comprise matching a workflow objective associated with the task guide against metadata of the candidate task graphs in the library of candidate graphs and selecting a candidate task graph that most closely matches the workflow objective. The selecting may further comprise selecting a plurality of candidate task graphs for evaluation when more than one candidate task graph matches the workflow objective, and processing the plurality of candidate task graphs through the graph validity gate 700 in sequence or in parallel until a candidate task graph satisfies the determinism threshold.
At step 706, a determinism score is computed for the selected candidate graph. The determinism score quantifies the degree to which the candidate graph produces repeatable results under similar interface conditions. The determinism score may be computed as a scalar value, a vector of values, or a structured score comprising a plurality of component metrics, depending on the configuration of the graph validity gate 700. The computing of the determinism score includes determining at least one of a path convergence metric at sub-step 706a or a node activation entropy metric at sub-step 706b.
At sub-step 706a, the path convergence metric is determined. The path convergence metric measures the degree to which independent execution traces of the candidate graph converge to a consistent end state under similar interface conditions. In one embodiment, the path convergence metric is computed by simulating or replaying the candidate graph across a plurality of trial runs, recording an end state for each trial run, and computing the proportion of trial runs that converge to a consistent end state. In another embodiment, the path convergence metric is computed analytically by traversing the nodes and edges of the candidate graph and identifying convergence points at which a plurality of paths through the candidate graph terminate at the same node or at a node within an equivalence class. A higher path convergence metric value may indicate that the candidate graph reliably converges to a consistent end state across runs and is therefore more deterministic.
At sub-step 706b, the node activation entropy metric is determined. The node activation entropy metric measures the variability of node activation patterns across executions of the candidate graph. In one embodiment, the node activation entropy metric is computed by recording, across a plurality of trial runs, which nodes of the candidate graph are activated during each trial run, and computing an information entropy of the node activation distribution across the trial runs. A lower node activation entropy value may indicate that the candidate graph activates a consistent set of nodes across runs and is therefore more deterministic. The information entropy may be computed as a Shannon entropy, a Renyi entropy, or another suitable entropy measure configured by a system operator.
The determinism score computed at step 706 may comprise the path convergence metric alone, the node activation entropy metric alone, or a combination of the path convergence metric and the node activation entropy metric. In embodiments in which the determinism score comprises a combination of the metrics, the combination may be a weighted sum, a weighted product, a Boolean combination, or any other suitable aggregation function configured by the system operator.
At step 708, the determinism score is compared to a determinism threshold. The determinism threshold may be a numerical value defined by the system operator, by a policy, or by an automated calibration process. The determinism threshold may further comprise a vector of threshold values when the determinism score comprises a vector of metric values, where each component of the determinism score is compared against a corresponding component of the determinism threshold.
At step 710, the graph validity gate 700 determines whether the determinism score satisfies the determinism threshold. If the determinism score satisfies the determinism threshold, the graph validity gate 700 advances to step 714. If the determinism score does not satisfy the determinism threshold, the graph validity gate 700 advances to step 712.
At step 712, when the determinism score does not satisfy the determinism threshold, the candidate graph is filtered out from the library of candidate graphs and the task guide is rejected for LLM transmission. The graph validity gate 700 thereby filters out candidate graphs that are insufficiently deterministic or that do not correspond to a validatable graph, and prevents the LLM from being asked to execute a task guide that is structurally non-reproducible. In some embodiments, the graph validity gate 700 may further select an alternate candidate task graph from the library of candidate graphs and re-execute the graph validity gate 700 from step 704 until a candidate task graph is found that satisfies the determinism threshold. In some embodiments, the graph validity gate 700 may route the rejected task guide for review by the system operator or by an automated re-authoring process.
At step 714, when the determinism score satisfies the determinism threshold, the candidate graph is accepted and the task guide is passed for LLM transmission. The task guide passed at step 714 is the validated task guide that the LLM uses to produce a sequence of proposed UI actions for execution against the target application graphical user interface, as described above with reference to
According to one embodiment, the graph validity gate 700 thereby admits only candidate task graphs whose determinism score satisfies the determinism threshold, and rejects candidate task graphs whose determinism score does not satisfy the determinism threshold. The graph validity gate 700 is positioned in the workflow before the LLM receives the task guide, so that the LLM is not asked to execute workflows that the validation engine 410 already knows are structurally non-reproducible. The pre-LLM positioning of the graph validity gate 700 allows the system to filter unreliable workflows at the input of the LLM rather than scoring the LLM's output after the LLM has produced it, and supports embodiments in which the system maintains reproducibility, traceability, and policy conformance for LLM-driven automation workflows.
The UI element comparison process 800 begins at step 802, in which the target UI element is extracted from the current application state. The current application state may comprise a live capture of the target application graphical user interface obtained by the automation agent or GUI agent 430 of
At step 804, the reference UI element is retrieved. The reference UI element is retrieved from the expected state reference produced by the reference-source selector 604 of
The UI element comparison process 800 includes an embedding-based comparison path and an identifier metadata comparison path. The two comparison paths may be executed in parallel, in sequence, or selectively based on configuration of the validation engine 410, and the outputs of the two comparison paths may be aggregated into an element match/no-match result.
In the embedding-based comparison path, the UI element comparison process 800 proceeds from step 802 and step 804 to step 806 and step 808. At step 806, a target UI element embedding vector is generated for the target UI element using a neural-network-based similarity model. At step 808, a reference UI element embedding vector is generated for the reference UI element using the neural-network-based similarity model. The neural-network-based similarity model may comprise a transformer-based encoder, a convolutional encoder, a graph neural network encoder, a multimodal encoder, or any combination thereof, and is configured to project a UI element into a vector space in which semantic, visual, and structural properties of the UI element are encoded as a vector embedding. The vector embeddings capture semantic, visual, and structural properties of the respective UI elements, allowing the UI element comparison process 800 to validate UI elements robustly across layout changes, wording updates, and rendering differences due to application updates or localization.
At step 810, an embedding-vector distance is computed between the target UI element embedding vector and the reference UI element embedding vector. The embedding-vector distance may be computed as a cosine distance, a Euclidean distance, a Mahalanobis distance, a Manhattan distance, or any other suitable distance metric configured for the vector space used by the neural-network-based similarity model.
At step 812, the embedding-vector distance is compared to a similarity threshold. The similarity threshold may be one of one or more predetermined similarity thresholds applied by the validation engine 410, and may be configured by a system operator, by a policy, or by an automated calibration process. The similarity threshold may be expressed as a maximum permissible embedding-vector distance for a match, as a minimum required similarity score derived from the embedding-vector distance, or as a calibrated decision boundary in the vector space.
In the identifier metadata comparison path, the UI element comparison process 800 proceeds from step 802 and step 804 to step 816. At step 816, identifier metadata of the target UI element is compared with identifier metadata of the reference UI element. The identifier metadata is selected from an element identifier 816a, a document object model (DOM) position 816b, label text 816c, or a visual bounding box 816d.
The element identifier 816a may comprise a unique identifier attribute assigned to the UI element by the application, including an HTML id attribute, an accessibility identifier, a control name, or any other suitable identifier supported by the target application graphical user interface. The DOM position 816b may comprise an XPath expression, a CSS selector path, a node index, or any other suitable structural locator that uniquely identifies the position of the UI element within a DOM tree representation of the target application graphical user interface. The label text 816c may comprise textual content rendered within or adjacent to the UI element, including a button caption, a field label, an aria-label attribute value, a tooltip text, or any other suitable textual identifier associated with the UI element. The visual bounding box 816d may comprise a coordinate-based representation of the visual region occupied by the UI element on the target application graphical user interface, including a rectangular bounding box defined by an origin point and dimensions, a polygon, or any other suitable visual region descriptor.
At step 818, an identifier metadata match result is generated based on the comparing performed at step 816. The identifier metadata match result may indicate that the identifier metadata of the target UI element matches the identifier metadata of the reference UI element when at least one of the element identifier, the DOM position, the label text, or the visual bounding box of the target UI element matches the corresponding identifier metadata of the reference UI element within an applicable tolerance. In some embodiments, the identifier metadata match result is generated based on a combination of multiple identifier metadata comparisons, including a requirement that two or more of the element identifier, the DOM position, the label text, and the visual bounding box agree before the identifier metadata match result indicates a match.
At step 820, an element match/no-match result is generated based on the outputs of the embedding-based comparison path and the identifier metadata comparison path. In one embodiment, the element match/no-match result indicates a match when either the embedding-vector distance satisfies the similarity threshold or the identifier metadata match result indicates a match. In another embodiment, the element match/no-match result indicates a match only when both the embedding-vector distance satisfies the similarity threshold and the identifier metadata match result indicates a match. In yet another embodiment, the element match/no-match result is produced by a weighted combination of the two comparison paths, with weights assigned based on confidence scores associated with the embedding-vector distance and the identifier metadata match result. The element match/no-match result is provided to the execution gating sub-module 610 of
According to one embodiment, the UI element comparison process 800 thereby supports both neural-network-based similarity comparison and deterministic metadata-based comparison for UI element validation, allowing the validation engine 410 to validate UI elements through complementary comparison mechanisms. The embedding-based comparison path provides robustness to minor changes in layout, wording, or rendering of the target UI element due to application updates or localization. The identifier metadata comparison path provides deterministic, attribute-level verification when the target UI element exposes structured identifiers. The combination of the two comparison paths allows the UI element comparison process 800 to operate accurately across a range of target applications and target UI elements, including applications that expose structured DOM attributes and applications that expose only rendered visual interfaces.
The page-state comparison process 900 begins by receiving a plurality of screenshots of an application window captured at different time intervals. In one embodiment, a screenshot at time T1 902 is captured at a first time relative to a preceding event, and a screenshot at time Tn 904 is captured at a subsequent time relative to the preceding event. The plurality of screenshots may further include one or more additional screenshots captured at intermediate or subsequent times, and the times at which the screenshots are captured may be selected to span a window of interest during which the target application graphical user interface may exhibit transient features. The screenshots may be captured by an automation agent or GUI agent operatively coupled to the target application graphical user interface and may comprise full-window captures, partial-window captures, or region-of-interest captures depending on the configuration of the page-state comparison process 900.
At step 906, a composite page-state structure is generated from the plurality of screenshots received at step 902 and step 904. The composite page-state structure is a structure derived from at least two screenshots of the application window captured at different time intervals. The composite page-state structure may capture temporal transitions, modal overlays, and state-dependent changes that are not visible in a single screenshot frame, including a confirmation dialog and a dropdown expansion that may appear, disappear, or change content during the window of interest. The composite page-state structure may be implemented as a stack of aligned screenshots, a difference map between sequential screenshots, a temporal collage in which transient regions are highlighted, or any other suitable composite representation that preserves the temporal dimension of the page state.
The composite page-state structure produced at step 906 is provided to a dynamic-data masking module 907. The dynamic-data masking module 907 is configured to identify variable data payloads 907a in the composite page-state structure, to generate masked field regions 907b that cover the variable data payloads 907a, and to produce a structural-semantic page representation 907c.
Variable data payloads 907a refer to portions of the composite page-state structure that contain content that may legitimately vary between executions of the workflow without indicating that the underlying page state has changed in a material way. Variable data payloads 907a may include a user name, a transaction amount, a date or time value, a transaction identifier, an account balance, or any other user-specific, transaction-specific, or time-specific value that is rendered within the target application graphical user interface. The dynamic-data masking module 907 may identify the variable data payloads 907a using a trained classifier, a pattern-matching engine, a regular-expression-based detector, a region-based heuristic, or any combination thereof, and may be configured with a list of field types that are designated as variable for a particular target application graphical user interface.
The masked field regions 907b are generated by replacing, occluding, or substituting the variable data payloads 907a in the composite page-state structure with neutral content. In one embodiment, the masked field regions 907b are produced by overlaying a uniform fill pattern over the variable data payloads 907a. In another embodiment, the masked field regions 907b are produced by replacing the variable data payloads 907a with placeholder tokens or canonical reference values. The masking is configured to remove the per-execution variability of the variable data payloads 907a while preserving the structural region within which the variable data payloads 907a were rendered.
The structural-semantic page representation 907c is produced based on the composite page-state structure and the masked field regions 907b. The structural-semantic page representation 907c captures the structural layout of the target application graphical user interface and the semantic intent of the UI components rendered within the target application graphical user interface, while excluding the per-execution variability of the variable data payloads 907a. The structural-semantic page representation 907c may be expressed as a layout-based map of UI components together with semantic descriptors of the UI components, as a structured tree of UI components with associated intent labels, or as any other suitable representation that supports structural and semantic comparison.
The structural-semantic page representation 907c is provided to a visual comparison path 908 and a structural comparison path 910. The two comparison paths may be executed in parallel, in sequence, or selectively based on the configuration of the page-state comparison process 900.
In the visual comparison path 908, the page-state comparison process 900 compares a visual representation of the page corresponding to the current application state with a visual representation of the reference page state. The visual representation may comprise a full screenshot or a partial screenshot of the page corresponding to the reference page state. The visual comparison path 908 may compute a pixel-level similarity score, a structural similarity index, a perceptual similarity score, or any other suitable image-based similarity metric configured for the visual representation.
In the structural comparison path 910, the page-state comparison process 900 compares a structural representation of the page corresponding to the current application state with a structural representation of the reference page state. The structural representation comprises a layout-based map of UI components including positions, types, and interrelationships of the UI components. The structural comparison path 910 may compute a graph-based similarity score over the layout-based map, an attribute-by-attribute comparison over the UI components, a positional alignment score, or any other suitable structural similarity metric configured for the structural representation.
At step 912, a page-state match determination is performed based on the outputs of the visual comparison path 908 and the structural comparison path 910. The page-state match determination may combine the visual comparison output and the structural comparison output using a weighted aggregation, a Boolean combination, a conjunctive AND, or any other suitable decision rule, and may evaluate the aggregated similarity against one of one or more predetermined similarity thresholds. The reference page state used by the visual comparison path 908 and the structural comparison path 910 is supplied by a reference page state source 916.
The reference page state source 916 may comprise the expected state reference produced by the reference-source selector 604 of
At step 914, a page-state match/no-match result is generated based on the page-state match determination performed at step 912. The page-state match/no-match result indicates whether the current application state matches the reference page state within the one or more predetermined similarity thresholds. The page-state match/no-match result is provided to the execution gating sub-module 610 of
According to one embodiment, the page-state comparison process 900 thereby validates the layout, the structure, and the semantic intent of the target application graphical user interface while masking dynamic data fields that may legitimately differ between executions. The page-state comparison process 900 reduces the rate of false validation failures caused by per-execution variability in user-specific, transaction-specific, or time-specific values, and concurrently preserves the structural and semantic fidelity required to detect interface drift, page substitution, or state mismatch that may indicate that the proposed UI action would operate on an unintended context.
The conjunctive execution gate 1000 receives input from two independent validation paths. At step 1002, UI element validation is performed by the UI element comparison process 800 of
At step 1006, page-state validation is performed by the page-state comparison process 900 of
At step 1010, the element match result 1004 and the page-state match result 1008 are supplied to an AND gate. The AND gate implements the conjunctive logic of the conjunctive execution gate 1000 and produces a conjunctive output that is asserted only when both the element match result 1004 indicates a match and the page-state match result 1008 indicates a match. The AND gate may be implemented as a Boolean logic operator, as a conditional evaluator over the structured outputs of the two validation paths, as a thresholded combination of similarity scores, or as any other suitable conjunctive decision mechanism.
At step 1012, the conjunctive execution gate 1000 evaluates whether both matches satisfy the one or more predetermined similarity thresholds. If both the element match result 1004 and the page-state match result 1008 indicate a match within the applicable thresholds, the conjunctive execution gate 1000 advances to step 1016. If either the element match result 1004 or the page-state match result 1008 indicates a no-match, the conjunctive execution gate 1000 advances to step 1014.
At step 1016, when both matches satisfy the thresholds, execution of the proposed UI action is permitted. Execution proceeds to one or more next steps, including transmission of the proposed UI action as a permitted simulated UI interaction to the target application graphical user interface by the automation agent or GUI agent. The automation agent or GUI agent may carry out the permitted simulated UI interaction by simulating a click, a text-entry event, a keystroke, a navigation event, a modal-dialog interaction, or any combination thereof against the target application graphical user interface.
At step 1014, when either match fails, execution of the proposed UI action is denied. The denial may be processed through a sequence of escalating responses, including suspending LLM execution at step 1018, invoking a fallback path at step 1020, and invoking secure human review at step 1022. The sequence of responses may be configured to proceed in order, in parallel, or selectively depending on the configuration of the conjunctive execution gate 1000 and the severity of the validation failure.
At step 1018, the conjunctive execution gate 1000 may suspend LLM execution. Suspension may comprise pausing the LLM execution loop pending further analysis, holding the validation engine 410 in a wait state until additional context is supplied, or instructing the automation agent or GUI agent to halt forwarding of subsequent proposed UI actions to the validation engine 410 until the validation failure is resolved.
At step 1020, the conjunctive execution gate 1000 may invoke a fallback path. The fallback path may comprise at least one of an exception-handling routine, an alternate sequence of UI actions, or an invocation of human-in-the-loop review. The exception-handling routine may be configured to log the validation failure, capture relevant context, and route the validation failure to a configured handler that may attempt to resolve the validation failure automatically. The alternate sequence of UI actions may comprise a pre-authored fallback workflow that the validation engine 410 may invoke when the primary task guide is unable to proceed past the validation failure. The invocation of human-in-the-loop review may comprise routing the validation failure to a human operator for resolution.
At step 1022, the conjunctive execution gate 1000 may invoke secure human review. Secure human review may comprise brokering a secure human review session in which a current UI state, the proposed UI action, and an expected state reference are presented to a human system owner. The human system owner may evaluate the validation failure based on the presented information and may issue an approval or a rejection decision. The secure human review session is described in greater detail below with reference to
If the human system owner approves the new state at step 1022, the conjunctive execution gate 1000 advances to step 1024. At step 1024, the conjunctive execution gate 1000 updates the expected state reference or the validated task graph to incorporate the approved new state, after which the workflow may resume from the point of the validation failure or from an earlier checkpoint. Updating the expected state reference may comprise writing the approved new state to a deterministic execution cache as a verified element-action-state triplet, or replacing one or more reference values within the task guide. Updating the validated task graph may comprise modifying the validated task graph to incorporate the approved new state as a recognized path through the workflow.
If the human system owner does not approve the new state at step 1022, the conjunctive execution gate 1000 advances to step 1026. At step 1026, the conjunctive execution gate 1000 aborts the workflow. The workflow abort may comprise terminating the task guide, releasing resources allocated to the workflow, recording the abort event in an audit record, and reporting the abort to one or more downstream systems including a monitoring system, a security system, or a notification system.
According to one embodiment, the conjunctive execution gate 1000 thereby implements the core safety feature of the validation engine 410 by requiring conjunctive agreement between the element match result 1004 and the page-state match result 1008 before permitting execution of the proposed UI action. A target UI element that correctly matches the reference UI element but is rendered on an incorrect page is denied execution by the conjunctive execution gate 1000. A current application state that correctly matches the reference page state but contains a moved, replaced, or substituted target UI element is similarly denied execution by the conjunctive execution gate 1000. The conjunctive execution gate 1000 prevents both classes of failure that single-axis validation mechanisms cannot reliably detect, and the escalation paths from step 1018 through step 1026 supply controlled responses to denied execution that include suspension, fallback, secure human review, validated-graph update, and abortion as appropriate.
The reference-source selection system 1100 comprises a reference-source selector 1106 that receives information from one or more reference sources and produces the expected state reference 1108. The reference-source selector 1106 may be implemented as a software module, a configurable state machine, a rules engine, or any other suitable component that evaluates the availability and applicability of the reference sources and selects an appropriate reference source for the proposed UI action under validation.
The reference-source selector 1106 may receive information from a synthetically generated validated task graph 1110, from a previously verified execution record 1112, and from a task-guide expected post-execution condition 1114. The three reference sources may be available to the reference-source selector 1106 concurrently, in alternation, or selectively depending on the workflow under validation and the configuration of the reference-source selector 1106.
The synthetically generated validated task graph 1110 may comprise a graph generated by an offline generative process and pre-validated against simulated or modeled interface conditions. The synthetically generated validated task graph 1110 may be produced by a generative model that synthesizes candidate workflow graphs from one or more application specifications, by a simulation environment that exercises the target application graphical user interface across modeled inputs, by a rule-based generator that constructs validated workflows from primitive UI operations, or by any combination thereof. The reference-source selector 1106 may obtain the reference UI element 1102 and the reference page state 1104 from the synthetically generated validated task graph 1110 in embodiments in which historical references are unavailable, including embodiments in which the proposed UI action is being executed for a first time and no previously verified execution exists for the proposed UI action.
The previously verified execution record 1112 may be derived from a deterministic execution cache 1116. The deterministic execution cache 1116 may comprise a stored collection of cache records, each cache record including a verified UI element/action/page-state triplet 1118 from one or more prior verified executions. The verified UI element/action/page-state triplet 1118 includes a verified UI element, a corresponding action, and an associated page state, and the deterministic execution cache 1116 stores the verified UI element/action/page-state triplet 1118 together with timestamp or validation metadata in association with an expected state reference identifier. The reference-source selector 1106 may query the deterministic execution cache 1116 by an identifier of the proposed UI action, by an identifier of the task guide, by a feature signature derived from the current application state, or by any combination thereof, and may retrieve the verified UI element/action/page-state triplet 1118 that matches the query as the previously verified execution record 1112. The reference UI element 1102 may be obtained from the verified UI element of the verified UI element/action/page-state triplet 1118, and the reference page state 1104 may be obtained from the associated page state of the verified UI element/action/page-state triplet 1118.
The task-guide expected post-execution condition 1114 may be obtained from a task guide 1124 received by the reference-source selection system 1100. The task-guide expected post-execution condition 1114 may include expected post-condition data 1120 and an expected-to-be-observed value 1122. The expected post-condition data 1120 may specify at least one expected UI element, expected UI state, expected page state, or expected state transition that the target application graphical user interface is expected to exhibit following execution of a corresponding UI action of the task guide 1124. The expected-to-be-observed value 1122 may comprise a specific value, attribute, or interface artifact that the validation engine 410 expects to observe in the current application state following a successful action, including a status indicator, a confirmation message, a control state change, a navigation event, or any combination thereof. The reference-source selector 1106 may obtain the reference UI element 1102 and the reference page state 1104 from the task-guide expected post-execution condition 1114 when the task guide 1124 explicitly defines the post-execution conditions for the proposed UI action, allowing the validation engine 410 to validate the proposed UI action against deterministic expectations specified in the task guide 1124 itself even in the absence of a previously verified execution.
The reference-source selector 1106 produces the expected state reference 1108 by selecting from among the synthetically generated validated task graph 1110, the previously verified execution record 1112, and the task-guide expected post-execution condition 1114 based on availability, applicability, and priority. In one embodiment, the reference-source selector 1106 first queries the deterministic execution cache 1116 to determine whether a previously verified execution record 1112 corresponding to the proposed UI action is available, and produces the expected state reference 1108 from the previously verified execution record 1112 when the deterministic execution cache 1116 returns a matching cache record. In another embodiment, the reference-source selector 1106 first consults the task-guide expected post-execution condition 1114 when the task guide 1124 explicitly defines the post-execution conditions for the proposed UI action, and produces the expected state reference 1108 from the task-guide expected post-execution condition 1114. In yet another embodiment, the reference-source selector 1106 produces the expected state reference 1108 from the synthetically generated validated task graph 1110 when neither the previously verified execution record 1112 nor the task-guide expected post-execution condition 1114 is available for the proposed UI action. The reference-source selector 1106 may further combine information from two or more of the reference sources, for example by using the previously verified execution record 1112 as a primary reference and the task-guide expected post-execution condition 1114 as a secondary corroborating reference, depending on the configuration of the reference-source selector 1106.
The expected state reference 1108 produced by the reference-source selector 1106 comprises the reference UI element 1102 and the reference page state 1104. The reference UI element 1102 is provided to the UI element comparison sub-module 606 of
According to one embodiment, the reference-source selection system 1100 thereby supports a dual-source reference pathway in which the reference UI element 1102 and the reference page state 1104 are obtained from one of (i) a previously verified execution stored in the deterministic execution cache 1116, or (ii) one or more expected post-execution conditions explicitly assigned within the task guide 1124. The reference-source selection system 1100 may further extend the dual-source reference pathway with a synthetic reference path in which the reference UI element 1102 and the reference page state 1104 are obtained from the synthetically generated validated task graph 1110, allowing the validation engine 410 to operate on a first execution of a new workflow in which no previously verified execution exists and no task-guide expected post-execution condition has been authored. The combination of historical, task-guide-defined, and synthetic reference sources within a single coordinated architecture supports embodiments in which the validation engine 410 operates continuously across the lifecycle of the workflow, including initial execution, repeated execution, and adaptation to new states.
The deterministic execution cache architecture comprises the deterministic execution cache 1208, a lookup index 1206, a validation engine 1210, a write path 1202, and a read path 1204. The validation engine 1210 corresponds to the validation engine 410 of
The deterministic execution cache 1208 is a persistent or non-persistent storage component that stores a plurality of cache records 1212-1, 1212-2, through 1212-N. The deterministic execution cache 1208 may be implemented as a key-value store, a relational database, a graph database, an in-memory data structure, a distributed cache, an embedded data store, or any combination thereof, and may be co-located with the validation engine 1210 or hosted on a separate storage subsystem accessible to the validation engine 1210. The number N of cache records 1212 may grow with the number of verified executions performed by the deterministic validation system 400 of
Each cache record 1212 of the plurality of cache records comprises a verified UI element 1214, a corresponding action 1216, an associated page state 1218, timestamp or validation metadata 1220, and an expected state reference identifier 1222. The verified UI element 1214, the corresponding action 1216, and the associated page state 1218 together form a verified element-action-state triplet from a prior verified execution of a workflow.
The verified UI element 1214 represents the UI element on which the corresponding action 1216 was previously verified to have been executed. The verified UI element 1214 may be stored as a structured representation that includes one or more of an element identifier, a document object model (DOM) position, label text, a visual bounding box, a vector embedding produced by a neural-network-based similarity model, or any combination thereof.
The corresponding action 1216 represents the UI action that was previously verified to have been executed on the verified UI element 1214. The corresponding action 1216 may be stored as a structured representation that includes one or more of a click event, a text-entry event, a keystroke, a navigation event, a modal-dialog interaction, or any combination thereof, together with parameters of the corresponding action 1216 including target coordinates, input values, or modifier keys.
The associated page state 1218 represents the page state of the target application graphical user interface within which the corresponding action 1216 was previously verified to have been executed. The associated page state 1218 may be stored as a structured representation that includes one or more of a full screenshot, a partial screenshot, a document object model (DOM) tree snapshot, a layout-based map of UI components, a composite structure derived from at least two screenshots of an application window captured at different time intervals, or any combination thereof.
The timestamp or validation metadata 1220 represents temporal and validation context information associated with the verified element-action-state triplet. The timestamp or validation metadata 1220 may include a timestamp at which the corresponding action 1216 was verified, an identifier of the workflow, an identifier of the LLM that produced the proposed UI action, an identifier of the human or automated reviewer that approved the verification, a validation score, a counter of how many times the cache record 1212 has been retrieved for subsequent validations, or any combination thereof.
The expected state reference identifier 1222 represents an identifier that allows the cache record 1212 to be cross-referenced with an expected state reference produced by the reference-source selector 1106 of
The lookup index 1206 is configured to support retrieval of cache records 1212 from the deterministic execution cache 1208 for action eligibility determination. The lookup index 1206 may be implemented as a hash index, a B-tree, an inverted index, a vector index for similarity search over UI element embeddings, a multi-attribute composite index, or any combination thereof. The lookup index 1206 may be indexed by one or more of the verified UI element 1214, the corresponding action 1216, the associated page state 1218, the expected state reference identifier 1222, the workflow identifier, or any combination thereof, and may support exact-match lookups, range queries, similarity queries, or any combination thereof depending on the implementation of the lookup index 1206.
The write path 1202 represents the data flow from the validation engine 1210 to the deterministic execution cache 1208 following successful validation of a proposed UI action. When the validation engine 1210 permits execution of the proposed UI action by issuing a permit decision through the conjunctive execution gate 1000 of
The read path 1204 represents the data flow from the deterministic execution cache 1208 to the validation engine 1210 in response to a query for action eligibility. When the validation engine 1210 evaluates a proposed UI action against the cache, the validation engine 1210 may issue a query through the read path 1204 to the deterministic execution cache 1208. The query may include one or more of an identifier of the proposed UI action, an identifier of the target UI element, a feature signature derived from the current application state, an identifier of the workflow, or any combination thereof. The lookup index 1206 may evaluate the query against the cache records 1212 stored in the deterministic execution cache 1208 and may return one or more matching cache records 1212 to the validation engine 1210 along the read path 1204. The validation engine 1210 may use the matching cache records 1212 as the reference UI element and the reference page state for the subsequent comparison operations performed by the UI element comparison sub-module 606 and the page-state comparison sub-module 608, respectively, of
According to one embodiment, the deterministic execution cache 1208 thereby stores verified UI elements, corresponding actions, and associated page states as element-action-state triplets from one or more prior verified executions, and supports retrieval of the element-action-state triplets through the lookup index 1206 to determine action eligibility for subsequent proposed UI actions. The deterministic execution cache 1208 enables the validation engine 1210 to reuse prior validation outcomes, reduce validation latency for repeated workflows, support iterative re-execution of validated UI actions across multiple workflow execution sessions, and supply reference UI elements and reference page states to the conjunctive execution gate 1000 of
The time-relative validation 1300 begins at step 1302, in which a UI action executes at time t=0. The UI action that executes at step 1302 may be a UI action that has previously been permitted by the conjunctive execution gate 1000 of
At step 1304, the time-relative validation 1300 waits for an action timing offset Δt following execution of the UI action at step 1302. The action timing offset Δt is a specified delay between the execution of the UI action and the capture of a time-relative page state of the target application graphical user interface, and may be selected to allow the target application graphical user interface to complete a state transition triggered by the UI action. The action timing offset Δt may be configured as a fixed duration, a workflow-dependent duration, an action-dependent duration, or a duration dynamically determined based on observed responsiveness of the target application graphical user interface. In one embodiment, the action timing offset Δt may be expressed in milliseconds and may be configured by a system operator, by a policy, or by an automated calibration process.
At step 1306, a time-relative page state is captured. The time-relative page state corresponds to the specified action timing offset Δt following execution of the UI action at step 1302 and is captured by the automation agent or GUI agent operatively coupled to the target application graphical user interface. The capturing may comprise capturing a screenshot of the target application graphical user interface, capturing a document object model (DOM) tree snapshot of the target application graphical user interface, capturing a layout-based map of UI components of the target application graphical user interface, capturing a composite structure derived from a plurality of screenshots taken across a window of time around t=Δt, or any combination thereof.
At step 1308, an expected post-action reference state is retrieved. The expected post-action reference state represents the state of the target application graphical user interface that the validation engine 410 expects to observe following successful execution of the UI action. The expected post-action reference state may be retrieved from a deterministic execution cache that stores expected post-action reference states from one or more prior verified executions, from one or more expected post-execution conditions explicitly assigned within the task guide, from a synthetically generated validated task graph, or from any combination thereof, as described above with reference to
At step 1310, the captured time-relative page state from step 1306 is compared with the expected post-action reference state retrieved at step 1308. The comparing may be performed using a similarity metric based on at least one of a visual representation or a structural representation of the time-relative page state and the expected post-action reference state, including a pixel-level similarity score, a structural similarity index, a perceptual similarity score, a graph-based similarity over a layout-based map of UI components, an embedding-vector distance computed using a neural-network-based similarity model, or any combination thereof.
At step 1312, the time-relative validation 1300 determines whether the comparing performed at step 1310 produces a match within one of one or more predetermined similarity thresholds. If the captured time-relative page state matches the expected post-action reference state within the applicable similarity threshold, the time-relative validation 1300 advances to step 1314. If the captured time-relative page state does not match the expected post-action reference state within the applicable similarity threshold, the time-relative validation 1300 advances to step 1316.
At step 1314, when the captured time-relative page state matches the expected post-action reference state within the similarity threshold, the validity of the action effect is confirmed. Confirmation of the validity of the action effect may comprise generating a positive validation outcome that is recorded in association with the UI action, updating the deterministic execution cache to reinforce the verified element-action-state triplet associated with the UI action, advancing the workflow to a next UI action of the task guide, or any combination thereof. The confirmation of the validity of the action effect closes the validation loop on the UI action by verifying that the UI action produced its intended effect on the target application graphical user interface following the action timing offset Δt.
At step 1316, when the captured time-relative page state does not match the expected post-action reference state within the similarity threshold, the action effect is flagged as invalid and validation is denied. The flagging may comprise generating a negative validation outcome that is recorded in association with the UI action, suspending the LLM execution, invoking a fallback execution path comprising at least one of an exception-handling routine, an alternate sequence of UI actions, or an invocation of human-in-the-loop review as described above with reference to
According to one embodiment, the time-relative validation 1300 thereby extends the validation pipeline of the deterministic validation system 400 by adding a post-action validation phase that verifies the action effect at the specified action timing offset Δt following execution of the UI action. The time-relative validation 1300 may operate in cooperation with the pre-LLM gate at step 506 of
The critical-action validation process 1400 begins at step 1402, in which a proposed UI action is received. The proposed UI action may be received from a large language model (LLM) that has been provided with a validated task guide, may be intercepted by the automation agent or GUI agent before reaching the target application graphical user interface, or may be received from any other suitable source coupled to the validation engine 410. The proposed UI action may include a click event, a text-entry event, a keystroke, a navigation event, a modal-dialog interaction, or any combination thereof against a target UI element of the target application graphical user interface.
At step 1404, the proposed UI action is classified by action type. The classifying may comprise inspecting the proposed UI action, the target UI element on which the proposed UI action will operate, the surrounding application page state, task guide metadata associated with the proposed UI action, or any combination thereof. The classifying may use a rules-based classifier, a trained machine-learning classifier, a policy-driven classifier, or any combination thereof. The classifying produces an action type label that is used to determine whether the proposed UI action falls within one or more critical action categories.
The one or more critical action categories may include modifying user access privileges 1404a, resetting an application password 1404b, and initiating secure data transmission 1404c. The category of modifying user access privileges 1404a may include adding, removing, or changing access permissions of a user account, modifying user role assignments, modifying group memberships, modifying privilege escalation flags, or any combination thereof. The category of resetting an application password 1404b may include resetting a user-account password, resetting an application service-account password, generating a new credential, rotating a credential, or any combination thereof. The category of initiating secure data transmission 1404c may include transmitting confidential data to an external recipient, initiating a data export, initiating a file transfer of regulated data, transmitting financial or personal information, or any combination thereof. Additional critical action categories may be defined by a system operator and added to the classification configuration as appropriate for the target application graphical user interface.
At step 1406, the critical-action validation process 1400 determines whether the action type label produced at step 1404 indicates that the proposed UI action constitutes a critical action. If no critical action is detected, the critical-action validation process 1400 advances to step 1408. If a critical action is detected, the critical-action validation process 1400 advances to step 1410.
At step 1408, when no critical action is detected, a non-critical action validation threshold is applied to the proposed UI action. The non-critical action validation threshold may comprise one or more predetermined similarity thresholds applied to non-critical actions of the sequence of UI actions of the task guide. The non-critical action validation threshold may be configured to permit execution when the conjunctive execution gate 1000 of
At step 1410, when a critical action is detected, an elevated validation control is applied to the proposed UI action. The elevated validation control includes at least one of a stricter similarity threshold 1410a or an additional confirmation step 1410b.
The stricter similarity threshold 1410a is more restrictive than a similarity threshold applied to a non-critical action of the sequence of UI actions. The stricter similarity threshold 1410a may be expressed as a tighter tolerance on an embedding-vector distance, a higher minimum required similarity score, a smaller permissible structural deviation, a more restrictive identifier-metadata match requirement, or any combination thereof. The stricter similarity threshold 1410a may be configured to reduce the probability of false-positive validation outcomes for sensitive enterprise UI actions.
The additional confirmation step 1410b may comprise requesting an additional confirmation from a human operator, a system owner, a peer reviewer, or another authorized confirmer before permitting execution of the critical action. The additional confirmation step 1410b may further comprise capturing an additional reference data point, performing an additional validation pass against a secondary reference source, or any combination thereof. The additional confirmation step 1410b may be configured to provide a second layer of assurance for the critical action.
At step 1412, a compliance policy check is performed in association with the elevated validation control. The compliance policy check may evaluate the proposed UI action against one or more compliance policies, including a Sarbanes-Oxley Act (SOX) policy 1412a, a Health Insurance Portability and Accountability Act (HIPAA) policy 1412b, a General Data Protection Regulation (GDPR) policy 1412c, an enterprise identity-governance policy 1412d, or any combination thereof. The compliance policy check may produce a compliance outcome that is combined with the elevated validation control output to inform the subsequent permit-or-deny decision.
At step 1414, the critical-action validation process 1400 issues a permit or deny decision for the proposed UI action. For a non-critical action, the permit or deny decision may be based on whether the proposed UI action satisfies the non-critical action validation threshold applied at step 1408. For a critical action, the permit or deny decision may be based on whether the elevated validation control at step 1410 confirms that the proposed UI action satisfies the stricter similarity threshold 1410a or the additional confirmation step 1410b, and whether the compliance policy check at step 1412 produces a compliance outcome that does not block execution. A deny decision may be issued when the applicable validation threshold, elevated validation control, additional confirmation step, or compliance policy check produces an outcome that blocks execution.
At step 1416, a tamper-evident audit record is generated in association with the permit or deny decision of step 1414. The tamper-evident audit record may include one or more identifiers associated with the proposed UI action, one or more timestamps, an outcome status indicating whether the proposed UI action was permitted or denied, a record of the action type label produced at step 1404, a record of the non-critical action validation threshold applied at step 1408, a record of the elevated validation control applied at step 1410, a record of the compliance policy check performed at step 1412, and supporting validation context including reasoning trails, visual cues, and decision states associated with the validated action. The tamper-evident audit record may be protected against unauthorized modification through a tamper-evidence mechanism, including append-only storage, hash-chaining, immutable ledger storage, cryptographic signing, or any combination thereof. The tamper-evident audit record may be stored in an audit repository for retrieval through an audit or observability interface, as described with reference to
According to one embodiment, the critical-action validation process 1400 provides a tiered validation architecture in which sensitive enterprise UI actions receive stricter validation control and compliance treatment than non-critical UI actions. The deterministic validation system 400 maintains the conjunctive runtime gate of
The iterative re-execution validation 1500 begins at step 1502, in which a repeated or re-applied UI action is detected. The repeated or re-applied UI action may be a UI action that appears more than once in a single task guide, a UI action that appears in two or more workflow execution sessions that share a common workflow definition, or a UI action that is re-invoked through a workflow loop or a periodic schedule. The detecting may comprise comparing an identifier of a proposed UI action against a register of previously executed UI actions, computing a feature signature of the proposed UI action and the current application state and matching the feature signature against a feature signature index, or any combination thereof. In some embodiments, the detecting may be assisted by metadata associated with the task guide that explicitly identifies one or more UI actions as repeated or re-applied across workflow execution sessions.
At step 1504, a prior validation status for the repeated or re-applied UI action is looked up in a deterministic execution cache. The deterministic execution cache may comprise the deterministic execution cache 1208 of
At step 1506, the iterative re-execution validation 1500 determines whether a prior execution of the repeated or re-applied UI action was validated within one of one or more predetermined similarity thresholds. The determining may comprise inspecting the validation outcome recorded in the matching cache record retrieved at step 1504, evaluating the timestamp or validation metadata of the matching cache record against retention or freshness policies, comparing the similarity score recorded in the matching cache record against the applicable similarity threshold for the current workflow execution session, or any combination thereof. If a prior execution of the repeated or re-applied UI action was validated within the applicable similarity threshold, the iterative re-execution validation 1500 advances to step 1508. If no valid prior execution is available, the iterative re-execution validation 1500 advances to step 1510.
At step 1508, when the prior execution of the repeated or re-applied UI action was validated within the applicable similarity threshold, re-execution of the repeated or re-applied UI action is permitted in a subsequent workflow execution session. The permitting may comprise issuing a permit decision through the execution gating sub-module 610 of
At step 1510, when no valid prior execution is available for the repeated or re-applied UI action, the repeated or re-applied UI action is routed through the full validation pipeline of the deterministic validation system 400. The full validation pipeline may include the pre-LLM gate at step 506 of
At step 1512, after the repeated or re-applied UI action is successfully validated through the full validation pipeline at step 1510, the deterministic execution cache is updated. The updating may comprise writing a new cache record to the deterministic execution cache along the write path 1202 of
At step 1514, a subsequent workflow execution session is entered. The subsequent workflow execution session may comprise a re-invocation of the same task guide, a re-invocation of a workflow that shares one or more UI actions with the previously executed task guide, a periodic re-execution of the same workflow according to a schedule, or any other suitable workflow session that may include the repeated or re-applied UI action.
The iterative re-execution validation 1500 may further form a workflow session loop 1516, in which the validation status accumulated across one or more workflow execution sessions may be reused in future workflow execution sessions. The workflow session loop 1516 may be implemented as a logical loop in which the deterministic execution cache 1208 of
According to one embodiment, the iterative re-execution validation 1500 thereby permits execution of the repeated or re-applied UI action in the subsequent workflow execution session only when the prior execution of the repeated or re-applied UI action has been validated within the one or more predetermined similarity thresholds. The iterative re-execution validation 1500 enables the deterministic validation system 400 to support high-frequency enterprise workflows that include repeated UI actions, including batch processing, periodic data exports, scheduled reconciliations, and recurring administrative operations, while maintaining deterministic control over the re-execution and preserving the verifiability and auditability of the underlying validation outcomes.
The audit trail and tamper-evident audit record generation process begins by receiving a validated action 1600. The validated action 1600 may correspond to a UI action that has been permitted by the conjunctive execution gate 1000 of
The validated action 1600 is provided to a tagging operation 1602. The tagging operation 1602 is configured to tag the validated action 1600 with identifier information and validation-context information for subsequent storage and retrieval. The tagging operation 1602 may be implemented as a software routine, a configurable pipeline, a streaming processor, or any other suitable component that produces a structured tag record from the validated action 1600.
The tagging operation 1602 produces an identifier-information block 1604 associated with the validated action 1600. The identifier-information block 1604 includes one or more identifiers, one or more timestamps, and an outcome status associated with the validated action 1600. The identifier-information block 1604 may include a task guide identifier 1604a, an LLM identifier 1604b, an execution identifier 1604c, a target UI element identifier 1604d, a timestamp 1604e, and an outcome status 1604f.
The task guide identifier 1604a identifies the task guide that contained the validated action 1600. The task guide identifier 1604a may comprise a unique identifier assigned to the task guide by the task guide generation module 408 of
The LLM identifier 1604b identifies the LLM 412 of
The execution identifier 1604c identifies the workflow execution session within which the validated action 1600 was executed. The execution identifier 1604c may comprise a unique session identifier, a correlation identifier across multiple validated actions of the workflow execution session, a tenant identifier in multi-tenant deployments, or any combination thereof.
The target UI element identifier 1604d identifies the target UI element on which the validated action 1600 operated. The target UI element identifier 1604d may comprise an element identifier, a document object model (DOM) position, a visual bounding box reference, a vector embedding reference, or any combination thereof.
The timestamp 1604e identifies the time at which the validated action 1600 was validated, executed, or both. The timestamp 1604e may comprise a wall-clock timestamp, a monotonic timestamp, a logical clock value, or any combination thereof.
The outcome status 1604f identifies the validation outcome and the execution outcome of the validated action 1600. The outcome status 1604f may indicate whether the validated action 1600 was permitted, denied, suspended, escalated, or aborted, and may further indicate whether subsequent observation by the time-relative validation 1300 confirmed the action effect.
The tagging operation 1602 further produces a validation-context block 1606 associated with the validated action 1600. The validation-context block 1606 includes a reasoning trail 1606a, a visual cue 1606b, and a decision state 1606c.
The reasoning trail 1606a may comprise a structured record of the validation steps that the validation engine 410 performed for the validated action 1600, including the element-similarity measures applied, the similarity thresholds evaluated, the reference sources consulted, the compliance policies evaluated, and the decision rules invoked. The reasoning trail 1606a allows downstream observers to reconstruct the validation logic that produced the outcome status 1604f.
The visual cue 1606b may comprise a screenshot of the target application graphical user interface at the time of validation, a partial screenshot of the target UI element, a composite structure derived from at least two screenshots, an annotated visual representation that highlights the target UI element and the surrounding page state, or any combination thereof. The visual cue 1606b supports visual reconstruction of the validated action 1600 for forensic, regulatory, or operational review.
The decision state 1606c may comprise a snapshot of the internal state of the validation engine 410 at the time of validation, including the values of the element match result, the page-state match result, the conjunctive output, the applied similarity thresholds, the compliance policy outcomes, the cache lookup results, or any combination thereof. The decision state 1606c allows the validation engine 410 to be subsequently audited for correctness, tuned for improved validation accuracy, or extended with additional decision logic.
The identifier-information block 1604 and the validation-context block 1606 are provided to a compliance policy engine 1608. The compliance policy engine 1608 is configured to evaluate the validated action 1600 against one or more compliance policies, including the SOX, HIPAA, GDPR, and enterprise identity-governance policies described above with reference to
The compliance policy engine 1608 produces a tamper-evident audit record 1610 for the validated action 1600. The tamper-evident audit record 1610 includes the identifier-information block 1604, the validation-context block 1606, and the compliance evaluations produced by the compliance policy engine 1608. The tamper-evident audit record 1610 is protected against unauthorized modification through one or more tamper-evidence mechanisms, including cryptographic signing of the record contents, append-only storage of the record, hash-chaining of the record to one or more previously generated audit records, immutable ledger storage of the record, or any combination thereof. The tamper-evident audit record 1610 thereby supports forensic verification of validated actions against post-hoc modification or omission.
The tamper-evident audit record 1610 is stored in an audit repository 1612. The audit repository 1612 may comprise a relational database, an append-only ledger, a distributed ledger, an object store, a write-once storage subsystem, or any combination thereof, and may be co-located with the validation engine 410 or hosted on a separate storage subsystem accessible to the deterministic validation system 400. The audit repository 1612 may further support retention, archival, replication, and disaster-recovery policies configured by a system operator.
The audit repository 1612 is made available through an audit or observability interface 1614. The audit or observability interface 1614 may comprise a query interface that supports retrieval of audit records by one or more identifiers, a streaming interface that delivers audit records to one or more downstream observability systems, a dashboard interface that presents audit records for human review, a regulatory reporting interface that exports audit records in formats required by external auditors, or any combination thereof. The audit or observability interface 1614 thereby allows the audit trail and tamper-evident audit record generation process to support root-cause analysis, model behavior fine-tuning, regulatory auditability, and operational observability of the validated actions performed by the deterministic validation system 400.
According to one embodiment, the audit trail and tamper-evident audit record generation process thereby tags each action validated by the validation engine 410 with one or more identifiers, one or more timestamps, and an outcome status, and stores one or more reasoning trails, one or more visual cues, and one or more decision states associated with each validated action. The combination of the identifier-information block 1604, the validation-context block 1606, the compliance policy engine 1608, the tamper-evident audit record 1610, the audit repository 1612, and the audit or observability interface 1614 supports comprehensive traceability of validated actions across the lifecycle of the deterministic validation system 400 and meets the audit and observability requirements of enterprise environments in which LLM-guided automation workflows are deployed.
The dynamic masking and structural-semantic extraction process 1700 begins at step 1702, in which a current page state is received. The current page state may be captured by the automation agent or GUI agent operatively coupled to the target application graphical user interface, and may comprise a screenshot of the target application graphical user interface, a document object model (DOM) tree snapshot of the target application graphical user interface, a layout-based map of UI components of the target application graphical user interface, a composite structure derived from at least two screenshots of an application window captured at different time intervals, or any combination thereof.
At step 1704, variable data payloads in the current page state are detected. Variable data payloads refer to portions of the current page state that contain content that may legitimately vary between executions of the workflow without indicating that the underlying page state has changed in a material way. The detecting may be performed by a trained classifier, a pattern-matching engine, a regular-expression-based detector, a region-based heuristic, an entity-recognition model, or any combination thereof. The detecting may operate on textual content, structural metadata, visual regions of the current page state, or any combination thereof to identify the variable data payloads with high confidence.
The variable data payloads may include one or more of a user name 1704a, a transaction amount 1704b, a date or time value 1704c, and a transaction identifier 1704d. The user name 1704a may comprise textual content that identifies the user associated with the workflow execution session, including a full name, a user account name, an email address, or any combination thereof. The transaction amount 1704b may comprise numerical content representing a monetary value, a quantity, a count, or any other measurable value that may legitimately differ between executions of the workflow. The date or time value 1704c may comprise temporal content representing a calendar date, a wall-clock time, a duration, a timestamp, or any combination thereof. The transaction identifier 1704d may comprise an alphanumeric identifier assigned to a particular transaction by the target application graphical user interface, including an order number, a reference number, a confirmation code, a session token, or any combination thereof. The variable data payloads may further include other user-specific, transaction-specific, or time-specific values rendered within the target application graphical user interface and configured by the system operator as variable for the particular target application graphical user interface.
At step 1706, the variable data payloads detected at step 1704 are masked. The masking may comprise replacing the variable data payloads with neutral content, occluding the variable data payloads with a uniform fill pattern, substituting the variable data payloads with placeholder tokens or canonical reference values, or any combination thereof. The masking is configured to remove the per-execution variability of the variable data payloads while preserving the structural region within which the variable data payloads were rendered, so that subsequent structural and semantic comparison operations may operate on the page layout and the UI components without being affected by the changing content of the variable data payloads.
At step 1708, a structural layout of the page corresponding to the current page state is extracted. The structural layout may comprise a layout-based map of UI components, including positions, types, and interrelationships of the UI components. The extracting may be performed by parsing the document object model (DOM) tree of the current page state, by applying a layout analysis model to the screenshot of the target application graphical user interface, by combining accessibility tree information with visual analysis output, or any combination thereof. The structural layout produced at step 1708 captures the spatial and hierarchical organization of the UI components on the target application graphical user interface independent of the variable data payloads masked at step 1706.
At step 1710, a semantic intent of UI elements within the page corresponding to the current page state is extracted. The semantic intent may comprise a structured label or descriptor that identifies the functional purpose of each UI element on the target application graphical user interface, including a control type, an action category, a workflow role, or any combination thereof. The extracting of the semantic intent may be performed by applying a trained intent-classification model to the UI elements, by mapping the UI elements to a predefined taxonomy of UI functions, by combining textual labels with structural and visual context, or any combination thereof. The semantic intent produced at step 1710 captures the functional meaning of each UI element on the target application graphical user interface independent of the rendered content of the variable data payloads.
At step 1712, a masked structural-semantic representation of the current page state is generated. The masked structural-semantic representation combines the masked field regions produced at step 1706, the structural layout extracted at step 1708, and the semantic intent extracted at step 1710 into a unified representation that captures the structure, layout, and semantic purpose of the target application graphical user interface while excluding the per-execution variability of the variable data payloads. The masked structural-semantic representation may be expressed as a structured tree of UI components with associated semantic descriptors, as a layout-based map together with intent labels for each UI component, as an attribute-rich graph representation, or as any other suitable representation that supports structural and semantic comparison.
At step 1714, the masked structural-semantic representation produced at step 1712 is compared with an expected state reference. The expected state reference may be produced by the reference-source selection system 1100 of
At step 1716, a masked page-state match result is output based on the comparing performed at step 1714. The masked page-state match result indicates whether the masked structural-semantic representation of the current page state matches the expected state reference within one of one or more predetermined similarity thresholds. The masked page-state match result may be provided to the execution gating sub-module 610 of
According to one embodiment, the dynamic masking and structural-semantic extraction process 1700 thereby allows the deterministic validation system 400 to validate the structure, layout, and semantic purpose of the target application graphical user interface across executions of the workflow in which the variable data payloads legitimately vary. The combination of variable data payload detection at step 1704, masking at step 1706, structural layout extraction at step 1708, semantic intent extraction at step 1710, masked structural-semantic representation generation at step 1712, comparing at step 1714, and outputting the masked page-state match result at step 1716 supports embodiments in which the deterministic validation system 400 operates accurately across high-frequency enterprise workflows that may render different user names, transaction amounts, date or time values, or transaction identifiers on each execution while validating that the page structure and the semantic intent remain consistent with the expected state reference.
The human escalation workflow 1800 begins at step 1802, in which a validation failure or unrecognized state is identified. The validation failure may be produced by the conjunctive execution gate 1000 of
At step 1804, LLM execution is suspended. Suspension of LLM execution may comprise instructing the LLM 412 of
At step 1806, a secure human review session is brokered. Brokering the secure human review session may comprise authenticating the human system owner, establishing a secure communication channel between the deterministic validation system 400 and an interface accessible to the human system owner, registering the validation failure or unrecognized state with a review queue, allocating a review identifier for tracking and audit purposes, applying access-control policies to limit which validation failures the human system owner is authorized to adjudicate, or any combination thereof. The secure human review session may operate within a synchronous review mode in which the workflow execution session is held pending the human system owner's decision, an asynchronous review mode in which the review is queued for later adjudication, or a hybrid mode configured by the system operator.
At step 1808, a current UI state, the proposed UI action, and an expected state reference are presented to the human system owner. The presenting may comprise rendering the current application state in a visual form that allows the human system owner to inspect the target application graphical user interface as observed by the validation engine 410, displaying the proposed UI action together with the target UI element on which the proposed UI action would operate, rendering the expected state reference in a comparable visual form, presenting the reasoning trail, visual cues, and decision states from the validation-context block 1606 of
At step 1810, the human system owner makes a decision regarding the new state encountered by the deterministic validation system 400. The human system owner may decide whether the new state is valid based on the presented information at step 1808, may consult external policies or operational guidance, may communicate with additional reviewers within an approval workflow, or any combination thereof. The decision produced at step 1810 may be a binary approve or reject determination, a structured decision that includes one or more annotations or qualifications, a delegation to another reviewer, or any other suitable decision form supported by the secure human review session. If the human system owner confirms the new state as valid, the human escalation workflow 1800 advances to step 1812. If the human system owner does not approve the new state, the human escalation workflow 1800 advances to step 1820.
At step 1812, the new state is confirmed as valid. Confirmation of the new state may comprise recording the approval decision in the audit repository 1612 of
At step 1814, a validated task graph is updated based on the confirmation produced at step 1812. The validated task graph may be a graph that records validated paths through the target application graphical user interface for one or more workflows performed by the deterministic validation system 400, and the updating may comprise inserting one or more nodes corresponding to the new state into the validated task graph, inserting one or more edges that connect the new state to existing validated states within the validated task graph, adjusting determinism metrics computed over the validated task graph to reflect the new state, or any combination thereof. The updated validated task graph may further be promoted to the library of candidate graphs accessed by the graph validity gate 700 of
At step 1816, the expected state reference or the deterministic execution cache is updated based on the confirmation produced at step 1812. The updating may comprise writing a new cache record to the deterministic execution cache 1208 of
At step 1818, the workflow is resumed. Resuming the workflow may comprise releasing the suspension of LLM execution at step 1804, transmitting the proposed UI action to the target application graphical user interface as a permitted simulated UI interaction by the automation agent or GUI agent, advancing the workflow execution session to a next proposed UI action of the task guide, or any combination thereof. The resumption allows the workflow execution session to proceed past the validation failure or unrecognized state with a verified state extension and an updated validated task graph in place.
At step 1820, when the human system owner does not approve the new state at step 1810, the workflow is aborted. Aborting the workflow may comprise terminating the task guide, releasing resources allocated to the workflow execution session, recording the abort event in the audit repository 1612 of
According to one embodiment, the human escalation workflow 1800 thereby provides a controlled human-supervised adaptation path for situations in which the deterministic validation system 400 cannot resolve a validation failure or an unrecognized state through automated mechanisms alone. The combination of validation failure detection at step 1802, LLM suspension at step 1804, secure human review brokering at step 1806, presentation of state to the human system owner at step 1808, decision at step 1810, validated task graph update at step 1814, expected state reference and deterministic execution cache update at step 1816, workflow resumption at step 1818, and workflow abort at step 1820 supports embodiments in which the deterministic validation system 400 progressively expands its set of validated states through human-supervised approval while maintaining the deterministic, reproducible, and auditable execution architecture that the validation engine 410 imposes on LLM-guided automation workflows.
Deterministic Validation System Based on Artificial IntelligenceThe deterministic validation system 400 of
The artificial intelligence components run on specialized computing hardware, including one or more central processing units (CPUs), graphics processing units (GPUs), tensor processing units (TPUs), field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), neural processing units (NPUs), or any combination thereof. Training of the neural-network-based similarity model, the trained classifiers, and the generative model is performed on accelerated computing clusters. Inference operations performed during workflow execution, including embedding generation, embedding-vector distance computation, classifier inference, and graph metric computation, run on accelerated hardware to meet the latency budget of just-in-time action permission. The deterministic validation system 400 is inseparable from the specialized hardware on which the artificial intelligence and machine-learning operations are performed.
Artificial intelligence contributes across every operational layer of the deterministic validation system 400. Artificial intelligence enables robust UI element matching across application changes, semantic page-state interpretation across visual variation, dynamic data masking, critical-action intent classification, generative production of synthetic validated task graphs, and AI-supported audit and compliance evaluation.
The artificial intelligence models employed by the system 400 are built on a class of neural network architectures known as transformers and an inference logic 1900. A transformer is a parallel input, parallel output architecture that processes input sequences using a self-attention mechanism to compute context-informed representations of each element in the sequence. The transformer architecture is applicable to both natural language processing tasks, where the input sequence comprises words or tokens, and computer vision tasks, where the input sequence comprises image patches.
Some implementations of the technology disclosed relate to using a Transformer model to provide an AI system. In particular, the technology disclosed proposes a parallel input, parallel output (PIPO) AI system based on the Transformer architecture. The Transformer model relies on a self-attention mechanism to compute a series of context-informed vector-space representations of elements in the input sequence and the output sequence, which are then used to predict distributions over subsequent elements as the model predicts the output sequence element-by-element. Not only is this mechanism straightforward to parallelize, but as each input's representation is also directly informed by all other inputs' representations, this results in an effectively global receptive field across the whole input sequence. This stands in contrast to, e.g., convolutional architectures which typically only have a limited receptive field.
In one implementation, the disclosed AI system is a multilayer perceptron (MLP). In another implementation, the disclosed AI system is a feedforward neural network. In yet another implementation, the disclosed AI system is a fully connected neural network. In a further implementation, the disclosed AI system is a fully convolutional neural network. In a yet further implementation, the disclosed AI system is a semantic segmentation neural network. In a yet another further implementation, the disclosed AI system is a generative adversarial network (GAN) (e.g., CycleGAN, StyleGAN, pixelRNN, text-2-image, DiscoGAN, IsGAN). In a yet another implementation, the disclosed AI system includes self-attention mechanisms like Transformer, Vision Transformer (ViT), Bidirectional Encoder Representations from Transformers (BERT), Detection Transformer (DETR), Deformable DETR, UP-DETR, DeiT, Swin, GPT, iGPT, GPT-2, GPT-3, various ChatGPT versions, various LLaMA versions, BERT, SpanBERT, RoBERTa, XLNet, ELECTRA, UniLM, BART, T5, ERNIE (THU), KnowBERT, DeiT-Ti, DeiT-S, DeiT-B, T2T-ViT-14, T2T-ViT-19, T2T-ViT-24, PVT-Small, PVT-Medium, PVT-Large, TNT-S, TNT-B, CPVT-S, CPVT-S-GAP, CPVT-B, Swin-T, Swin-S, Swin-B, Twins-SVT-S, Twins-SVT-B, Twins-SVT-L, Shuffle-T, Shuffle-S, Shuffle-B, XCiT-S12/16, CMT-S, CMT-B, VOLO-D1, VOLO-D2, VOLO-D3, VOLO-D4, MoCo v3, ACT, TSP, Max-DeepLab, VisTR, SETR, Hand-Transformer, HOT-Net, METRO, Image Transformer, Taming transformer, TransGAN, IPT, TTSR, STTN, Masked Transformer, CLIP, DALL-E, Cogview, UniT, ASH, TinyBert, FullyQT, ConvBert, FCOS, Faster R-CNN+FPN, DETR-DC5, TSP-FCOS, TSP-RCNN, ACT+MKDD (L=32), ACT+MKDD (L=16), SMCA, Efficient DETR, UP-DETR, ViTB/16-FRCNN, ViT-B/16-FRCNN, PVT-Small+RetinaNet, Swin-T+RetinaNet, Swin-T+ATSS, PVT-Small+DETR, TNT-S+DETR, YOLOS-Ti, YOLOS-S, and YOLOS-B.
In one implementation, the disclosed AI system is a convolution neural network (CNN) with a plurality of convolution layers. In another implementation, the disclosed AI system is a recurrent neural network (RNN) such as a long short-term memory network (LSTM), bi-directional LSTM (Bi-LSTM), or a gated recurrent unit (GRU). In yet another implementation, the disclosed AI system includes both a CNN and an RNN.
In yet other implementations, the disclosed AI system can use 1D convolutions, 2D convolutions, 3D convolutions, 4D convolutions, 5D convolutions, dilated or atrous convolutions, transpose convolutions, depthwise separable convolutions, pointwise convolutions, 1×1 convolutions, group convolutions, flattened convolutions, spatial and cross-channel convolutions, shuffled grouped convolutions, spatial separable convolutions, and deconvolutions. The disclosed AI system can use one or more loss functions such as logistic regression/log loss, multi-class cross-entropy/softmax loss, binary cross-entropy loss, mean-squared error loss, L1 loss, L2 loss, smooth L1 loss, and Huber loss. The disclosed AI system can use any parallelism, efficiency, and compression schemes such TFRecords, compressed encoding (e.g., PNG), sharding, parallel calls for map transformation, batching, prefetching, model parallelism, data parallelism, and synchronous/asynchronous stochastic gradient descent (SGD). The disclosed AI system can include upsampling layers, downsampling layers, recurrent connections, gates and gated memory units (like an LSTM or GRU), residual blocks, residual connections, highway connections, skip connections, peephole connections, activation functions (e.g., non-linear transformation functions like rectifying linear unit (ReLU), leaky ReLU, exponential linear unit (ELU), sigmoid and hyperbolic tangent (tanh)), batch normalization layers, regularization layers, dropout, pooling layers (e.g., max or average pooling), global average pooling layers, and attention mechanisms.
The disclosed AI system can be a linear regression model, a logistic regression model, an Elastic Net model, a support vector machine (SVM), a random forest (RF), a decision tree, and a boosted decision tree (e.g., XGBoost), or some other tree-based logic (e.g., metric trees, kd-trees, R-trees, universal B-trees, X-trees, ball trees, locality sensitive hashes, and inverted indexes). The disclosed AI system can be an ensemble of multiple models, in some implementations.
In some implementations, the disclosed AI system can be trained using backpropagation-based gradient update techniques. Example gradient descent techniques that can be used for training the disclosed AI system include stochastic gradient descent, batch gradient descent, and mini-batch gradient descent. Some examples of gradient descent optimization algorithms that can be used to train the disclosed AI system are Momentum, Nesterov accelerated gradient, Adagrad, Adadelta, RMSprop, Adam, AdaMax, Nadam, and AMSGrad.
Transformer LogicMachine learning is the use and development of computer systems that can learn and adapt without following explicit instructions, by using algorithms and statistical models to analyze and draw inferences from patterns in data. Some of the state-of-the-art models use Transformers, a more powerful and faster model than neural networks alone. Transformers originate from the field of natural language processing (NLP), but can be used in computer vision and many other fields. Neural networks process input in series and weight relationships by distance in the series. Transformers can process input in parallel and do not necessarily weigh by distance. For example, in natural language processing, neural networks process a sentence from beginning to end with the weights of words close to each other being higher than those further apart. This leaves the end of the sentence very disconnected from the beginning causing an effect called the vanishing gradient problem. Transformers look at each word in parallel and determine weights for the relationships to each of the other words in the sentence. These relationships are called hidden states because they are later condensed for use into one vector called the context vector. Transformers can be used in addition to neural networks. This architecture is described here.
Encoder-Decoder ArchitectureThe context vector is then passed to the second building block, the decoder. For translation, the decoder has been trained on a second language. Conditioned on the input context vector, the decoder generates an output sequence. At each time step, t, the decoder is fed the hidden state of time step, t−1, and the output generated at time step, t−1. The first hidden state in the decoder is the context vector, generated by the encoder. The context vector is used by the decoder to perform the translation.
The whole model is optimized end-to-end by using backpropagation, a method of training a neural network in which the initial system output is compared to the desired output and the system is adjusted until the difference is minimized. In backpropagation, the encoder is trained to extract the right information from the input sequence, the decoder is trained to capture the grammar and vocabulary of the output language. This results in a fluent model that uses context and generalizes well. When training an encoder-decoder model, the real output sequence is used to train the model to prevent mistakes from stacking. When testing the model, the previously predicted output value is used to predict the next one.
When performing a translation task using the encoder-decoder architecture, all information about the input sequence is forced into one vector, the context vector. Information connecting the beginning of the sentence with the end is lost, the vanishing gradient problem. Also, different parts of the input sequence are important for different parts of the output sequence, information that cannot be learned using only RNNs in an encoder-decoder architecture.
Attention MechanismAttention mechanisms distinguish Transformers from other machine learning models. The attention mechanism provides a solution for the vanishing gradient problem.
To weight encoder hidden states, a dot product between the decoder hidden state of the current time step, and all encoder hidden states, is calculated. This results in an attention score for every encoder hidden state. The attention scores are higher for those encoder hidden states that are similar to the decoder hidden state of the current time step. Higher values for the dot product indicate the vectors are pointing more closely in the same direction. The attention scores are converted to fractions that sum to one using the SoftMax function.
The SoftMax scores provide an attention distribution. The x-axis of the distribution is position in a sentence. The y-axis is attention weight. The scores show which encoder hidden states are most closely related. The SoftMax scores specify which encoder hidden states are the most relevant for the decoder hidden state of the current time step.
The elements of the attention distribution are used as weights to calculate a weighted sum over the different encoder hidden states. The outcome of the weighted sum is called the attention output. The attention output is used to predict the output, often in combination (concatenation) with the decoder hidden states. Thus, both information about the inputs, as well as the already generated outputs, can be used to predict the next outputs.
By making it possible to focus on specific parts of the input in every decoder step, the attention mechanism solves the vanishing gradient problem. By using attention, information flows more directly to the decoder. It does not pass through many hidden states. Interpreting the attention step can give insights into the data. Attention can be thought of as a soft alignment. The words in the input sequence with a high attention score align with the current target word. Attention describes long-range dependencies better than RNN alone. This enables analysis of longer, more complex sentences.
The attention mechanism can be generalized as: given a set of vector values and a vector query, attention is a technique to compute a weighted sum of the vector values, dependent on the vector query. The vector values are the encoder hidden states, and the vector query is the decoder hidden state at the current time step.
The weighted sum can be considered a selective summary of the information present in the vector values. The vector query determines on which of the vector values to focus. Thus, a fixed-size representation of the vector values can be created, in dependence upon the vector query.
The attention scores can be calculated by the dot product, or by weighing the different values (multiplicative attention).
EmbeddingsFor most machine learning models, the input to the model needs to be numerical. The input to a translation model is a sentence, and words are not numerical. multiple methods exist for the conversion of words into numerical vectors. These numerical vectors are called the embeddings of the words. Embeddings can be used to convert any type of symbolic representation into a numerical one.
Embeddings can be created by using one-hot encoding. The one-hot vector representing the symbols has the same length as the total number of possible different symbols. Each position in the one-hot vector corresponds to a specific symbol. For example, when converting colors to a numerical vector, the length of the one-hot vector would be the total number of different colors present in the dataset. For each input, the location corresponding to the color of that value is one, whereas all the other locations are valued at zero. This works well for working with images. For NLP, this becomes problematic, because the number of words in a language is very large. This results in enormous models and the need for a lot of computational power. Furthermore, no specific information is captured with one-hot encoding. From the numerical representation, it is not clear that orange and red are more similar than orange and green. For this reason, other methods exist.
A second way of creating embeddings is by creating feature vectors. Every symbol has its specific vector representation, based on features. With colors, a vector of three elements could be used, where the elements represent the amount of yellow, red, and/or blue needed to create the color. Thus, all colors can be represented by only using a vector of three elements. Also, similar colors have similar representation vectors.
For NLP, embeddings based on context, as opposed to words, are small and can be trained. The reasoning behind this concept is that words with similar meanings occur in similar contexts. Different methods take the context of words into account. Some methods, like GloVe, base their context embedding on co-occurrence statistics from corpora (large texts) such as Wikipedia. Words with similar co-occurrence statistics have similar word embeddings. Other methods use neural networks to train the embeddings. For example, they train their embeddings to predict the word based on the context (Common Bag of Words), and/or to predict the context based on the word (Skip-Gram). Training these contextual embeddings is time intensive. For this reason, pre-trained libraries exist. Other deep learning methods can be used to create embeddings. For example, the latent space of a variational autoencoder (VAE) can be used as the embedding of the input. Another method is to use 1D convolutions to create embeddings. This causes a sparse, high-dimensional input space to be converted to a denser, low-dimensional feature space.
Self-Attention: Queries (Q), Keys (K), Values (V)Transformer models are based on the principle of self-attention. Self-attention allows each element of the input sequence to look at all other elements in the input sequence and search for clues that can help it to create a more meaningful encoding. It is a way to look at which other sequence elements are relevant for the current element. The Transformer can grab context from both before and after the currently processed element.
When performing self-attention, three vectors need to be created for each element of the encoder input: the query vector (Q), the key vector (K), and the value vector (V). These vectors are created by performing matrix multiplications between the input embedding vectors using three unique weight matrices.
After this, self-attention scores are calculated. When calculating self-attention scores for a given element, the dot products between the query vector of this element and the key vectors of all other input elements are calculated. To make the model mathematically more stable, these self-attention scores are divided by the root of the size of the vectors. This has the effect of reducing the importance of the scalar thus emphasizing the importance of the direction of the vector. Just as before, these scores are normalized with a SoftMax layer. This attention distribution is then used to calculate a weighted sum of the value vectors, resulting in a vector z for every input element. In the attention principle explained above, the vector to calculate attention scores and to perform the weighted sum was the same, in self-attention two different vectors are created and used. As the self-attention needs to be calculated for all elements (thus a query for every element), one formula can be created to calculate a Z matrix. The rows of this Z matrix are the z vectors for every sequence input element, giving the matrix a size length sequence dimension QKV.
Multi-headed attention is executed in the Transformer.
When performing self-attention, information about the order of the different elements within the sequence is lost. To address this problem, positional encodings are added to the embedding vectors. Every position has its unique positional encoding vector. These vectors follow a specific pattern, which the Transformer model can learn to recognize. This way, the model can consider distances between the different elements.
As discussed above, in the core of self-attention are three objects: queries (Q), keys (K), and values (V). Each of these objects has an inner semantic meaning of their purpose. One can think of these as analogous to databases. We have a user-defined query of what the user wants to know. Then we have the relations in the database, i.e., the values which are the weights. More advanced database management systems create some apt representation of its relations to retrieve values more efficiently from the relations. This can be achieved by using indexes, which represent information about what is stored in the database. In the context of attention, indexes can be thought of as keys. So instead of running the query against values directly, the query is first executed on the indexes to retrieve where the relevant values or weights are stored. Lastly, these weights are run against the original values to retrieve data that is most relevant to the initial query.
Examples of attention calculation include scaled dot-product attention and additive attention. There are several reasons why scaled dot-product attention is used in the Transformers. Firstly, the scaled dot-product attention is relatively fast to compute, since its main parts are matrix operations that can be run on modern hardware accelerators. Secondly, it performs similarly well for smaller dimensions of the K matrix, dk, as the additive attention. For larger dk, the scaled dot-product attention performs a bit worse because dot products can cause the vanishing gradient problem. This is compensated via the scaling factor, which is defined as √{square root over (dk)}.
As discussed above, the attention function takes as input three objects: key, value, and query. In the context of Transformers, these objects are matrices of shapes (n, d), where n is the number of elements in the input sequence and d is the hidden representation of each element (also called the hidden vector). Attention is then computed as:
Attention
where Q, K, V are computed as:
X·WQ, X·WK, X·WV
X is the input matrix and WQ, WK, WV are learned weights to project the input matrix into the representations. The dot products appearing in the attention function are exploited for their geometrical interpretation where higher values of their results mean that the inputs are more similar, i.e., pointing in the geometrical space in the same direction. Since the attention function now works with matrices, the dot product becomes matrix multiplication. The SoftMax function is used to normalize the attention weights into the value of 1 prior to being multiplied by the values matrix. The resulting matrix is used either as input into another layer of attention or becomes the output of the Transformer.
Multi-Head AttentionTransformers become even more powerful when multi-head attention is used. Queries, keys, and values are computed the same way as above, though they are now projected into h different representations of smaller dimensions using a set of h learned weights. Each representation is passed into a different scaled dot-product attention block called a head. The head then computes its output using the same procedure as described above.
Formally, the multi-head attention is defined as:
MultiHeadAttention(Q,K,V)=[head1, . . . ,headh]W0 where headi=Attention
The outputs of all heads are concatenated together and projected again using the learned weights matrix W0 to match the dimensions expected by the next block of heads or the output of the Transformer. Using the multi-head attention instead of the simpler scaled dot-product attention enables Transformers to jointly attend to information from different representation subspaces at different positions.
As shown in
Assuming the naive matrix multiplication algorithm which has a complexity of:
a·b·c
For matrices of shape (a, b) and (c, d), to obtain values Q, K, V, we need to compute the operations:
X·WQ, X·WK, X·WV
The matrix X is of shape (n, d) where n is the number of patches and d is the hidden vector dimension. The weights WQ, WK, WV are all of shape (d, d). Omitting the constant factor 3, the resulting complexity is:
n·d2
We can proceed to the estimation of the complexity of the attention function itself, i.e., of
The matrices Q and K are both of shape (n, d). The transposition operation does not influence the asymptotic complexity of computing the dot product of matrices of shapes (n, d)·(d, n), therefore its complexity is:
n2·d
Scaling by a constant factor of √{square root over (dk)}, where dk is the dimension of the keys vector, as well as applying the SoftMax function, both have the complexity of a·b for a matrix of shape (a, b), hence they do not influence the asymptotic complexity. Lastly the dot product
is between matrices of shapes (n, n) and (n, d) and so its complexity is:
n2·d
The final asymptotic complexity of scaled dot-product attention is obtained by summing the complexities of computing Q, K, V and of the following attention function:
n·d2+n2·d.
The asymptotic complexity of multi-head attention is the same since the original input matrix X is projected into h matrices of shapes (n, d/h), where h is the number of heads. From the point of view of asymptotic complexity, h is constant, therefore we would arrive at the same estimate of asymptotic complexity using a similar approach as for the scaled dot-product attention.
Transformer models often have the encoder-decoder architecture, although this is not necessarily the case. The encoder is built out of different encoder layers which are all constructed in the same way. The positional encodings are added to the embedding vectors. Afterward, self-attention is performed.
Encoder Block of TransformerJust like the encoder, the decoder is built from different decoder layers. In the decoder, a modified version of self-attention takes place. The query vector is only compared to the keys of previous output sequence elements. The elements further in the sequence are not known yet, as they still must be predicted. No information about these output elements may be used.
Encoder-Decoder Blocks of TransformerFor some tasks other than translation, only an encoder is needed. This is true for both document classification and name entity recognition. In these cases, the encoded input vectors are the input of the feed-forward layer and the SoftMax layer. Transformer models have been extensively applied in different NLP fields, such as translation, document summarization, speech recognition, and named entity recognition. These models have applications in the field of biology as well for predicting protein structure and function and labeling DNA sequences.
Vision TransformerThere are extensive applications of transformers in vision including popular recognition tasks (e.g., image classification, object detection, action recognition, and segmentation), generative modeling, multi-modal tasks (e.g., visual-question answering, visual reasoning, and visual grounding), video processing (e.g., activity recognition, video forecasting), low-level vision (e.g., image super-resolution, image enhancement, and colorization) and 3D analysis (e.g., point cloud classification and segmentation).
Transformers were originally developed for NLP and worked with sequences of words. In image classification, we often have a single input image in which the pixels are in a sequence. To reduce the computation required, Vision Transformers (ViTs) cut the input image into a set of fixed-sized patches of pixels. The patches are often 16×16 pixels. They are treated much like words in NLP Transformers. ViTs are depicted in
The computations of the ViT architecture can be summarized as follows. The first layer of a ViT extracts a fixed number of patches from an input image (2705). The patches are then projected to linear embeddings. A special class token vector is added to the sequence of embedding vectors to include all representative information of all tokens through the multilayer encoding procedure. The class vector is unique to each image. Vectors containing positional information are combined with the embeddings and the class token. The sequence of embedding vectors is passed into the Transformer blocks. The class token vector is extracted from the output of the last Transformer block and is passed into a multilayer perceptron (MLP) head whose output is the final classification. The perceptron takes the normalized input and places the output in categories. It classifies the images. This procedure directly translates into the Python Keras code shown in
When the input image is split into patches, a fixed patch size is specified before instantiating a ViT. Given the quadratic complexity of attention, patch size has a large effect on the length of training and inference time. A single Transformer block comprises several layers. The first layer implements Layer Normalization, followed by the multi-head attention that is responsible for the performance of ViTs. In the depiction of a Transformer block as 2710, we can see two arrows. These are residual skip connections. Including skip connection data can simplify the output and improve the results. The output of the multi-head attention is followed again by Layer Normalization. And finally, the output layer is an MLP (Multi-Layer Perceptron) with the GELU (Gaussian Error Linear Unit) activation function.
ViTs can be pretrained and fine-tuned. Pretraining is generally done on a large dataset. Fine-tuning is done on a domain specific dataset.
Domain-specific architectures, like convolutional neural networks (CNNs) or long short-term memory networks (LSTMs), have been derived from the usual architecture of MLPs and suffer from so-called inductive biases that predispose the networks towards a certain output. ViTs stepped in the opposite direction of CNNs and LSTMs and became more general architectures by eliminating inductive biases. A ViT can be seen as a generalization of MLPs because MLPs, after being trained, do not change their weights for different inputs. On the other hand, ViTs compute their attention weights at runtime based on the particular input.
Computer SystemIn one implementation, a neural network 2912 is communicably linked to the storage subsystem 2902 and the user interface input devices 2914.
User interface input devices 2914 can include a keyboard; pointing devices such as a mouse, trackball, touchpad, or graphics tablet; a scanner; a touch screen incorporated into the display; audio input devices such as voice recognition systems and microphones; and other types of input devices. In general, use of the term “input device” is intended to include all possible types of devices and ways to input information into computer system 2900.
User interface output devices 2922 can include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices. The display subsystem can include an LED display, a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem can also provide a non-visual display such as audio output devices. In general, use of the term “output device” is intended to include all possible types of devices and ways to output information from computer system 2900 to the user or to another machine or computer system.
Storage subsystem 2902 stores programming and data constructs that provide the functionality of some or all of the modules and methods described herein. These software modules are generally executed by deep learning processors 2924.
Deep learning processors 2924 can be graphics processing units (GPUs), field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), and/or coarse-grained reconfigurable architectures (CGRAs). Processors 2924 can be hosted by a deep learning cloud platform such as Google Cloud Platform™, Xilinx™, and Cirrascale™ Examples of processors 2924 include Google's Tensor Processing Unit (TPU)™, rackmount solutions like GX4 Rackmount Series™, GX6 Rackmount Series™, NVIDIA DGX-1™ Microsoft's Stratix V FPGA™, Graphcore's Intelligent Processor Unit (IPU)™, Qualcomm's Zeroth Platform™ with Snapdragon Processors™, NVIDIA's Volta™, NVIDIA's DRIVE PX™, NVIDIA's JETSON TX1/TX2 MODULE™, Intel's Nirvana™, Movidius VPU™ Fujitsu DPI™, ARM's DynamicIQ™, IBM TrueNorth™, Lambda GPU Server with Tesla V100s™, and others.
Memory subsystem 2904 used in the storage subsystem 2902 can include a number of memories including a main random-access memory (RAM) 2906 for storage of instructions and data during program execution and a read only memory (ROM) 2908 in which fixed instructions are stored. A file storage subsystem 2910 can provide persistent storage for program and data files, and can include a hard disk drive, a floppy disk drive along with associated removable media, a CD-ROM drive, an optical drive, or removable media cartridges. The modules implementing the functionality of certain implementations can be stored by file storage subsystem 2910 in the storage subsystem 2902, or in other machines accessible by the processor.
Bus subsystem 2916 provides a mechanism for letting the various components and subsystems of computer system 2900 communicate with each other as intended. Although bus subsystem 2916 is shown schematically as a single bus, alternative implementations of the bus subsystem can use multiple buses.
Computer system 2900 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, a widely distributed set of loosely networked computers, or any other data processing system or user device. Due to the ever-changing nature of computers and networks, the description of computer system 2900 depicted in
In various implementations, a learning system is provided. In some implementations, a feature vector is provided to a learning system. Based on the input features, the learning system generates one or more outputs. In some implementations, the output of the learning system is a feature vector. In some implementations, the learning system comprises an SVM. In other implementations, the learning system comprises an artificial neural network. In some implementations, the learning system is pre-trained using training data. In some implementations training data is retrospective data. In some implementations, the retrospective data is stored in a data store. In some implementations, the learning system may be additionally trained through manual curation of previously generated outputs.
In some implementations, an object detection pipeline is a trained classifier. In some implementations, the trained classifier is a random decision forest. However, it will be appreciated that a variety of other classifiers are suitable for use according to the present disclosure, including linear classifiers, support vector machines (SVM), or neural networks such as recurrent neural networks (RNN).
Suitable artificial neural networks include but are not limited to a feedforward neural network, a radial basis function network, a self-organizing map, learning vector quantization, a recurrent neural network, a Hopfield network, a Boltzmann machine, an echo state network, long short term memory, a bi-directional recurrent neural network, a hierarchical recurrent neural network, a stochastic neural network, a modular neural network, an associative neural network, a deep neural network, a deep belief network, a convolutional neural network, a convolutional deep belief network, a large memory storage and retrieval neural network, a deep Boltzmann machine, a deep stacking network, a tensor deep stacking network, a spike and slab restricted Boltzmann machine, a compound hierarchical-deep model, a deep coding network, a multilayer kernel machine, or a deep Q-network.
The present disclosure may be embodied as a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present disclosure.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer system/server may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server may be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown in
The bus represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, Peripheral Component Interconnect (PCI) bus, Peripheral Component Interconnect Express (PCIe), and Advanced Microcontroller Bus Architecture (AMBA).
Computer system/server typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory can include computer system readable media in the form of volatile memory, such as random access memory (RAM) and/or cache memory. Computer system/server may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to the bus by one or more data media interfaces. As will be further depicted and described below, memory may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
Program/utility, having a set (at least one) of program modules, may be stored in memory by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules generally carry out the functions and/or methodologies of embodiments as described herein.
Computer readable program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some implementations, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.
The following detailed description is made with reference to the figures. Example implementations are described to illustrate the technology disclosed, not to limit its scope, which is defined by the claims. Those of ordinary skill in the art will recognize a variety of equivalent variations on the description that follows. Reference will now be made in detail to the exemplary implementations of the present disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts.
The following discussion is presented to enable any person skilled in the art to make and use the technology disclosed and is provided in the context of a particular application and its requirements. Various modifications to the disclosed implementations will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other implementations and applications without departing from the spirit and scope of the technology disclosed. Thus, the technology disclosed is not intended to be limited to the implementations shown but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The systems, devices, and methods disclosed herein are described in detail by way of examples and with reference to the figures. The examples discussed herein are examples only and are provided to assist in the explanation of the apparatuses, devices, systems, and methods described herein. None of the features or components shown in the drawings or discussed below should be taken as mandatory for any specific implementation of any of these devices, systems, or methods unless specifically designated as mandatory.
Also, for any methods described, regardless of whether the method is described in conjunction with a flow diagram, it should be understood that unless otherwise specified or required by context, any explicit or implicit ordering of steps performed in the execution of a method does not imply that those steps must be performed in the order presented but instead may be performed in a different order or in parallel.
The detailed description of various implementations will be better understood when read in conjunction with the appended drawings. To the extent that the figures illustrate diagrams of the functional blocks of the various implementations, the functional blocks are not necessarily indicative of the division between hardware circuitry. Thus, for example, one or more of the functional blocks (e.g., modules, processors, or memories) may be implemented in a single piece of hardware (e.g., a general-purpose signal processor or a block of random-access memory, hard disk, or the like) or multiple pieces of hardware. Similarly, the programs may be stand-alone programs, may be incorporated as subroutines in an operating system, may be functions in an installed software package, and the like. It should be understood that the various implementations are not limited to the arrangements and instrumentality shown in the drawings.
The processing engines and databases of the figures, designated as modules, can be implemented in hardware or software, and need not be divided up in precisely the same blocks as shown in the figures. Some of the modules can also be implemented on different processors, computers, or servers, or spread among a number of different processors, computers, or servers. In addition, it will be appreciated that some of the modules can be combined, operated in parallel or in a different sequence than that shown in the figures without affecting the functions achieved. The modules in the figures can also be thought of as flowchart steps in a method. A module also need not necessarily have all its code disposed contiguously in memory; some parts of the code can be separated from other parts of the code with code from other modules or other functions disposed in between.
CLAUSESThe technology disclosed can be practiced as a system, method, or article of manufacture. One or more features of an implementation can be combined with the base implementation. Implementations that are not mutually exclusive are taught to be combinable. One or more features of an implementation can be combined with other implementations. This disclosure periodically reminds the user of these options. Omission from some implementations of recitations that repeat these options should not be taken as limiting the combinations taught in the preceding sections—these recitations are hereby incorporated forward by reference into each of the following implementations.
One or more implementations and clauses of the technology disclosed, or elements thereof can be implemented in the form of a computer product, including a non-transitory computer readable storage medium with computer usable program code for performing the method steps indicated. Furthermore, one or more implementations and clauses of the technology disclosed, or elements thereof can be implemented in the form of an apparatus including a memory and at least one processor that is coupled to the memory and operative to perform exemplary method steps. Yet further, in another aspect, one or more implementations and clauses of the technology disclosed or elements thereof can be implemented in the form of means for carrying out one or more of the method steps described herein; the means can include (i) hardware module(s), (ii) software module(s) executing on one or more hardware processors, or (iii) a combination of hardware and software modules; any of (i)-(iii) implement the specific techniques set forth herein, and the software modules are stored in a computer readable storage medium (or multiple such media).
The clauses described in this section can be combined as features. In the interest of conciseness, the combinations of features are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in the clauses described in this section can readily be combined with sets of base features identified as implementations in other sections of this application. These clauses are not meant to be mutually exclusive, exhaustive, or restrictive; and the technology disclosed is not limited to these clauses but rather encompasses all possible combinations, modifications, and variations within the scope of the claimed technology and its equivalents.
Other implementations of the clauses described in this section can include a non-transitory computer readable storage medium storing instructions executable by a processor to perform any of the clauses described in this section. Yet another implementation of the clauses described in this section can include a system including memory and one or more processors operable to execute instructions, stored in the memory, to perform any of the clauses described in this section.
Clause 1. A computer-implemented method for deterministic validation of automation workflows generated by a large language model (LLM), the method comprising:
-
- generating, by a task guide generation module, a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating, by a validation engine, whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM;
- comparing, by the validation engine, a target UI element in a current application state with a reference UI element;
- determining, by the validation engine, whether the current application state matches a reference page state; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 2. A system for deterministic validation of automation workflows generated by a large language model (LLM), the system comprising:
-
- a task guide generation module configured to generate a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow; and
- a validation engine configured to:
- evaluate whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM;
- compare a target UI element in a current application state with a reference UI element;
- determine whether the current application state matches a reference page state; and
- permit execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 3. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor of a computing system, cause the at least one processor to perform operations comprising:
-
- generating a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating whether the task guide corresponds to a validatable graph prior to transmission of the task guide to a large language model (LLM);
- comparing a target UI element in a current application state with a reference UI element;
- determining whether the current application state matches a reference page state; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 4. The system of clause 2, wherein the task guide is generated based on the recorded video of user interaction with the application.
Clause 5. The system of clause 2, wherein the task guide is generated based on the predefined graph of available application functions.
Clause 6. The system of clause 2, wherein the task guide is generated based on the manually created task flow.
Clause 7. The system of clause 2, wherein the reference UI element and the reference page state are obtained from the previously verified execution.
Clause 8. The system of clause 2, wherein the reference UI element and the reference page state are obtained from the expected-to-be-observed value explicitly assigned within the task guide as the post-execution condition.
Clause 9. A computer-implemented method for deterministic validation of automation workflows generated by a large language model (LLM), the method comprising:
-
- generating, by a task guide generation module, a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating, by a validation engine, whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM, the evaluating comprising determining whether the task guide satisfies a determinism threshold, the determinism threshold being defined based on at least one of path convergence or node activation entropy;
- comparing, by the validation engine, a target UI element in a current application state with a reference UI element;
- determining, by the validation engine, whether the current application state matches a reference page state; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 10. A system for deterministic validation of automation workflows generated by a large language model (LLM), the system comprising:
-
- a task guide generation module configured to generate a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow; and
- a validation engine configured to:
- evaluate whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM by determining whether the task guide satisfies a determinism threshold, the determinism threshold being defined based on at least one of path convergence or node activation entropy;
- compare a target UI element in a current application state with a reference UI element;
- determine whether the current application state matches a reference page state; and
- permit execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 11. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor of a computing system, cause the at least one processor to perform operations comprising:
-
- generating a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating whether the task guide corresponds to a validatable graph prior to transmission of the task guide to a large language model (LLM), the evaluating comprising determining whether the task guide satisfies a determinism threshold, the determinism threshold being defined based on at least one of path convergence or node activation entropy;
- comparing a target UI element in a current application state with a reference UI element;
- determining whether the current application state matches a reference page state; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 12. The system of clause 10, wherein evaluating the task guide further comprises analyzing structural integrity, sequence logic, and contextual completeness of the task guide.
Clause 13. The system of clause 10, wherein the task guide generation module is further configured to select the validatable graph from a library of candidate graphs and to filter out candidate graphs from the library that do not satisfy the determinism threshold.
Clause 14. The system of clause 10, wherein the validation engine is further configured to compare the target UI element with the reference UI element by comparing identifier metadata of the target UI element with identifier metadata of the reference UI element, the identifier metadata being selected from an element identifier, a document object model (DOM) position, label text, or a visual bounding box.
Clause 15. The system of clause 10, wherein the validation engine is further configured to determine whether the current application state matches the reference page state using a similarity metric based on at least one of a visual representation or a structural representation of a page corresponding to the reference page state.
Clause 16. The system of clause 15, wherein the visual representation comprises a full screenshot or a partial screenshot of the page.
Clause 17. The system of clause 15, wherein the structural representation comprises a layout-based map of UI components and positions, types, and interrelationships of the UI components.
Clause 18. The system of clause 10, wherein the reference page state comprises one of a screenshot of the page, a document object model (DOM) tree snapshot, or a layout graph.
Clause 19. The system of clause 10, wherein, when the reference UI element and the reference page state are obtained from the previously verified execution, the validation engine is further configured to determine that the action is reproducible by checking that:
-
- (i) a previously verified action was executed on the reference UI element;
- (ii) the target UI element is identical to or sufficiently similar to the reference UI element within the predetermined threshold of similarity; and
- (iii) the current application state is consistent with a page state observed during the previously verified execution.
Clause 20. The system of clause 10, wherein the validation engine is further configured to terminate execution of the action if the target UI element fails to match the reference UI element within the predetermined threshold of similarity or if the current application state fails to match the reference page state within the predetermined threshold of similarity.
Clause 21. The system of clause 10, wherein the validation engine is further configured to enable a fallback or alternate execution path if the target UI element fails to match the reference UI element within the predetermined threshold of similarity or if the current application state fails to match the reference page state within the predetermined threshold of similarity, the fallback or alternate execution path comprising at least one of an exception-handling routine, an alternate sequence of UI actions, or invocation of human-in-the-loop review.
Clause 22. The system of clause 10, wherein the validation engine is configured to halt or redirect execution of the action if the target UI element fails to match the reference UI element within the predetermined threshold of similarity or if the current application state fails to match the reference page state within the predetermined threshold of similarity, thereby preventing unintended actions.
Clause 23. The system of clause 10, wherein the validation engine is further configured to transmit the task guide to the LLM only when the task guide satisfies the determinism threshold.
Clause 24. A computer-implemented method for deterministic validation of automation workflows generated by a large language model (LLM), the method comprising:
-
- generating, by a task guide generation module, a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating, by a validation engine, whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM, the evaluating comprising computing a determinism score for the task guide based on at least one of path convergence or node activation entropy and comparing the determinism score against a determinism threshold;
- comparing, by the validation engine, a target UI element in a current application state with a reference UI element, the comparing comprising generating, using a neural-network-based similarity model, vector embeddings of the target UI element and the reference UI element, the vector embeddings capturing semantic, visual, and structural properties of the respective UI elements;
- determining, by the validation engine, whether the current application state matches a reference page state, the reference page state comprising a composite structure derived from at least two screenshots of an application window captured at different time intervals; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, the predetermined threshold of similarity being defined by at least one of a pixel-level match tolerance, a structural node equivalency, or an embedding vector distance, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution stored in a deterministic execution cache, the deterministic execution cache storing verified UI elements, corresponding actions, and associated page states from one or more prior verified executions, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 25. A system for deterministic validation of automation workflows generated by a large language model (LLM), the system comprising:
-
- a task guide generation module configured to generate a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- a deterministic execution cache storing verified UI elements, corresponding actions, and associated page states from one or more prior verified executions; and
- a validation engine configured to:
- evaluate whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM by computing a determinism score for the task guide based on at least one of path convergence or node activation entropy and comparing the determinism score against a determinism threshold;
- compare a target UI element in a current application state with a reference UI element by generating, using a neural-network-based similarity model, vector embeddings of the target UI element and the reference UI element, the vector embeddings capturing semantic, visual, and structural properties of the respective UI elements;
- determine whether the current application state matches a reference page state, the reference page state comprising a composite structure derived from at least two screenshots of an application window captured at different time intervals; and
- permit execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, the predetermined threshold of similarity being defined by at least one of a pixel-level match tolerance, a structural node equivalency, or an embedding vector distance, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) the deterministic execution cache, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 26. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor of a computing system, cause the at least one processor to perform operations comprising:
-
- generating a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating whether the task guide corresponds to a validatable graph prior to transmission of the task guide to a large language model (LLM), the evaluating comprising computing a determinism score for the task guide based on at least one of path convergence or node activation entropy and comparing the determinism score against a determinism threshold;
- comparing a target UI element in a current application state with a reference UI element, the comparing comprising generating, using a neural-network-based similarity model, vector embeddings of the target UI element and the reference UI element, the vector embeddings capturing semantic, visual, and structural properties of the respective UI elements;
- determining whether the current application state matches a reference page state, the reference page state comprising a composite structure derived from at least two screenshots of an application window captured at different time intervals; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, the predetermined threshold of similarity being defined by at least one of a pixel-level match tolerance, a structural node equivalency, or an embedding vector distance, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
wherein the reference UI element and the reference page state are obtained from one of: (i) a deterministic execution cache storing verified UI elements, corresponding actions, and associated page states from one or more prior verified executions, or (ii) an expected-to-be-observed value explicitly assigned within the task guide as a post-execution condition.
Clause 27. The system of clause 25, wherein the neural-network-based similarity model is configured to support matching of the target UI element to the reference UI element when minor changes occur in at least one of layout, wording, or rendering of the target UI element due to updates or localization.
Clause 28. The system of clause 25, wherein the predetermined threshold of similarity is defined by the pixel-level match tolerance.
Clause 29. The system of clause 25, wherein the predetermined threshold of similarity is defined by the structural node equivalency.
Clause 30. The system of clause 25, wherein the predetermined threshold of similarity is defined by the embedding vector distance.
Clause 31. The system of clause 25, wherein the validation engine is further configured to determine equivalency between the target UI element and the reference UI element by computing the embedding vector distance between the vector embedding of the target UI element and the vector embedding of the reference UI element.
Clause 32. The system of clause 25, wherein the composite structure of the reference page state captures at least one of a temporal transition, a modal overlay, or a state-dependent change occurring between the at least two screenshots, the state-dependent change comprising at least one of a confirmation dialog or a dropdown expansion.
Clause 33. The system of clause 25, wherein the deterministic execution cache supplies the reference UI element and the reference page state for the action when a verified UI element, corresponding action, and associated page state matching the action are stored in the deterministic execution cache.
Clause 34. The system of clause 25, wherein the validation engine is configured to determine whether the target UI element and the current application state align with a known-valid configuration stored in the deterministic execution cache.
Clause 35. The system of clause 25, wherein the validation engine is further configured to identify a time-relative page state corresponding to a specified action timing offset following execution of the action and to determine validity of the executed action based on whether the time-relative page state matches an expected post-action reference state within the predetermined threshold of similarity.
Clause 36. The system of clause 35, wherein the specified action timing offset is approximately 200 milliseconds following the execution of the action.
Clause 37. The system of clause 25, wherein the sequence of UI actions comprises at least one critical action, and wherein the validation engine is further configured to apply a stricter similarity threshold or an additional confirmation step to the critical action prior to permitting execution of the critical action.
Clause 38. The system of clause 37, wherein the critical action is selected from modifying user access privileges, resetting an application password, or initiating a secure data transmission.
Clause 39. The system of clause 25, wherein the sequence of UI actions comprises at least one UI action that is repeated or re-applied across multiple workflow execution sessions, and wherein the validation engine is further configured to permit execution of the at least one UI action in a subsequent workflow execution session only when a prior execution of the at least one UI action has been validated within the predetermined threshold of similarity.
Clause 40. The system of clause 25, further comprising an automation agent communicatively coupled to the validation engine and to a target application graphical user interface, wherein the automation agent is configured to execute the action against the target application graphical user interface as a permitted simulated UI interaction upon the validation engine permitting execution of the action.
Clause 41. The system of clause 25, wherein the validation engine is further configured to tag each action validated by the validation engine with one or more identifiers, one or more timestamps, and an outcome status.
Clause 42. The system of clause 41, wherein the validation engine is further configured to store one or more reasoning trails, one or more visual cues, and one or more decision states associated with each validated action.
Clause 43. The system of clause 42, wherein the stored reasoning trails, the stored visual cues, and the stored decision states are configured to support root-cause analysis, fine-tuning of model behavior, and regulatory auditability through integration with one or more audit and observability frameworks.
Clause 44. The system of clause 25, wherein the validation engine is configured to constrain the action to a reproducible and verifiably correct path by validating semantic and structural context of the action before permitting execution.
Clause 45. The system of clause 37, wherein the validation engine is further configured to apply, to the critical action, both the stricter similarity threshold and the additional confirmation step prior to permitting execution of the critical action.
Claims
1. A computer-implemented method for deterministic validation of automation workflows generated by a large language model (LLM), the method comprising:
- generating, by a task guide generation module, a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating, by a validation engine, whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM, the evaluating comprising computing a determinism score for the task guide based on at least one of path convergence or node activation entropy and comparing the determinism score against a determinism threshold, such that the task guide is transmitted to the LLM only when the determinism score satisfies the determinism threshold;
- comparing, by the validation engine, a target UI element in a current application state with a reference UI element using one or more element-similarity measures;
- determining, by the validation engine, whether the current application state matches a reference page state; and
- permitting, by the validation engine, execution of an action of the sequence of UI actions only if both the target UI element and the current application state are independently determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
- wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) one or more expected post-execution conditions explicitly assigned within the task guide, the one or more expected post-execution conditions specifying at least one expected UI element, expected UI state, expected page state, or expected state transition.
2. The method of claim 1, wherein generating the task guide comprises selecting the validatable graph from a library of candidate graphs and filtering out candidate graphs from the library that do not satisfy the determinism threshold prior to transmission of the task guide to the LLM.
3. The method of claim 1, wherein the reference page state comprises a composite structure derived from at least two screenshots of an application window captured at different time intervals.
4. The method of claim 1, wherein the reference UI element and the reference page state are obtained from a deterministic execution cache, the deterministic execution cache storing verified UI elements, corresponding actions, and associated page states as element-action-state triplets from one or more prior verified executions.
5. The method of claim 1, wherein, when the reference UI element and the reference page state are obtained from the previously verified execution, the method further comprises determining, by the validation engine, that the action is reproducible by checking that:
- (i) a previously verified action was executed on the reference UI element;
- (ii) the target UI element is identical to or sufficiently similar to the reference UI element within the one or more predetermined similarity thresholds; and
- (iii) the current application state is consistent with a page state observed during the previously verified execution.
6. The method of claim 1, wherein comparing the target UI element with the reference UI element further comprises comparing identifier metadata of the target UI element with identifier metadata of the reference UI element, the identifier metadata being selected from an element identifier, a document object model (DOM) position, label text, or a visual bounding box.
7. The method of claim 1, wherein determining whether the current application state matches the reference page state is performed using a similarity metric based on at least one of:
- a visual representation comprising a full screenshot or a partial screenshot of a page corresponding to the reference page state; or
- a structural representation comprising a layout-based map of UI components, including positions, types, and interrelationships of the UI components.
8. The method of claim 1, further comprising:
- identifying, by the validation engine, a time-relative page state corresponding to a specified action timing offset following execution of the action; and
- determining, by the validation engine, validity of the executed action based on whether the time-relative page state matches an expected post-action reference state within the one or more predetermined similarity thresholds.
9. The method of claim 1, wherein the sequence of UI actions comprises at least one critical action selected from modifying user access privileges, resetting an application password, or initiating a secure data transmission, and wherein the validation engine applies, prior to permitting execution of the critical action, at least one of: (i) a stricter similarity threshold that is more restrictive than a similarity threshold applied to a non-critical action of the sequence of UI actions, or (ii) an additional confirmation step.
10. The method of claim 1, wherein the sequence of UI actions comprises at least one UI action that is repeated or re-applied across multiple workflow execution sessions, and wherein the at least one UI action is executed in a subsequent workflow execution session only when a prior execution of the at least one UI action has been validated within the one or more predetermined similarity thresholds.
11. The method of claim 1, further comprising:
- tagging each action validated by the validation engine with one or more identifiers, one or more timestamps, and an outcome status; and
- storing, in an audit record associated with the validated action, one or more reasoning trails, one or more visual cues, and one or more decision states associated with the validated action.
12. The method of claim 1, wherein comparing the target UI element with the reference UI element comprises generating, using a neural-network-based similarity model, vector embeddings of the target UI element and the reference UI element, the vector embeddings capturing semantic, visual, and structural properties of the respective UI elements, and determining an embedding-vector distance between the vector embeddings.
13. A system for deterministic validation of automation workflows generated by a large language model (LLM), the system comprising:
- a task guide generation module configured to generate a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow; and
- a validation engine configured to: evaluate whether the task guide corresponds to a validatable graph prior to transmission of the task guide to the LLM, the evaluating comprising computing a determinism score for the task guide based on at least one of path convergence or node activation entropy and comparing the determinism score against a determinism threshold, such that the task guide is transmitted to the LLM only when the determinism score satisfies the determinism threshold; compare a target UI element in a current application state with a reference UI element using one or more element-similarity measures; determine whether the current application state matches a reference page state; and permit execution of an action of the sequence of UI actions only if both the target UI element and the current application state are independently determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
- wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) one or more expected post-execution conditions explicitly assigned within the task guide, the one or more expected post-execution conditions specifying at least one expected UI element, expected UI state, expected page state, or expected state transition.
14. The system of claim 13, further comprising a deterministic execution cache storing verified UI elements, corresponding actions, and associated page states as element-action-state triplets from one or more prior verified executions, wherein the validation engine is configured to obtain the reference UI element and the reference page state from the deterministic execution cache.
15. The system of claim 13, wherein the validation engine is further configured to terminate execution of the action upon a failure of either the target UI element or the current application state to match the reference UI element or the reference page state, respectively, within the one or more predetermined similarity thresholds, and to invoke a fallback execution path comprising at least one of an exception-handling routine, an alternate sequence of UI actions, or an invocation of human-in-the-loop review.
16. The system of claim 13, wherein the validation engine is further configured to:
- identify a time-relative page state corresponding to a specified action timing offset following execution of the action; and
- determine validity of the executed action based on whether the time-relative page state matches an expected post-action reference state within the one or more predetermined similarity thresholds.
17. The system of claim 13, wherein the sequence of UI actions comprises at least one critical action selected from modifying user access privileges, resetting an application password, or initiating a secure data transmission, and wherein the validation engine is configured to apply, prior to permitting execution of the critical action, at least one of: (i) a stricter similarity threshold that is more restrictive than a similarity threshold applied to a non-critical action, or (ii) an additional confirmation step.
18. The system of claim 13, wherein the sequence of UI actions comprises at least one UI action that is repeated or re-applied across multiple workflow execution sessions, and wherein the validation engine is configured to permit execution of the at least one UI action in a subsequent workflow execution session only when a prior execution of the at least one UI action has been validated within the one or more predetermined similarity thresholds.
19. The system of claim 13, wherein the validation engine is further configured to:
- tag each action validated by the validation engine with one or more identifiers, one or more timestamps, and an outcome status; and
- store, in an audit record associated with the validated action, one or more reasoning trails, one or more visual cues, and one or more decision states associated with the validated action.
20. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor of a computing system, cause the at least one processor to perform operations comprising:
- generating a task guide comprising a sequence of user interface (UI) actions, the task guide being generated based on at least one of a recorded video of user interaction with an application, a predefined graph of available application functions, or a manually created task flow;
- evaluating whether the task guide corresponds to a validatable graph prior to transmission of the task guide to a large language model (LLM), the evaluating comprising computing a determinism score for the task guide based on at least one of path convergence or node activation entropy and comparing the determinism score against a determinism threshold, such that the task guide is transmitted to the LLM only when the determinism score satisfies the determinism threshold;
- comparing a target UI element in a current application state with a reference UI element using one or more element-similarity measures;
- determining whether the current application state matches a reference page state; and
- permitting execution of an action of the sequence of UI actions only if both the target UI element and the current application state are independently determined to match the reference UI element and the reference page state, respectively, within one or more predetermined similarity thresholds, wherein failure of either the target UI element to match the reference UI element or the current application state to match the reference page state alone is sufficient to deny execution permission,
- wherein the reference UI element and the reference page state are obtained from one of: (i) a previously verified execution, or (ii) one or more expected post-execution conditions explicitly assigned within the task guide, the one or more expected post-execution conditions specifying at least one expected UI element, expected UI state, expected page state, or expected state transition.
Type: Application
Filed: May 22, 2026
Publication Date: Nov 26, 2026
Applicant: RedBlock Security, Inc. (San Ramon, CA)
Inventors: Indus Khaitan (Dublin, CA), Rajvardhan Khaitan (Dublin, CA), Basem Rizk (Pleasant Hill, CA), Aviral Srivastava (Bengaluru)
Application Number: 19/686,373