The problem this solves

A group's consolidated revenue is not the sum of every entity's revenue โ€” some of that revenue is one entity selling to another entity in the same group, and from the outside investor's perspective nothing left the building. Distribution Network billing every store for transferred inventory, Corporate HQ charging every store a management fee, Corporate lending working capital to a joint venture โ€” none of it is a transaction with the outside world, and none of it belongs in the consolidated income statement or balance sheet.

Miss an elimination and the group's reported revenue, expenses, receivables, and payables are all inflated by the same amount on both sides โ€” a error that is easy to miss precisely because the income statement still "balances" (revenue and its offsetting expense both went up together) even though the whole thing is fictional at the consolidated level.

Audience

Consolidation accountants who run the elimination process each close. Controllers designing the intercompany transaction policy โ€” which entities can bill which, at what markup. FP&A teams who need to understand why "consolidated revenue" is smaller than the sum of the entity-level numbers they see in the FP&A module.

A transaction type and a period

Transaction typeSellerBuyersBasis
NLQ query: "Show DC to store transfer eliminations" or "Intercompany loan interest mismatch" โ€” DeepSeek resolves the transaction type, year, and scenario in one step
DC โ†’ Store Inventory TransferDistribution NetworkEvery store and digital entity15% intercompany markup on merchandise cost
Corporate Management FeeCorporate HQEvery operating entity2% of buyer's revenue
Intercompany Loan InterestCorporate HQ (lender)The three JV/equity-method entitiesInterest on formation-funding loans

Matching pairs, a journal, and a break detector

  • Matching pairs table: seller's IC revenue lined up against every buyer's IC expense โ€” for a clean transaction type these sum to exactly the same total
  • Elimination journal: a debit-the-revenue / credit-the-expense entry rendered in the same format a consolidation accountant would recognize, with a visible balance check
  • Reconciliation-break simulator: a toggle that introduces a deliberate $18 mismatch on one loan pair and shows the guardrail catching it โ€” the elimination journal visibly fails to balance and names the specific pair

After translation, before the group total is final

Eliminations run on translated (USD) balances, after Currency Translation and before Ownership & NCI is applied to whatever remains โ€” this is the middle step of a three-step consolidation sequence this module's three use cases walk through in order.

Recommended integration points

  • Close checklist: IC matching runs as a scheduled task before the elimination journal posts, with any break routed back to the entities involved for correction
  • Transfer pricing review: Tax and Treasury periodically confirm the 15% DC markup and 2% management fee are still defensible arm's-length rates
  • New entity onboarding: when a new store opens, it is automatically added to the Corporate Management Fee and DC Transfer buyer population โ€” nothing has to be configured by hand

The numbers

3
IC transaction types
42
Buyer entities (DC/mgmt fee)
3
Intercompany loans
$0.0002
Cost per NLQ query
1
Deliberate break, on demand
$18
Size of the injected break

The honest checklist

  • โœ“Entities in your group trade with each other โ€” inventory transfers, management fees, royalties, intercompany loans
  • โœ“You need a systematic matching step before elimination, not a manual spreadsheet reconciliation each close
  • โœ“You want a break in an intercompany pair surfaced explicitly rather than eliminated anyway with a rounding plug
  • โœ—Your entities never transact with each other โ€” there is nothing to eliminate
  • โœ—You need complex multi-tier eliminations (Entity A sells to B, B sells to C, all intercompany) โ€” this demo models direct pairs only, not elimination chains

Try it now

The live demo runs all three transaction types entirely client-side.

Launch IC Eliminations โ†’ Start a Lab engagement

Things to try

  • Type "Show DC to store transfer eliminations" into the NLQ bar and watch it select the right transaction type
  • Switch between the three transaction types and watch the elimination journal always balance โ€” because it's built from the same source amount on both sides
  • Select Intercompany Loan Interest, then click Introduce an IC mismatch โ€” watch the Riyadh loan pair break and the journal flag it
HOW WE BUILT IT

Why "it nets to zero" is the whole test

An intercompany transaction, correctly recorded, is symmetric by construction โ€” the seller's revenue line and the buyer's expense line are the same number, recorded on two different sets of books. That symmetry is both why elimination is possible (Dr the revenue, Cr the expense, done) and why a mismatch is a red flag rather than a rounding issue: if the two sides of a genuinely intercompany transaction don't match, one side recorded it wrong, translated it at a different rate, or recorded it in a different period โ€” and that has to be found and fixed, not plugged.

