aiFWall Logo aiFObserve

Technical architecture and control design for enterprise applications

Deployment

AI agents can authenticate correctly and still perform actions that violate a business control. A procurement agent might change a supplier bank account, pass work to a second agent, and trigger a payment through another application. Security, finance, and audit teams need a defensible answer to the same question: What did AI agents actually do after authorized access?

aiFObserve provides a foundation for that answer by combining normalized AI sessions, usage and cost analysis, behavioral risk signals, custom rules, and evidence exports. Connecting those observations to identity and business transaction records can turn an isolated AI session into a reviewable account of who acted, under whose authority, on which object, with what outcome.

The control objective

For an AI assisted process that affects financial reporting, the control objective is to identify and investigate activity that could undermine authorization, separation of duties, transaction integrity, or the reliability of supporting records. Management determines the relevant risks and controls; the auditor evaluates the evidence. The SOX connection follows the financial process and affected assertions, rather than the presence of AI alone. [1, 2]

Capability layer

Role in this architecture

Available v2 foundation

Session normalization, provenance, usage, cost, ROI scenarios, trends, security findings, custom record rules, and compliance evidence CSVs.

Configured integration

Source mappings, approved providers and regions, thresholds, identity enrichment, and rules using fields retained by the normalized data model.

Required extension for transaction controls

ERP and application event adapters, delegated agent identity, business object relationships, ordered cross event SoD logic, and a SOX control mapping.

This architecture describes both the existing analytics foundation and the integration work required for full agent transaction assurance. The current framework reporter covers 11 named frameworks; SOX is not currently a named report. Full cross application SoD detection must be implemented and validated against business events before it is offered as an operating control.

Architecture for authorized access and subsequent activity

Use an event collection layer to preserve application actions alongside the existing session analytics pipeline. Transaction history must remain available at event level because a session total cannot establish the order of a master data change, approval, and payment.

Stage

Implementation and responsibility

1 Collect

Export identity decisions, AI traces, tool calls, business application audit events, gateway decisions, and network observations. Preserve original records and source event IDs.

2 Convert and correlate

The v2 converter and correlator family handles AI sessions, OTLP JSON, firewall and WAF logs, and IPFIX or NetFlow exports. Add application adapters for business actions and approvals.

3 Normalize and retain

normalized_loader_v2.py and normalized_schema_v2.py establish the analyzer boundary. Extend both for business semantics; retain a separate ordered event history and source references.

4 Analyze

Run usage_analyzer_v2.py, cost_analyzer_v2.py, trend_analyzer_v2.py, security_analyzer_v2.py, and custom_rule_detector_v2.py. Add a stateful transaction control evaluator for cross application SoD.

5 Build evidence

compliance_evidence_builder_v2.py and compliance_framework_reports_v2.py supply reusable evidence and existing framework outputs. Add SOX control IDs, transaction timelines, and review dispositions.

6 Review and respond

Deliver findings to finance control owners, GRC workpapers, and SOC workflows. Identity revocation, payment holds, and inline blocking require connected enforcement systems.

A minimum event contract

Retain event ID, tenant, application, UTC event and ingestion times, actor ID, agent ID, delegated principal, agent run ID, trace and parent span IDs, action, target object, before and after values or protected references, result, and correlation confidence. For financial workflows also capture transaction amount and currency, approval ID, approver, approval scope and time, legal entity, and business process ID. These business fields require schema and loader extensions; they are not all native normalized session fields today.

Keep sensitive content in an appropriately controlled source repository where possible. Use references or redacted values in analytics. Model prompts, payroll data, bank details, and audit workpapers need access restrictions and retention policies aligned to the organization.

Sources and correlation determine the quality of the answer

Source family

Evidence contributed

Remaining dependency

Identity and privileged access

Authentication, grants, token subject, service identity, elevation, and delegation.

Map a credential to the agent run and accountable owner. Login alone does not identify a transaction.

AI runtime and OTLP

Trace context, model or provider, token use, tool calls and errors where emitted.

