Go to content
Skip menu
Skip menu
DE   EN
YourValidator
Enterprise blueprint · Part of the enterprise license documents

From planning calculator to enterprise solution.

This blueprint describes how agency networks and SaaS companies with an enterprise license can expand YourValidator, based on the tested state, into an enterprise version: with a standalone calculation core, a versioned plan format, multi-client workspaces for agencies, verifiable handover to corporate clients and a clear division of labor. The licensee's MCP agents gather the data and transfer it into the JSON; the complex calculations run on the client.

Foundation

Tested calculation core

Saturation, cross-channel effects, action channels, target back-calculation, break-even and customer lifetime value, backed by 2,324 automated tests per full run.

Expansion

The plan as a document

A versioned plan format with clients, approvals, checksum and signature. All interfaces work with the same format.

Operation

Agents deliver, clients calculate

The licensee's MCP agents gather the data and hand it over as JSON. The calculation runs in the browsers of the agencies and companies, without a central calculation cloud.

ScopeThe blueprint is an architecture and implementation plan. The enterprise functions described here are not part of the current product. They show how the expansion can be carried out in verifiable steps without changing the tested calculation.

01

Starting point in the code

What exists today and what that means for the expansion.

The current application is functionally complete and extensively tested. Technically, it is a single document per language version in which interface, state and calculation are interwoven. That supports today's product; for an enterprise layer, the calculation core is extracted first.

AreaTodayConsequence for the expansion
CalculationHill saturation, target back-calculation, halo and action channels, deterministic and backed by 2,324 tests per full run including reference scenariosThe greatest asset. It is moved, not rewritten.
StateThe calculation reads values directly from the page's input fields: 267 in the initial state with seven channels, 22 to 33 more per additional channelFor version comparison, signatures and agent access, the calculation must work with a plan object instead of fields.
Data modelA complete JSON state with fixed keys already exists (export, import, AI interface)A good starting point for a versioned plan format.
LanguagesGerman and English versions are separate files with built-in textsOne code base with language packs; one change instead of one port per language.
StorageBrowser storage, saved plans, encrypted backup, CRM import, Zapier exportA good basis for interchangeable storage targets.
TestsPlaywright tests against the finished page, network-independent, with checksumsIn addition, tests for the calculation core without a browser, in milliseconds.

02

Target picture

What an enterprise version consists of according to this blueprint.

ComponentContent
Calculation coreStandalone module with a public, versioned interface: saturation, halo, actions, target back-calculation, simulation, break-even, customer lifetime value
Plan formatJSON schema with client structure, versions, approvals, checksum and signature
ApplicationComplete planning interface in German and English, white label (name, logo, colors, texts, benchmark sets via configuration)
Connection pointsInterfaces for sign-in, storage, audit events, webhooks and benchmark providers, each with a reference adapter
ReferencesSample adapters (file, S3, SharePoint), REST example, self-hosted MCP server: agents deliver data into the plan JSON and read the results calculated on the client
DocumentationInterface reference, model formulas, integration guide, operating notes
EvidenceSelf-run test suite, test report, checksums per version

03

Target architecture

All interfaces call the same calculation core and work with the same plan format.

The calculation core stays in the browser; the enterprise version wraps around it as a layer

Interfaces and access

ApplicationPlanning in German and English, white label
Partner embeddingfor the licensee's partners
Portfolio viewTotals across clients and brands, read-only
MCP server and RESTAgents deliver data, read resultsoptional · phase 5
Calculation core (own module)Saturation, halo, actions, target back-calculation, simulation, break-even, customer lifetime valueA pure function: plan in, result outRuns in the user's browser and in tests
Plan format (versioned JSON)Inputs, clients, versions, approvalsSHA-256 over canonical JSON, signatureSchema and engine version

Connection points · phase 4, each with a reference adapter

Sign-inOIDC, SAML
StorageFile, S3, SharePoint
Audit and webhooksEvents to own systems
Benchmark providerswith sample size, source, reference date

The licensee's infrastructure

SSO, storage targets, logging, CRM, own agents and data sources. Operated by the licensee; no central service and no calculation cloud from YourValidator.

All interfaces call the same calculation core and work with the same plan format. Dashed elements are optional or operated by the licensee. The MCP server does not calculate itself; every result comes from the calculation core in the browser.

04

Division of labor: agents deliver, clients calculate