Transaction generator โ†’ matching โ†’ journal

Transaction type selected
1
Generate Transactions
genICTransactions(txTypeId, year, scenario)
  • DC Transfer / Mgmt Fee: one row per buyer entity, priced off ENTITY_SEEDS
  • genICLoanInterest(introduceMismatch) for the loan transaction type
2
Matching Check
  • Seller total vs sum of buyer amounts
  • Loan pairs: per-pair lender vs borrower interest, flagged if |diff| > 0.01
3
Renderer
eliminations.html
  • Matching-pairs table
  • Dr/Cr journal box
  • Break alert

App UI โ€” Component breakdown

ComponentBehaviour
Transaction type selectorDC Transfer / Management Fee / Loan Interest โ€” each renders a different table shape (buyer list vs lender-borrower pairs)
Mismatch toggleRed button, independent of transaction type โ€” only visibly affects the Loan Interest view, where it injects an $18 break on one pair
KPI rowSeller total, buyer total, net-after-elimination, and (loan view only) breaks-found count
Matching tableBroken rows highlighted red with a "โœ— BREAK" marker in the Match column
Journal boxMonospace Dr/Cr entry; ends with a green balance confirmation or a red imbalance warning naming the exact dollar gap

Three retail-specific intercompany flows

DC โ†’ Store Inventory Transfer: the Distribution Network isn't a store โ€” it doesn't sell to customers โ€” but it does "sell" transferred inventory to every store and digital fulfillment entity at a markup over merchandise cost. That markup (15% here) is itself a transfer-pricing policy decision, and it generates real intercompany revenue and cost that must eliminate before the group's true external COGS is known.

Corporate Management Fee: every operating entity pays Corporate HQ 2% of revenue for shared brand, systems, and management services. This is one of the most common intercompany flows in any multi-entity retailer and one of the easiest to get wrong at scale โ€” 42 buyer entities means 42 individually small amounts that are easy to miss in aggregate if the elimination isn't automated.

Intercompany Loan Interest: Corporate HQ funded the formation of the three minority-owned JV/equity entities (the same three modeled in Ownership & NCI) with intercompany loans. The interest income at HQ and interest expense at the borrower should match exactly every period โ€” and because loan interest is a fixed, easily-verified number, it's the natural place this kit demonstrates what a genuine mismatch looks like.

Match first, eliminate second

// The core elimination test, applied to every IC pair
if (Math.abs(sellerAmount - buyerAmount) < tolerance) {
  // safe to eliminate: Dr seller revenue, Cr buyer expense, done
} else {
  // reconciliation break โ€” do NOT eliminate; the difference
  // must be investigated and resolved first
}