Instrument application outcomes and retain trace links across tools.

ERP and finance applications

Supplier changes, invoices, journal entries, payments, receipts, approvals and reversals.

Build and validate source specific mappings and extract business object IDs.

Other enterprise applications

CRM discounts, HR pay changes, service approvals and repository access.

Resolve shared process IDs across applications and financial boundaries.

Firewall WAF and network flows

Destinations, timing, volume, deny actions, and external exposure.

Encrypted flow data cannot identify the business meaning of an action.

SIEM and data controls

Security alerts, DLP or classification decisions, and original event references.

Preserve original provenance and avoid counting forwarded copies as new actions.

Use explicit relationships before proximity

Join within the same tenant and environment using an application transaction ID, trace or run ID, or verified delegation relationship. A common IP address and close timestamps are weaker evidence, especially behind proxies and shared service accounts. Keep uncertain matches separate and show the matching keys and confidence to reviewers. A trace ID can be reused or supplied by a client, so tenant and source validation still matter.

Preserve contradictions and missing coverage

Record both the attempted tool call and the application result. A gateway allow decision proves permission at that point; an ERP commit proves a business change. A timeout does not prove that a transaction failed. Record late events, clock skew, collection outages, and unlinked actions. Missing approval evidence is a review condition until the approval source and collection completeness have been checked.

The inspected v2 session correlator retains correlation metadata and applies maximum values to selected numeric fields when combining overlapping observations. That supports session enrichment. Financial transaction counts, provider charges, and ordered business actions still need event specific reconciliation and authoritative source rules.

Worked example of cross application separation of duties

Illustrative scenario: an agent processes a supplier payment across a procurement system, an ERP, and a treasury service. The control prohibits the same accountable principal or delegated agent chain from both changing bank details and releasing payment to that supplier without a separate, valid approval.

UTC time

Observed action

Required evidence

09 02

Agent AP17 receives a delegated finance token.

Identity subject, owner, grant scope and run ID R55.

09 05

AP17 changes supplier S842 bank details in ERP.

Committed change event, old and new value references, actor and supplier ID.

09 08

AP17 invokes treasury agent PAY9.

Parent run R55, child run R56, delegated principal and tool invocation.

09 10

PAY9 releases payment P300 to supplier S842.

Payment commit, beneficiary version, amount, currency and legal entity.

Review

Search for independent approval of this change and payment.

Approval identity, scope, validity window and linkage to the beneficiary version.

The detection logic

Resolve the initiating principal and verified agent delegation chain. Find a committed bank detail change and a committed payment against the same supplier and legal entity within the policy window. Establish whether the payment used the changed details. Check for an independent approver whose approval covered the relevant change, payment, and timing. Apply approved exceptions and reversals. Emit a potential SoD violation when the prohibited relationship is established and no valid independent approval is present in a complete approval dataset.

An example window of 24 hours is a test parameter, not a universal control requirement. Identity matching must account for agents using separate credentials under the same principal and avoid merging unrelated agents with a common platform owner. A legitimate shared owner may require additional role and process evidence before a conflict is concluded.

What the reviewer receives

The proposed evidence package contains the event timeline, delegation links, supplier and payment references, change version, amount, control and rule versions, matching keys, approval search result, collection coverage, and exception rationale. It distinguishes a confirmed transaction relationship from an inferred actor relationship.

Current custom rules evaluate individual enriched records and consolidate repeated matches. Consolidation does not establish ordered actions across applications. This scenario requires an additional stateful evaluator and event model, or a trusted upstream service that computes and supplies the required transaction relationships.

ERP and enterprise application risk coverage

Prioritize scenarios by financial exposure, autonomy, transaction reversibility, and evidence availability. The following examples describe control designs for an integrated deployment; application names identify target event sources, not prebuilt native aiFObserve connectors.

Process and example systems

Risk to test

Business evidence needed

Procure to pay in SAP or Oracle with Coupa or Ariba

Supplier create or bank change followed by invoice approval or payment by a linked principal.

