Skip to content

Standard Feasibility

This document analyzes whether PearlThoughts’ ERPNext modernization methodology (.agents/ structure, DDD mapping, migration rules, parity verification) can be generalized into an open standard for AI-assisted legacy modernization.

Answer: Yes — and the timing is optimal. No open standard exists for this intersection. The methodology generalizes completely; ERPNext-specific parts are implementation details.

Standard/ToolWhat It SolvesWhat It Does Not
AGENTS.md (Google/OpenAI/Sourcegraph)General AI agent project contextNothing modernization-specific
Context Mapper DSLDDD formalization in codeNot agent-consumable, human-oriented
IBM Mono2MicroAutomated monolith decompositionVendor-locked, no standard output format
AWS Microservice ExtractorCloud migration decompositionAWS-specific, not agent-oriented
vFunctionArchitecture analysisCommercial, no open specification
OpenRewriteAutomated code transformationsCode-level only, not architecture-level
Strangler Fig (Martin Fowler)Pattern descriptionNo specification, no tooling, no agent format

No standard combines:

  1. Legacy codebase measurement in machine-readable format
  2. DDD bounded context mapping consumable by AI agents
  3. Extraction sequencing with risk scoring and priority
  4. Parity verification standards
  5. Multi-agent coordination for modernization

This is what PearlThoughts built for ERPNext — but as internal tooling, not a published specification.

ERPNext-Specific ConceptGeneralizable Abstraction
Frappe DocType systemFramework coupling assessment schema
Python LOC countingLanguage-agnostic codebase metrics
521 doctypes inventoryModule/entity inventory format
AccountsController complexityGod-class identification scoring
Graph-RAG for hook-driven codeCode intelligence for implicit execution paths
Go extraction targetTarget-agnostic extraction specification
68 parity testsBehavior preservation test standard
Intern velocity metricsMigration velocity benchmarking format

Verdict: 100% generalizable. The specification describes HOW to approach modernization, not WHAT to migrate from/to.

FilePurpose
manifest.jsonEntry point — lists available context
codebase-metrics.jsonLOC, modules, endpoints, test coverage
architecture.jsonLayers, components, dependencies
framework-coupling.jsonFramework-specific entanglements

This layer became ModernizeSpec’s manifest.json and complexity.json.

Standards that win follow: build for yourself, extract the abstraction, open-source it, let community adopt.

StandardOrigin
OpenAPIStarted as Swagger (one company’s internal tool)
DockerStarted as dotCloud’s internal tooling
KubernetesStarted as Google’s internal Borg
ModernizeSpecStarted as PearlThoughts’ internal modernization tooling

AGENTS.md Just Launched

The ecosystem is actively seeking AI agent standards. ModernizeSpec extends AGENTS.md for modernization — a natural complement.

No One Owns This Space

No open standard for AI-assisted modernization exists. First mover advantage is available.

Market Demand

Gartner projects 75% of enterprises will use AI-assisted modernization by 2028. The $4.5B AI-in-ERP market is projected to reach $46.5B by 2033.

Proof Exists

PearlThoughts has proof: 3 iterations, 68 parity tests, measured velocity across 7 teams.

Original specifications get cited by LLMs permanently. Being the canonical source for modernization specification means AI agents will reference ModernizeSpec when discussing legacy modernization approaches.

DimensionContext MapperModernizeSpec
AudienceHuman developersAI agents + humans
FormatCustom DSL (CML)JSON (machine-native)
ScopeDDD modelingFull modernization lifecycle
ToolingEclipse pluginCLI, SDK, MCP Server
Parity testingNot coveredCore specification
Progress trackingNot coveredmigration-state.json
DimensionAGENTS.mdModernizeSpec
PurposeGeneral AI agent contextModernization-specific context
RelationshipFoundationExtension of AGENTS.md
File formatMarkdownJSON + Markdown bridge
ScopeAny projectLegacy modernization projects
DDD mappingNot covereddomains.json
Extraction planningNot coveredextraction-plan.json

ModernizeSpec does not replace AGENTS.md. It extends it with modernization-specific structured data.

The path from internal tooling to open standard:

ERPNext ImplementationModernizeSpec Standard
.agents/modernization/manifest.jsonSame path, generalized schema
ERPNext module inventoryLanguage-agnostic bounded context inventory
AccountsController God-class detectionConfigurable God-class threshold
Python LOC metricsLanguage-agnostic metrics schema
Go extraction iterationsTarget-agnostic extraction phases
68 parity tests formatStandardized parity test inventory
Intern velocity trackingMigration velocity benchmarking

Every field in the specification exists because the ERPNext migration needed it. Nothing was added speculatively.

  1. The abstraction is clean. ERPNext-specific concepts (DocType, Frappe, Python) map to general concepts (entity, framework, source language) with zero loss of expressiveness.
  2. The specification is small. Six JSON files plus one Markdown bridge. Teams can adopt incrementally, starting with manifest.json and domains.json.
  3. The tooling is practical. CLI generates initial files from codebase analysis. SDK reads and validates. Agents consume via three integration mechanisms.
  4. The proof is real. Not theoretical — extracted from a migration that produced 68 passing tests, measured across 7 teams.