Model Context Protocol (MCP) and LLM-based agents can already produce linear automation scripts directly from natural language or user-captured steps.
That is a breakthrough — but the real challenge lies elsewhere:
How do we integrate those raw, context-free scripts into large enterprise frameworks without losing consistency, maintainability, or compliance?
This is where AFP — Automation Framework Profile comes in.
🔑 What is AFP? #
AFP is not another tool or runner. It is a machine-readable contract that defines how a framework works — its conventions, its runtime, its boundaries, and its integration rules.
Think of AFP as the framework’s blueprint: it encodes the architectural standards that every incoming script, whether human-written or AI-generated, must conform to.
By introducing AFP, organizations can:
- Eliminate the “translation gap” between raw MCP output and enterprise-ready code
- Maintain predictability across repos and teams
- Enforce governance and compliance at the framework level
- Create a self-documenting ecosystem where standards evolve in sync with the codebase
đź§ Why Enterprises Need AFP #
Enterprises rarely run a single, greenfield automation stack. Instead, they manage:
- Multiple frameworks (Playwright for web, Cypress for CI smoke, WDIO for legacy flows)
- Diverse runtimes (Node vs Java, hybrid test runners, custom pipelines)
- Inconsistent conventions (naming, locators, assertions, reporting outputs)
- Compliance constraints (audit logs, traceability, accessibility mandates)
Without AFP, MCP-generated scripts land as foreign bodies in the repo — requiring extensive manual rework to align with CI/CD, reporting, and maintainability standards. AFP removes that friction.
đź“‚ What an AFP Encodes #
At its core, AFP defines ten categories of knowledge that a script generator must respect:
- Meta Context → Repository identity, branch, versioning, commit hygiene
- Runtime Stack → Node/Java version, package manager, runner of choice
- Pathing Rules → Standardized locations for tests, fixtures, page objects, helpers
- Conventions → Naming patterns, annotations, suite/test wrappers
- Imports & Dependencies → Approved utility layers, base fixtures, expectation libraries
- Locator Policies → Prioritized strategies (role, testId, text, css, aria)
- Assertion Vocabulary → Canonical mappings (UI states, navigation, accessibility)
- Configuration Defaults → Retries, timeouts, environment resolution, reporters
- CI/CD Integration → Reporting outputs, caching, parallelism, guardrails
- Adapters & Extensions → Hooks for a11y validation, network stubbing, data seeding
This abstraction ensures that any incoming test is not just syntactically valid, but organically native to the framework.
đź§ The AFP Approach (High-Level) #
An AFP-driven workflow has four guiding phases:
- Fingerprinting → Detect the framework’s DNA (lockfiles, configs, conventions).
- Profiling → Encode this DNA into a structured profile that is version-controlled.
- Mapping → Translate incoming MCP/LLM scripts into the framework’s idioms.
- Enforcement → Validate through CI guardrails, ensuring no script bypasses standards.
The emphasis is not on codegen mechanics, but on establishing a governance layer that MCPs and humans alike must adhere to.
🌟 Why AFP Changes the Game #
- Consistency at Scale → Every script looks like it was written by your best engineer.
- Governance by Design → No need to enforce standards retroactively; they’re embedded in the profile.
- Accelerated Onboarding → New teams and tools plug in without “learning the repo by osmosis.”
- Future-Proofing → As frameworks evolve, AFP evolves — keeping generated and legacy tests aligned.
- Seamless AI Adoption → AI-generated scripts stop being “throwaway demos” and become production assets.
🔄 Adoption Path for Enterprises #
A pragmatic adoption path looks like this:
- Read-Only Mode → Auto-generate AFPs from existing repos to reveal conventions.
- Collaborative Review → Teams validate and refine AFP rules as codified standards.
- Guardrail Enforcement → CI begins blocking non-conforming scripts and enforcing AFP linting.
- Extension & Adaptation → Adapters for compliance (a11y, audit logging, security).
- Bidirectional Flow → Legacy tests are refactored progressively to align with AFP, ensuring homogeneity.
âť“ Strategic Questions AFP Answers #
- How do we integrate AI-generated automation without breaking CI pipelines?
- How do we ensure governance and compliance without slowing delivery?
- How do we make multi-framework monorepos sustainable?
- How do we evolve frameworks without fragmenting test suites?
đź’¬ Your Turn #
The future of MCP- and LLM-driven testing will be shaped by how effectively we bridge raw script generation with enterprise-grade frameworks.
AFP is not an optional add-on — it is the missing contract that ensures AI adoption happens safely, consistently, and at scale.
👉 How would an AFP accelerate your automation adoption? Would it help unify your frameworks and enforce consistency? Share your repo shape — and we’ll help draft your first AFP.