Supplier version, invoice and payment IDs, delegation, independent approval and committed outcomes.

Financial close in SAP Oracle or NetSuite

Agent prepares and posts its own journal; late or unusual entries; reversals hiding activity.

Journal lines, preparer and poster, accounting period, amounts, approval, reversal chain and cutoff policy.

Order to cash with Salesforce and ERP

Agent grants a discount or changes contract terms and also approves a credit or refund.

Contract version, order and credit IDs, discount authority, revenue policy and separate approval.

Payroll with Workday or SAP SuccessFactors

Agent changes employee pay or bank data and participates in payroll release.

Employee and pay run IDs, protected change references, effective date, approval and payment result.

Service workflows with ServiceNow and privileged access

Agent opens or approves its own change, elevates access, and modifies production.

Ticket history, approver independence, grant expiry, deployment record and actor linkage.

Data and AI tools across applications

Agent exports sensitive records, invokes an unapproved provider, or loops through costly tools.

Object classification, DLP result, provider destination, tool trace, token usage and approved purpose.

Separate risk signals from business violations

aiFObserve can already flag supported network and session patterns such as unauthorized AI access, suspicious volume, exfiltration patterns, connection anomalies, or cost amplification when the relevant fields are present. An anomaly is a reason to investigate. It does not by itself establish fraud, an incorrect accounting entry, or a material weakness.

Tool error spikes and abnormal request or response patterns can support an investigation into prompt injection or tool abuse. A conclusion that an injected instruction caused a payment requires instruction or tool evidence linked to the business action. Aggregate tool counts cannot reveal which ERP operation was executed.

Behavioral analytics and economic accountability

observed behavior at the right level

The available analyzers summarize sessions, providers, applications, users, time patterns, blocks, tool counts, cache behavior, and cost concentration. These metrics help reviewers find unusual growth, repeated retries, unapproved destinations, and activity outside expected operating periods. Interpret time patterns in the relevant business timezone and distinguish service accounts from people.

Decision question

Analysis and required context

Did this agent act within its approved purpose

Join its observed actions to the approved process, owner, allowed tools and delegation policy. Purpose and per action scope need integration.

Did behavior change after an update

Compare comparable periods by agent version and process. Agent version, case mix and release records need enrichment.

What does a completed business task cost

Link authoritative model usage and tool charges to a completed transaction. Normalize retries and shared traces; add task outcomes and accounting data.

Where should finance intervene

Review concentration, blocked or failed activity, forecast assumptions and policy exceptions. Investigate waste before restricting productive workloads.

Can an auditor reproduce the finding

Retain source IDs, inputs, parameters, price assumptions, rule version and evidence references. Add governed snapshots for reproducibility.

Keep cost estimates and realized value distinct

The current cost suite uses a static pricing model and can derive tokens from network bytes. Native provider token counts improve measurement, but negotiated prices, cache discounts, batch rates, GPU commitments, and tool charges still require reconciliation. Compare modeled cost with invoices before treating the result as financial spend. Projection ranges are planning scenarios, not statistical confidence intervals.

ROI requires business outcome evidence. A useful integrated measure is cost per successfully completed, policy compliant case. Add accepted output, completion status, measured handling time, and rework before claiming realized savings. Token volume and an assumed value per megabyte cannot establish business benefit on their own.

Privacy and geographic evidence

Use provider region, declared residency, allowed regions, cross border indicators, and source confidence to identify boundary exceptions. IP geolocation does not prove where a provider stored or processed data. Classification, contract terms, lawful basis, and retention commitments require evidence from the relevant organizational systems.

Evidence for SOX controls and audit review

SOX Section 404 concerns management assessment of internal control over financial reporting. Applicability of auditor attestation depends on issuer requirements and exemptions. aiFObserve can support control monitoring and evidence preparation; a framework report or risk score does not constitute an audit opinion. Management and the auditor determine how evidence supports their conclusions. [1, 2]

Control objective

Reviewable evidence

Reviewer judgment

Authorization and SoD

Actor and delegation links, transaction sequence, independent approval and policy exception.