The licensee's agent systems gather the data. The calculation runs in the browsers of the agencies and companies.

Agency networks and SaaS companies run their own AI agents, connected via MCP. Their strength is gathering data from many sources: CRM, accounting, ad accounts, analytics tools, benchmarks. That is exactly the role the blueprint gives them. The agents write the data into the versioned plan JSON and hand it over. The complex calculations, that is saturation, cross-channel effects, action channels, target back-calculation, simulation and break-even, run neither in the agent nor on a central server. They run in the calculation core, in the browser of the agency or company working on the plan.

Data flow

Sources
Data sourcesCRM, accounting, ad accounts, analytics tools, benchmark providers
Agents
The licensee's MCP agentsGather, clean and structure the data and write it into the plan JSON with source and reference date. They do not calculate.
Handover
Plan JSONVersioned, with schema and engine version and checksum; handed over as a file, via a storage target or an interface
Client
Calculation core in the browserAt the agency or the company: calculates every scenario locally and deterministically
Result
Planning, comparison, approvalThe calculated result goes back to agents and systems as JSON, read-only there

The dashed layer is operated by the licensee. The calculation core is the same for every agent: an agent can deliver data and propose a plan; the client calculates the result.

BenefitReason
No central calculation cloudEvery calculation runs on the user's device. More agencies, clients and scenarios add no computing load to the licensee's servers.
The same figures everywhereOne calculation core, with the engine version stated in the plan. Agency, client and corporate receive the same results from the same JSON, apart from rounding in the last decimal place.
Data stays with the clientNo data leaves the browser for the calculation. What is passed on is determined solely by the licensee's infrastructure.
Agents stay interchangeableThe interface is the plan JSON. A new agent or a different language model changes nothing in the calculation.
Verifiable, not estimatedLanguage models do not calculate reliably. The calculation core is deterministic and backed by the test suite.

05

Clients and handover to corporate clients

Many clients in one installation, verifiable handover without a central server.

  • Client structure in the plan format: organization, client (brand, market), project, plan, version.
  • Workspaces: one workspace per client, with its own plans, benchmark sets and approvals.
  • Handover package: several plans with all versions, approvals, signatures and audit events in one file.
  • Import at the corporate client: a second installation checks checksum and signatures and takes over the plan state unchanged.
  • Portfolio view: totals and metrics across several clients, brands or agencies, read-only, every figure traceable to its plan.
  • Roles: marked in the plan (agency, client, corporate), enforced through the licensee's sign-in.

06

Central metric: the overall account

What can be proven is what marketing costs and returns in total.

Which channel brought a customer is hard to answer: someone who clicks an ad after a recommendation is credited to the ad, and the recommendation does not appear anywhere. The blueprint therefore builds on the overall account from the company's own data.

MetricCalculationStatement
Total cost per new customertotal marketing spend ÷ all new customersWhat does a new customer cost, regardless of the path?
Marketing efficiencynew-customer contribution margin ÷ total marketing spendWhat does each unit of marketing spend return in total?
Paybackmonths until the new customers' contribution margin covers the spendWhen does marketing pay for itself?

Rules: count only new customers; include all spending (budgets, agency fees, tools, trade fairs); smooth time lags over a rolling three-month period; compare against the plan, which already includes seasonality and ramp-up times. Channel figures remain, but as assumptions for the budget allocation.

ViewSourceStatus
What happenedown CRM and accountingBenchmark
What was agreedapproved planBinding assumption
What platforms reportad accounts, analytics and AI toolsStatement with source
What models and tests estimatethe licensee's marketing mix model, experimentsEstimate with uncertainty

07

Architecture principles

Ten rules that apply to every phase.

  1. The calculation core is a pure function: plan in, result out; no access to interface, storage or network. It runs identically in the browser and in tests; in operation it calculates in the user's browser.
  2. Agents gather, clients calculate. MCP agents deliver data and proposals into the plan JSON; results are calculated solely by the calculation core on the client. Any result an agent reads has been calculated by a client.
  3. The plan is a versioned JSON document with a schema. The basis for version comparison, checksum, signature, storage, handover and agent access.
  4. Every plan states its schema and engine version. Old plans remain readable; a changed calculation becomes visible instead of silent.
  5. The inputs are signed, not the results. Results can differ in the last decimal place between browsers; the inputs cannot.
  6. Storage, identity and AI are interchangeable adapters. Local, file, S3, SharePoint, CRM or own server, without changing the core.
  7. One code base, texts in language packs. Languages and variants via configuration.
  8. No central service: no telemetry, no external data access. Operation lies entirely with the licensee.
  9. Whatever works without a server works without a server. The package also runs as static files; a server connection is a choice, not a requirement.
  10. The overall account from own data is the central metric; channel figures are assumptions.

