Code generation is not product delivery

An AI tool can draft a Sling Model, test or React component quickly. It does not independently understand the content contract, permission boundary, caching behavior, rollback path, or the impact on authors and operators. Local speed becomes business value only after the change survives the whole engineering system.

This is an independent engineering interpretation of public sources, not a claim about a specific production implementation. The principle is simple: AI can propose a change; the team still owns the decision, evidence and production outcome.

1. Start with bounded, verifiable work

The strongest starting point is work with a clear boundary and an output that is easy to test and reverse: test scaffolding, documentation of existing code, repetitive data mappings, edge-case suggestions, or first-pass analysis of a large change. These tasks reduce manual effort without delegating an architectural decision to the tool.

Risk rises when the use case reaches content models, OSGi configuration, permissions, Dispatcher, Oak indexes, integrations, personal data or frontend state logic. The diff may look small while its blast radius crosses publishing, authoring, performance and security.

2. Match the gate to the blast radius

Classify every AI-assisted change as low, medium or high impact. Low-impact internal documentation can follow ordinary review. A permission, caching, indexing or schema change should require senior review, targeted tests, a rollback plan and approval from the system owner.

GitHub warns that suggestions can be inaccurate, insecure or incomplete and says users must review and validate them. That is not an argument against the tool. It means the identity of the code generator does not change the engineering acceptance standard. [3]

3. Require an evidence contract for every pull request

Labeling a change as AI-generated is not enough. The pull request should state the problem, the non-sensitive context supplied to the tool, what was accepted or rejected, tests added, the reviewer who understands the impact, and the monitoring and rollback plan. If the change cannot be explained, it is not ready for production.

Add AEM-specific questions: does it respect the resource structure and Sling contracts? Does it alter the author experience? Does it need an index? Does it change cacheability? Can it expose unpublished or protected content? For the frontend, does it preserve accessibility, SEO, performance and component contracts?

4. Make the delivery pipeline test the claim

Adobe documents code-quality checks, functional testing and experience audits in Cloud Manager production pipelines, while customer functional tests can use frameworks such as JUnit, Cypress and Playwright. Those gates matter, but they do not replace tests for your architecture and business contracts. [1][2]

Treat AI-generated tests as production code too. A model can write a test that proves its own implementation rather than the real requirement, or repeat the same wrong assumption in both code and test. A human must review the expected scenario—not merely the green check.

5. Measure verified value, not lines of code

Use this equation as a decision framework, not precise mathematics: Verified AI value = accepted time saved + quality improvement − review cost − rework cost − added risk. If code output rises while review, defects and rework rise with it, delivery capability has not improved.

Track suggestion acceptance, review time, reopened pull requests, escaped defects, lead time, change failure and recovery time. Compare one bounded work category before and after the pilot. Do not confuse a developer's feeling of speed with improvement in the delivery system.

6. Turn the pilot into an operating model

NIST's generative-AI profile frames risk work across governance, mapping, measurement and management throughout the lifecycle. In practice, teams need a policy owner, approved tools, a data-classification rule, context-retention boundaries, an exception path and periodic outcome reviews. [4]

Start with one use case for a fixed period, a comparison sample, a named owner and a stop condition if quality falls or review time grows. Expand only on evidence. That turns AI into a managed capability instead of a side tool with different rules for every developer.

The critical test: heavy governance can destroy value too

The opposite failure is an approval process that makes low-impact changes slower than manual work. Gates should therefore be based on blast radius, not fear of the technology. Measurement is imperfect as well: saved time is estimated, defects are sparse and the team learns during the pilot. Use several trends rather than one magic number.

My position: let AI accelerate the proposal, but never let it weaken the evidence standard. Teams that connect automation to clear ownership, tests and outcome measurement will gain leverage. Teams that measure success in generated lines will move the cost into review and production. Which change would you never allow into production without senior human review?

References

  1. Cloud Manager Tests OverviewAdobe Experience League
  2. Functional Testing in Cloud ManagerAdobe Experience League
  3. Responsible Use of GitHub Copilot Inline SuggestionsGitHub Docs
  4. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence ProfileNIST