Was independence established and did approval cover the actual action.

Transaction integrity

Committed application outcomes, protected before and after values, reversals and authoritative totals.

Did the transaction create a risk to relevant financial statement assertions.

Change and access controls

Agent version, tool permissions, elevation records, deployment approval and expiry.

Were control relevant changes and privileges governed effectively.

Evidence reliability

Source population, ingestion reconciliation, missing intervals, transformations and retained originals.

Is the information accurate and complete enough for the audit purpose.

Monitoring and remediation

Finding ownership, investigation, disposition, retest and unresolved exceptions.

Was the control performed consistently and did corrective action address the cause.

Build an evidence package that can be challenged

Available CSV exports cover evidence summaries, field coverage, provider locations, data boundaries and control mappings; incidents also retain triggering session details. Extend the package with a control ID, period, scope, versioned rule, event timeline, source manifest, reviewer disposition, and remediation reference. Keep a completeness reconciliation and identify the population from which a reviewer selects items.

The source manifest should link preserved event records to the export and record transformations, exclusions, deduplication, time handling, and late arrivals. Integrity hashes, immutable storage, access history, and retention enforcement should be provided by a governed evidence repository and integration workflow; they should not be assumed to exist because a CSV was produced.

PCAOB AS 1105 addresses sufficient appropriate evidence and the reliability of information used in an audit, including accuracy and completeness considerations for company produced information. Reconcile exporter totals to source populations and test field transformations before relying on analytics in a control review. [3]

Deployment plan and proof of control value

Start with a bounded business process such as supplier changes and payments in one legal entity. A practical pilot combines the available v2 analytics with the event and control extensions required for that process. Set the operating cadence from the control objective and measured ingestion delay; the file based pipeline alone is not a guarantee of continuous or real time coverage.

Workstream

Concrete completion criterion

Scope and ownership

Finance signs off the risk, control rule, policy window, exceptions, accountable owner and financial process population.

Collection and enrichment

Reconcile source totals; preserve original IDs; map agent delegation, object IDs, approval scope and committed outcomes.

Rule implementation

Validate ordered actions, independent approval and exceptions. Extend schema and loader together and keep ordered events available.

Detection testing

Replay known compliant and conflicting cases, missing approval feeds, unrelated shared IPs, reversals, late events and credential changes.

Review and adoption

A finance owner reproduces findings; audit evaluates workpaper usability; operations demonstrates collection monitoring and reruns.

Measure ingestion completeness, action attribution, transaction linkage, approval coverage, false positives on adjudicated cases, missed seeded conflicts, event to finding delay, and time to assemble a review package. Agree thresholds before the pilot. For example, report attributable actions divided by observed in scope actions together with source completeness, because a high attribution rate on an incomplete population can mislead.

Current module responsibilities

The inspected v2 runner invokes usage, cost, ROI, projection, trend, security, recommendation, and optional custom rule and framework reporting functions after normalization. The shared ai_identity_resolver.py resolves AI provider and application identity; it is not an agent delegation graph. The SOX transaction model, application adapters, ordered SoD evaluator, approval validation, and governed evidence workflow are additional implementation work.

Sources and technical basis

Product basis: current v2 runner, normalized schema and loader, custom rule evaluator, security analyzer, cost and trend documentation, compliance evidence builder and framework reports, plus the v2 session correlator and OTLP converter. Inspection date 14 October 2026. Script names are given without installation paths.

[1] SEC Staff Statement on Management's Report on Internal Control Over Financial Reporting. https://www.sec.gov/info/accountants/stafficreporting.htm

[2] PCAOB AS 2201 An Audit of Internal Control Over Financial Reporting. https://pcaobus.org/oversight/standards/auditing-standards/details/AS2201

[3] PCAOB AS 1105 Audit Evidence. https://pcaobus.org/oversight/standards/auditing-standards/details/AS1105

Reference pages checked 14 October 2026. AS 2201 lists amendments effective 15 December 2026; apply the version relevant to the engagement period.