This is deliberately the entire algorithm. Real FCCS applications add currency handling (an IC pair recorded in two different functional currencies can show a "difference" that's actually a translation timing effect, not a real break) and multi-period matching (a transaction recorded in one entity this month and the other next month), but the underlying test โ€” do the two sides of this pair agree โ€” is unchanged.

What the mismatch simulator actually demonstrates

The failure mode: an intercompany pair that doesn't match cannot be eliminated cleanly. Forcing the elimination anyway (netting to zero regardless) hides a real difference โ€” a booking error, a missed accrual, an FX timing gap โ€” inside the consolidated numbers where no one will ever look for it again.

The demo's Riyadh loan, when the mismatch toggle is on, shows the lender booking $720 of interest income and the borrower booking $702 of interest expense โ€” an $18 gap. genICLoanInterest(introduceMismatch) injects this on exactly one pair so the other two loans keep matching perfectly, which matters pedagogically: a real reconciliation process is mostly clean pairs with the occasional break, not a wall of red.

The general lesson generalizes past this one use case, and echoes the All_ member trap in the Workforce module: a system that lets a mismatch resolve itself silently is worse than one that has no automated matching at all, because it creates false confidence. The right behaviour is always to surface the break with enough detail (which pair, which entities, how much) that a human can fix the root cause.

Cost per query

ComponentDetailCost
LLM input tokens~650 tokens (schema: txType enum + year/scenario)$0.000091
LLM output tokens~55 tokens$0.0000154
Matching + journal generationClient-side arithmetic once the transaction type resolves$0
Total per query~$0.00011
With 2ร— safety margin~$0.0002

The LLM resolves one enum (txType: which of the three transaction types) plus year/scenario โ€” it never touches a dollar amount. Matching, the balance check, and the journal entry are all client-side arithmetic against genICTransactions() / genICLoanInterest(), so the financial correctness of an elimination never depends on the LLM getting a number right.

Cost model โ€” At-scale projections

LLM cost scales with query volume, not transaction volume โ€” roughly $0.0002 whether the resolved transaction type covers 3 buyers or 42. Matching and journal generation itself is driven by transaction volume in a real system (more IC pairs means more matching comparisons), but at any retail-chain scale this remains trivial compute. The real cost driver in production is the process discipline around who is authorized to create intercompany transactions and how quickly a flagged break gets resolved before close.

Key files

FileRole
epm-nlq-src/assets/epm-fccs-data.jsIC_TRANSACTION_TYPES, genICTransactions(), IC_LOANS, genICLoanInterest()
epm-nlq-src/pages/eliminations.htmlUI: NLQ bar, transaction-type selector, mismatch toggle, matching table, journal box, break alert
epm-nlq-src/assets/epm-data.jsShared ENTITIES and ENTITY_SEEDS โ€” buyer amounts are priced directly off each entity's existing revenue seed
functions/api/nlq-query.jsShared NLQ endpoint; Eliminations uses useCase: "eliminations" โ€” a three-way txType enum plus year/scenario, resolved from vocabulary cues ("loan"/"interest" โ†’ IC_LOAN, "management fee"/"royalty" โ†’ IC_MGMT, "transfer"/"inventory" โ†’ IC_XFER)

Tech stack โ€” Every tool in this build

LayerToolWhy
Data layerepm-fccs-data.js (vanilla JS)Deterministic matching logic โ€” the LLM only resolves txType/year/scenario
LLMDeepSeek V3Shared NLQ endpoint; three-way txType enum resolved from vocabulary cues
RenderingVanilla JS DOM, shared epm-nlq.cssConsistent with the other eight use cases, zero framework overhead
Edge hostingCloudflare PagesStatic file, no server compute needed for this use case
BuildEleventy v3.1.5Copies epm-nlq-src/pages/ and epm-nlq-src/assets/ to _site/ verbatim

Known attack surfaces

ThreatMitigation in this build
Forced elimination of a mismatched pairThe demo's journal box explicitly refuses to show a green "balances" confirmation when a break exists โ€” it shows the red imbalance warning instead, by construction
Transfer-pricing manipulationRates (15% DC markup, 2% management fee) are hardcoded constants in this demo, illustrating that in production these need documented, periodically-reviewed transfer-pricing policy, not ad hoc entity-level negotiation
Missed buyer entityicBuyers() derives the buyer population from ENTITIES by filter, not a hardcoded list โ€” a new store added to the cube is automatically included with no separate configuration step

Guardrails โ€” What prevents bad eliminations

  • Explicit match tolerance: Math.abs(lenderInterest - borrowerInterest) < 0.01 โ€” anything outside a cent of rounding is a break, not silently accepted
  • Break-specific messaging: the alert names the exact pair, both booked amounts, and the dollar difference โ€” never a generic "reconciliation failed"
  • Journal never fakes balance: the Dr/Cr entry always reflects the actual booked amounts on both sides, even when they disagree, so the imbalance is visible in the entry itself
  • Buyer population derived, not maintained: new entities are automatically in scope for elimination, removing the "we forgot to add the new store to the elimination template" failure mode

Who is asking, and what are they allowed to see?

The demo answers neither question — it has a cookie gate and no notion of a user. In production these are the two questions everything else rests on, and they have different answers: authentication is who you are, authorization is what you may see. Corporate SSO settles the first. Only Oracle EPM Cloud can settle the second, and the single most important rule in this section is that this application must never become the place where that decision is made.

The rule that governs every choice below: a user must see exactly what they would see by logging into Oracle EPM Cloud directly — no more, and no less. If this tool can surface a number the user could not retrieve themselves, it has become a privilege-escalation path, and it will be found in the first access review.

9.1 · The identity chain, end to end

Finance user opens the tool in a browser — no local account, no password held here
1
Corporate identity provider
Entra ID · Okta · OCI IAM
OIDC Authorization Code + PKCE  (or SAML 2.0)
  • MFA and Conditional Access are enforced here — device compliance, location, risk signals
  • Returns an ID token (who the user is) and an access token (what they may call)
  • Group membership arrives as a claim; the application never handles a password
2
Application session
validate, never trust
  • Verify signature, issuer, audience and expiry against the IdP’s published keys
  • Read the group claims — there is no local user table and no local role table
  • Short-lived access token with refresh-token rotation; session timeout set to the data classification
Pattern A — identity propagation
OAuth 2.0 token exchange (on-behalf-of)
  • The API is called as the user
  • EPM enforces its own security natively
  • Audit trail names the real user
  • Preferred where the API supports it
Pattern B — service account + filtering
one read-only integration account
  • The application becomes the enforcement point
  • Entitlements fetched separately, applied in one audited place
  • Simpler and cacheable — and a filtering bug is a data breach
3
EPM identity domain
roles + dimension security
  • Roles: Service Administrator, Power User, User, Viewer — assigned to groups, never to individuals
  • Data level: FCCS data access by Entity — and intercompany is the awkward case, because a matching view is inherently two entities at once
  • Group → role mapping lives in the platform, not in this application
Result, filtered to this user
eliminations.html
  • The user sees exactly what they would see logging into the source system directly — no more
  • Every query logged against the real end user, never a shared account

9.2 · Federating the corporate identity provider

Oracle EPM Cloud does not replace your directory — it trusts it. The EPM Cloud identity domain is federated with the corporate IdP so authentication happens where it already happens, under policies security has already written.

Identity providerProtocolNotes
Microsoft Entra ID (formerly Azure AD)SAML 2.0 or OIDCThe common case. Conditional Access, MFA and device compliance are enforced at Entra and inherited automatically. On-premises Active Directory federates through Entra Connect rather than being integrated directly.
OktaSAML 2.0 or OIDCSame pattern; Okta groups drive EPM roles through SCIM provisioning.
OCI IAM (identity domains)NativeAlready present with Oracle EPM Cloud. Can be the primary IdP for a smaller estate, or a federated spoke of Entra/Okta for a larger one.
AD FSSAML 2.0Still seen where the estate is not yet cloud-first. Works, but you inherit the on-premises availability of the token service — if AD FS is down, nobody logs in.

For the browser application itself, use OIDC Authorization Code flow with PKCE. Not the implicit flow, which is deprecated and leaks tokens through the URL, and never a resource-owner password grant — a finance tool should not be capable of handling a password at all.

9.3 · From group membership to EPM roles

Roles are granted to groups, never to individuals, and the groups come from the directory. That one discipline is what makes joiner/mover/leaver work without anyone having to remember this application exists.

Entra ID group                    โ†’  EPM role / entitlement
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
FIN-EPM-Analysts                  โ†’  Planning User
FIN-EPM-Controllers-EMEA          โ†’  Power User + EMEA data scope
FIN-EPM-Admins                    โ†’  Service Administrator
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Provisioned by SCIM. Remove the user from the group and the
entitlement disappears on the next sync โ€” including here.

For this use case the relevant native entitlement is: FCCS User with intercompany access on both sides of the pair.

9.4 · The architectural decision: who enforces?

This is the choice that determines whether the deployment is defensible. Both patterns appear in the diagram above; the difference is where the security boundary actually sits.

Pattern A — identity propagationPattern B — service account + filtering
HowThe user’s token is exchanged (OAuth 2.0 on-behalf-of) for one scoped to the EPM API; calls are made as the userA single read-only integration account calls the API; the application filters the results
Enforcement pointOracle EPM CloudThis application
Audit trail showsThe real end userThe service account — you must log the real user separately
Failure modeToken plumbing is more complex; per-user rate limits applyA filtering bug is a data breach, and the entitlement copy drifts from reality
VerdictPrefer this wherever the API supports user-token authenticationAcceptable with discipline: narrowest possible service account, filtering centralised in one tested place, real user in every log line

The shortcut to refuse. Pattern B built with a Service Administrator account and no filtering at all is the most common way this gets delivered, because it works perfectly in UAT — testers are usually over-entitled, so nobody notices that everyone can see everything. It fails at the first access review, and by then it is in production with real users depending on it.

9.5 · Data-level security is the part that matters

Role membership decides whether a user can open the application. It does not decide which rows they get back, and confusing the two is the most expensive mistake available here.

  • For this use case: FCCS data access by Entity — and intercompany is the awkward case, because a matching view is inherently two entities at once.
  • Apply it before aggregation, not after. Filtering a total that has already been computed across entities the user cannot see still leaks the total.
  • The NLQ layer needs its own check. Layer 4 already validates that the resolved point of view uses approved members; production adds a second test — that the resolved POV sits inside this user’s scope — and it runs before the data call, not after. A natural-language interface is very good at asking for things politely; the authorization check must not care how the question was phrased.
  • Fail closed. If entitlements cannot be resolved, return nothing and say so. An empty result is a support ticket; a permissive default is an incident.

9.6 · Provisioning, sessions and the leaver problem

  • SCIM provisioning from Entra or Okta into the EPM Cloud identity domain (OCI IAM, formerly IDCS), covering joiner, mover and leaver. The mover is the case people forget — somebody changing region should lose the old scope, not accumulate both.
  • No local user store. If this application keeps its own copy of who may do what, a leaver keeps access until somebody remembers to update it. Nobody ever does.
  • Short-lived access tokens with refresh-token rotation; align session timeout with the data classification rather than with convenience.
  • MFA and Conditional Access at the IdP — not reimplemented here. Device compliance and location policy come free with federation.
  • Quarterly recertification of both the groups that grant access and the service account’s own entitlements, evidenced and signed.
  • Break-glass access is a named, monitored, time-boxed account — never a shared credential in a password manager.

9.7 · What this means for IC Eliminations

ConcernAnswer for this use case
Native entitlement requiredFCCS User with intercompany access on both sides of the pair
Data-level controlFCCS data access by Entity — and intercompany is the awkward case, because a matching view is inherently two entities at once
Use-case-specific sensitivityAn IC matching screen shows one entity its counterparty’s booked amount. That is usually intended, but it must be a decision rather than an accident: either require access to both entities, or show the user only their own side and the difference, never the counterparty’s detail.

9.8 · Security configuration checklist

  • ✓Oracle EPM Cloud federated with the corporate IdP over SAML 2.0 or OIDC; the cookie gate removed entirely
  • ✓Browser app uses OIDC Authorization Code + PKCE — no implicit flow, no password grant
  • ✓MFA and Conditional Access enforced at the IdP, not reimplemented in the application
  • ✓Roles granted to directory groups, never to individuals; SCIM covers joiner, mover and leaver
  • ✓Enforcement pattern chosen deliberately — Pattern A where the API supports it, or Pattern B with filtering centralised and tested
  • ✓Data-level security applied before aggregation, and the resolved POV checked against the user’s scope before the data call
  • ✓No local user table and no local role table anywhere in the application
  • ✓Every query logged against the real end user, even when a service account makes the call
  • ✓Authorization failures fail closed and are logged as security events rather than swallowed
  • ✓Quarterly recertification of access groups and of the service account’s own entitlements
Talk through your identity model → Back to the demo

From demo to a governed enterprise deployment

Everything above runs on synthetic data, a public LLM API key, a cookie gate, and no audit trail — deliberately, so the mechanics are inspectable. Taking IC Eliminations to production is not a rewrite; the 4-layer pipeline and the data-layer contract survive intact. It is a controlled-change program across six workstreams: architecture, LLM platform, security, SOX/audit, environment promotion, and operations. This section is the checklist we run with clients.

The one rule that matters most for this use case: in the demo the browser computes the result; in production Oracle computes and this layer retrieves and explains. Never ship a second calculation engine that can disagree with the system of record — the moment two numbers exist, the audit question becomes “which one is right,” and the answer must always be the EPM module.

10.1 · Production reference architecture

Finance user · corporate SSO (OIDC/SAML + MFA) · EPM role claims
1
Edge / API Gateway
WAF · rate limit · identity
  • Terminates SSO, validates the session, attaches the user’s EPM groups to the request
  • Rate limits per user, blocks anonymous access, scrubs PII patterns before anything reaches the orchestrator
2
NLQ Orchestrator
the 4-layer pipeline, hardened
L1 guardrails → L2 grounding → L3 LLM adapter → L4 eval + fallback
  • L2 grounding reads dimension metadata from EPM on a schedule — not a hardcoded schema
  • Only the schema + user query go to the model; financial values never leave the data layer
  • L4 rejects anything outside the approved member lists and falls back to the deterministic parser
Oracle OCI Generative AI
same tenancy as EPM Cloud
  • Data stays inside the OCI boundary
  • Natural fit when EPM is already in OCI
Azure OpenAI / AWS Bedrock / Vertex AI
private endpoint, zero retention
  • Use the hyperscaler the org already governs
  • Enterprise DPA, no training on prompts
Self-hosted open weights
VPC / air-gapped
  • For regulated or sovereign data
  • Highest control, highest run cost
3
EPM Data Layer
Oracle EPM REST API
  • Oracle FCCS Intercompany module — matching status and elimination journals via REST; break detection is the ICP matching engine’s, surfaced here with an explanation
  • Least-privilege service account (read-only role, one app, one pod) with the token in a vault and rotated
  • Results filtered to the requesting user’s EPM security before rendering
4
Audit & Observability
append-only
  • Every query logged: user, timestamp, raw query, parsed intent JSON, model + prompt version, POV returned, latency, cost
  • Exported to the SIEM; retained per the SOX evidence schedule
  • Dashboards for fallback rate, eval pass rate, guardrail hits, p95 latency, spend
Rendered result + evidence trail
eliminations.html
  • The parsed JSON is shown to the user as the explanation (“AI: entity · year · scenario — 93% confident”) — the same line the demo prints today
  • Every number on screen traces to an EPM cell intersection an auditor can reproduce

10.2 · Choosing the LLM platform

The demo’s DeepSeek call is a placeholder for a single adapter, callLLM(system, user), behind Layer 3. Swapping the provider changes one function and zero business logic. Pick the platform the organisation already governs — the security and procurement review is the long pole, not the integration.

OptionChoose whenData posture
Oracle OCI Generative AI (Cohere Command, Llama)EPM Cloud already lives in OCI; you want one cloud boundary and one contractPrompts stay in the OCI tenancy; no training on customer data; dedicated AI clusters available for isolation
Azure OpenAI ServiceMicrosoft-first finance estate (Entra ID, Purview, Sentinel already in place)Private endpoint, regional deployment, zero-retention by default under the enterprise agreement
AWS Bedrock (Claude, Titan) / Google Vertex AI (Gemini)The org’s landing zone is AWS or GCP; VPC endpoints and IAM already auditedVPC/PSC private access, no data used for training, CloudTrail/Cloud Audit Logs integration
Direct enterprise API (Anthropic, OpenAI)Fastest model access; acceptable when a zero-data-retention agreement and DPA are signedZDR endpoint, SSO-managed keys, SOC 2 report on file
Self-hosted open weights (Llama, Mistral, Qwen via vLLM)Sovereign or air-gapped requirements; regulated data classification forbids any external inferenceFull control; you own patching, eval, and capacity — budget for an MLOps owner

Put a model gateway in front of whichever you choose (Azure API Management, OCI API Gateway, Kong AI Gateway, LiteLLM, or Portkey): it owns key custody, per-team spend caps, routing and fallback between models, prompt/response logging, and lets you retire a deprecated model without touching the application.

10.3 · Security controls

ControlImplementation
Identity & accessCovered in full in section 09 — corporate SSO, group-to-role mapping, and the decision about who enforces data-level security. Listed here because it is a production gate, not because it is optional.
Service accountOne read-only EPM service account per application per pod, least-privilege role, no interactive login, credential in a vault (OCI Vault, Azure Key Vault, HashiCorp Vault), rotated on a schedule and on staff change.
Secrets & configNo secrets in code or build artifacts; environment-specific config injected at deploy; .dev.vars-style files never leave a developer machine.
NetworkPrivate endpoints to the LLM provider and to EPM where the platform supports them; egress allow-list so the orchestrator can reach exactly two hosts; TLS 1.2+ everywhere.
Prompt-injection & input guardrailsLayer 1 (already in the demo) blocks instruction-override patterns, enforces length and scope; extend with a classifier on the gateway and log every rejection.
Output guardrailsLayer 4 (already in the demo) validates every returned member against the approved lists and strips unexpected keys; production adds a policy check that the resolved POV is inside the user’s security scope before the data call.
Data minimisationPrompts contain metadata and the user’s query only. No cell values, no employee names, no free-text comments from EPM. Logged prompts are classified and retained accordingly.
EncryptionIn transit (TLS) and at rest (provider-managed KMS); audit logs on immutable storage with customer-managed keys where policy requires.

10.4 · SOX, audit, and model-risk controls

A read-only NLQ layer does not change a financial-reporting control, but it is an interface to a SOX-relevant system and lands squarely in ITGC scope. Treat prompts, schemas, and eval sets as code — that single decision satisfies most of what an auditor will ask for.

RequirementHow it is satisfied
Complete, immutable audit trailAppend-only log of user, timestamp, raw query, parsed JSON, model and prompt version hash, POV returned, and row count — WORM storage, retained for the evidence period (typically 7 years), exported to the SIEM.
Change managementPrompt templates, few-shot examples, approved-member schema, and code are version-controlled; every change follows ticket → peer review → test evidence → CAB approval → deploy. A prompt edit is a code change.
Segregation of dutiesDevelopers cannot deploy to production; the service-account owner is not a developer; production secrets are held by platform operations.
Access recertificationQuarterly review of who can use the tool and of the service account’s EPM roles, evidenced and signed.
Testing evidenceA golden-query regression suite (the few-shot examples plus a larger labelled set) runs in CI before every release; pass rate and diffs are archived as release evidence.
Model risk managementAn inventory entry (intended use, limitations, owner, validation date) in the model-risk register — the SR 11-7 pattern for financial services; periodic re-validation when the model or prompt changes.
Reproducibility & lineageEvery displayed number traces to an EPM POV and a consolidation/calculation timestamp; an auditor can re-query the same intersection in EPM and match it.
ExplainabilityThe parsed intent JSON is the explanation and is shown to the user on every response — no hidden reasoning between the query and the data call.

10.5 · Dev → Test → Prod promotion

EnvironmentEPM targetDataGate to leave
DevEPM Test pod (developer slice)Synthetic or maskedUnit tests on the data layer; lint; eval suite ≥ threshold against the Test LLM deployment
Test / UATEPM Test pod (full refresh)Masked copy of productionBusiness UAT sign-off on the golden queries; security scan; performance run (p95 latency, fallback rate)
ProdEPM Production podLiveChange ticket approved; deploy in window; smoke test; hypercare with rollback ready
  • Promoted artifacts: application build, prompt templates (versioned), approved-member schema snapshot, eval set, infrastructure config (IaC) — all from the same Git tag.
  • Pipeline: branch → PR review → CI (tests + evals) → deploy to Test → UAT sign-off → CAB → deploy to Prod → smoke test. Hosting can stay on Cloudflare Pages/Workers or move to OCI Functions + API Gateway or the org’s standard platform — the code does not care.
  • Configuration: per-environment secrets and endpoints injected at deploy; the same build runs in every environment.
  • Metadata sync: a scheduled job refreshes dimension metadata into Layer 2 grounding with change detection, so a new entity or account appears in the approved lists without a code release.
  • Rollback: previous build and previous prompt version retained; rollback is a redeploy, and because prompts are versioned it also reverts a prompt regression.

10.6 · Operating it

  • SLOs: p95 latency, availability of the read path (the deterministic fallback keeps it alive when the LLM is down — already built), fallback rate as a quality signal, eval pass rate per release.
  • Cost governance: per-user and per-team token budgets at the gateway; alert on anomalies; the unit-cost model earlier in this kit is the baseline.
  • Model lifecycle: providers retire models on a schedule — re-run the eval suite on the successor before switching, and record the switch as a change.
  • Incident runbook: LLM outage → fallback parser; EPM API outage → cached metadata with a stale banner; guardrail spike → review logs for injection attempts.

10.7 · What changes for IC Eliminations

ConcernProduction answer
System of recordOracle FCCS Intercompany module — matching status and elimination journals via REST; break detection is the ICP matching engine’s, surfaced here with an explanation
Read/write postureRead-only. Breaks are resolved in FCCS/ARCS, never from this UI.
Use-case-specific controlLink each surfaced break to its Account Reconciliation item so the audit trail lives in the system that owns the control.

10.8 · Production readiness checklist

  • ✓LLM platform selected from the governed list, DPA / zero-retention terms on file, gateway in front of it
  • ✓SSO integrated; authorisation derived from EPM security groups; cookie gate removed
  • ✓Read-only EPM service account per pod, credential in a vault, rotation scheduled
  • ✓Prompts, schema, and eval set version-controlled and under change management
  • ✓Append-only audit log wired to the SIEM with the agreed retention
  • ✓Golden-query eval suite passing in CI; results archived as release evidence
  • ✓Dev / Test / Prod pipeline with gates, IaC, and a rehearsed rollback
  • ✓Model-risk register entry and owner named; first re-validation date set
  • ✓Metadata refresh job scheduled with change detection
  • ✓SLOs, cost caps, and the incident runbook agreed with platform operations
Plan a production rollout with us → Back to the demo