JP_Stripes Fukuoka Vol.12 Presentation Report ~ Pioneering Stripe API Migration with Speculative Implementation × AI
I had the opportunity to speak at the community event “JP_Stripes 福岡Vol.12 - サービスを支える決済の裏側” (JP_Stripes Fukuoka Vol.12 - Behind the Scenes of Payment Systems Supporting Services) held in Fukuoka.
This article shares the content of my presentation along with the materials.
Below are excerpts from the presentation slides Speculative Implementation × AI で切り拓く Stripe API 移行実践記 (Pioneering Stripe API Migration with Speculative Implementation × AI).
For migrating Stripe API from Acacia → Basil, we attempted Speculative Implementation (proactive multiple implementations) leveraging AI.
Parallel implementation with AI achieved the following 👇
A method where AI generates multiple implementation patterns, discovering constraints by actually running them
STRIPE_API_VERSION| Discovery | Details | Learning | 
|---|---|---|
| SDK Constraints | Cannot use multiple API versions with the same SDK | Abandoned gradual migration for full migration | 
| Subscription Structure | subscription.current_period_*→subscription.items[0].* | Determined that DB schema changes are unnecessary | 
| Metering Logic | AI organized complex aggregation logic | Accelerated understanding in codebase | 
| Role | Responsibility | Content | 
|---|---|---|
| 🤖 AI | Code Generation | Convert documentation to code and present multiple options | 
| 👩💻 Human | Decision Making | Judge business requirements, environment dependencies, and switching strategies | 
🔑 Key to Success: Structured documentation design that AI can understand
→ Factors that enabled AI to understand accurately and generate correct code
✨ Achieved safe and fast migration through collaboration between AI and humans ✨
Thank you to everyone who attended, the Stripe team, and especially Mr. Okamoto from DigitalCube for giving me this opportunity to speak!
That’s all from the Gemba, where we want to fully leverage Stripe and AI in our development.