08

Implementation phases

Seven phases, each with a verifiable acceptance criterion.

PhaseContentResultAcceptance
0 FoundationExtract the calculation core as a module without interface access; plan schema v1 with migration from today's backup format; interface works with a plan object; texts in language packs; one build produces all language versions.One calculation core, one plan format, one code base.Reference scenarios identical to today's application; calculation core tests run without a browser.
1 Clients and approvalClient structure; workspaces per client; version list, readable version comparison; status draft, in review, approved, superseded; SHA-256 over canonical JSON (RFC 8785); signature via Web Crypto; import with verification.Many clients with versioned, signed plans.A change after approval makes the verification fail; clients remain strictly separated.
2 Handover and portfolioHandover package with versions, approvals and audit; import into a second installation; portfolio view; role marking in the plan.Plans move verifiably from agency to corporate client.Export and import produce bit-identical plan states; every portfolio figure is traceable.
3 Plan vs. actual and measured valuesImport of actual data (supplementary, never overwriting); deviation per channel and assumption; import of measured saturation parameters, for example from a marketing mix model; interface for benchmark providers with sample size, spread, source and reference date; overall account plan vs. actual as the first view; ranges per assumption, calibrated against actuals.Comparison with actuals and external measurements, without its own claim of effect.Deviations reproducible with test data; every imported value carries source, period and definition.
4 Connection pointsInterfaces for sign-in (OIDC, SAML), storage, audit, webhooks; one reference adapter each (file, S3, SharePoint) with instructions.The licensee connects its own infrastructure.Every reference adapter passes the same interface test suite.
5 Agent interfaceSelf-hosted MCP server: write data from the sources into the plan JSON, read a plan, read results calculated on the client, verify, submit a proposal, read plan vs. actual and audit. The MCP server does not calculate itself.AI agents deliver data against a fixed contract; the client calculates.An agent can only submit data and proposals; every result comes from the calculation core in the browser; approved versions remain unchanged.
6 PackageAlongside from phase 1: white-label configuration, third-party license notices, documentation, test suite and test report per version.A verifiable package per version.An external development team installs and tests the package using only the documentation.

Each phase starts only when the acceptance criterion of the previous one is met. Phase 0 adds no visible new function, but makes all following phases considerably cheaper.

09

Risks and countermeasures

The greatest risk is skipping phase 0.

RiskCountermeasure
Results change unnoticed when the calculation core is extractedReference scenarios before and after every step; move the core unchanged first, clean up only afterwards.
A new engine version calculates approved plans differentlyEngine version in the plan; changes to the core only with a version increase and change log.
Enterprise version and existing application drift apartThe same reference scenarios as a shared test for both.
A signing key is lost or an employee leaves the companyKey directory via the licensee's sign-in; old signatures remain verifiable.

Deliberately not planned

  • A central calculation cloud or operation by YourValidator
  • Calculation by AI agents or language models
  • Claims of effect or attribution
  • Automatic budget execution without approval
  • Web research in the AI input assistant

10

First steps

All first steps are part of phase 0 and can be verified individually.

  1. Plan schema v1 derived from today's state as a JSON schema and documented (fields, units, required and optional).
  2. Migration: convert today's backups and plans into plan schema v1 and back, without loss.
  3. Move the calculation core into its own module with the plan object as input; results identical to the reference scenarios.
  4. Calculation core tests without a browser: today's scenarios as plan files with expected results.
  5. Language packs: transfer the texts of the language versions; a build script produces the application in German and English.
  6. Comparison: new application against today's application using the same scenarios.
  7. Only then: draft for phase 1 (version list, version comparison, approval).

Confidential document

This blueprint is part of the documentation for the YourValidator Enterprise license. The source code, test suite, architecture guide, and other documents are available to interested parties under a confidentiality agreement.

YourValidator · Planning calculator for marketing budgets · Legal notice
Back to content
Application icon
YourValidator.net Install this application on your home screen for a better experience
Tap Installation button on iOS then "Add to your screen"