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.
| Area | Today | Consequence for the expansion |
|---|---|---|
| Calculation | Hill saturation, target back-calculation, halo and action channels, deterministic and backed by 2,324 tests per full run including reference scenarios | The greatest asset. It is moved, not rewritten. |
| State | The calculation reads values directly from the page's input fields: 267 in the initial state with seven channels, 22 to 33 more per additional channel | For version comparison, signatures and agent access, the calculation must work with a plan object instead of fields. |
| Data model | A complete JSON state with fixed keys already exists (export, import, AI interface) | A good starting point for a versioned plan format. |
| Languages | German and English versions are separate files with built-in texts | One code base with language packs; one change instead of one port per language. |
| Storage | Browser storage, saved plans, encrypted backup, CRM import, Zapier export | A good basis for interchangeable storage targets. |
| Tests | Playwright tests against the finished page, network-independent, with checksums | In addition, tests for the calculation core without a browser, in milliseconds. |
02
Target picture
What an enterprise version consists of according to this blueprint.
| Component | Content |
|---|---|
| Calculation core | Standalone module with a public, versioned interface: saturation, halo, actions, target back-calculation, simulation, break-even, customer lifetime value |
| Plan format | JSON schema with client structure, versions, approvals, checksum and signature |
| Application | Complete planning interface in German and English, white label (name, logo, colors, texts, benchmark sets via configuration) |
| Connection points | Interfaces for sign-in, storage, audit events, webhooks and benchmark providers, each with a reference adapter |
| References | Sample 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 |
| Documentation | Interface reference, model formulas, integration guide, operating notes |
| Evidence | Self-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
Connection points · phase 4, each with a reference adapter
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
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.
| Benefit | Reason |
|---|---|
| No central calculation cloud | Every calculation runs on the user's device. More agencies, clients and scenarios add no computing load to the licensee's servers. |
| The same figures everywhere | One 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 client | No data leaves the browser for the calculation. What is passed on is determined solely by the licensee's infrastructure. |
| Agents stay interchangeable | The interface is the plan JSON. A new agent or a different language model changes nothing in the calculation. |
| Verifiable, not estimated | Language 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.
| Metric | Calculation | Statement |
|---|---|---|
| Total cost per new customer | total marketing spend ÷ all new customers | What does a new customer cost, regardless of the path? |
| Marketing efficiency | new-customer contribution margin ÷ total marketing spend | What does each unit of marketing spend return in total? |
| Payback | months until the new customers' contribution margin covers the spend | When 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.
| View | Source | Status |
|---|---|---|
| What happened | own CRM and accounting | Benchmark |
| What was agreed | approved plan | Binding assumption |
| What platforms report | ad accounts, analytics and AI tools | Statement with source |
| What models and tests estimate | the licensee's marketing mix model, experiments | Estimate with uncertainty |
07
Architecture principles
Ten rules that apply to every phase.
- 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.
- 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.
- The plan is a versioned JSON document with a schema. The basis for version comparison, checksum, signature, storage, handover and agent access.
- Every plan states its schema and engine version. Old plans remain readable; a changed calculation becomes visible instead of silent.
- The inputs are signed, not the results. Results can differ in the last decimal place between browsers; the inputs cannot.
- Storage, identity and AI are interchangeable adapters. Local, file, S3, SharePoint, CRM or own server, without changing the core.
- One code base, texts in language packs. Languages and variants via configuration.
- No central service: no telemetry, no external data access. Operation lies entirely with the licensee.
- 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.
- 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.
| Phase | Content | Result | Acceptance |
|---|---|---|---|
| 0 Foundation | Extract 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 approval | Client 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 portfolio | Handover 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 values | Import 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 points | Interfaces 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 interface | Self-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 Package | Alongside 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.
| Risk | Countermeasure |
|---|---|
| Results change unnoticed when the calculation core is extracted | Reference scenarios before and after every step; move the core unchanged first, clean up only afterwards. |
| A new engine version calculates approved plans differently | Engine version in the plan; changes to the core only with a version increase and change log. |
| Enterprise version and existing application drift apart | The same reference scenarios as a shared test for both. |
| A signing key is lost or an employee leaves the company | Key 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.
- Plan schema v1 derived from today's state as a JSON schema and documented (fields, units, required and optional).
- Migration: convert today's backups and plans into plan schema v1 and back, without loss.
- Move the calculation core into its own module with the plan object as input; results identical to the reference scenarios.
- Calculation core tests without a browser: today's scenarios as plan files with expected results.
- Language packs: transfer the texts of the language versions; a build script produces the application in German and English.
- Comparison: new application against today's application using the same scenarios.
- 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.