PIF AI Whitepaper

Chapter 12: Roadmap, Deployment, and Open-Source Strategy

This chapter is PIF AI’s commitment to the future: what will be done when, how it is deployed, why AGPL-3.0, and how community contributions are accepted. After reading, you should be able to judge: is this a project you can invest in long-term as a contributor or investor?

πŸ“Œ Key Takeaways

12.1 Three-Phase Roadmap

12.1.1 Phase 1: MVP (complete through 2026-04)

Focus: validate that AI produces usable PIF drafts.

Delivered:

Not yet: electronic signature, batch multi-brand mode, billing, advanced ECHA, regulatory change alerts.

12.1.2 Phase 2: GA (target 2026 Q4)

Focus: complete 16 items + live production + commercialization.

12.1.3 Phase 3: Scale & Internationalization (2027)

12.1.4 Timeline Visualization

gantt
    title PIF AI Three-Phase Roadmap
    dateFormat YYYY-MM-DD
    axisFormat %Y/%m
    section Phase 1 MVP
    Core CRUD + AI MVP       :done, p1a, 2026-01-01, 2026-03-31
    i18n 5 locales           :done, p1b, 2026-04-15, 2026-04-20
    Central RAG (backend)    :done, p1c, 2026-04-19, 2026-04-22
    Closed beta              :active, p1d, 2026-04-20, 2026-06-30
    section Phase 2 GA
    E-signature + full 16    :p2a, 2026-07-01, 2026-09-30
    Subscription billing     :p2b, 2026-08-01, 2026-10-15
    ECHA integration         :p2c, 2026-09-01, 2026-11-30
    GA launch                :crit, p2d, 2026-12-01, 2026-12-31
    section Phase 3 International
    Multi-jurisdiction       :p3a, 2027-01-01, 2027-12-31
    Multi-region deploy      :p3b, 2027-03-01, 2027-09-30

Figure 12.1: Phase 1 closed beta runs from 2026-04-20 through just before the regulatory deadline (2026-07-01). Phase 2 drives GA in H2 2026, targeting 200 paying customers by year-end (CLAUDE.md business goal).

12.2 Deployment Evolution

12.2.1 Current Stage: Docker Compose

MVP deploys on a single host (Hetzner / DigitalOcean / on-prem):

host
β”œβ”€β”€ pif-frontend-1     :3000
β”œβ”€β”€ pif-backend-1      :8000
β”œβ”€β”€ pif-worker-1
β”œβ”€β”€ pif-db-1           :5432 (pgvector/pgvector:pg16)
β”œβ”€β”€ pif-redis-1        :6379
└── pif-minio-1        :9000 (S3-compatible)

External reverse proxy via Nginx Proxy Manager (NPM) handles TLS certificates, custom domains, basic WAF.

Pros:

Cons:

12.2.2 Scale Out: Kubernetes

When MAU > 10,000 or req/sec > 100:

flowchart LR
    CF[Cloudflare CDN]
    subgraph K8s["Kubernetes Cluster"]
        subgraph NS1["pif-prod namespace"]
            FE[Frontend<br/>Deployment x3]
            BE[Backend<br/>Deployment x3<br/>HPA CPU]
            WK[Worker<br/>Deployment x5<br/>KEDA queue]
        end
        subgraph NS2["pif-data namespace"]
            PG[(PostgreSQL<br/>Operator)]
            RD[(Redis<br/>Cluster)]
        end
    end
    S3[(AWS S3 / R2)]
    ANT[Anthropic API]
    RAG[rag.baiyuan.io]
    CF --> FE --> BE --> PG
    BE --> RD
    BE --> S3
    BE --> ANT
    BE --> RAG
    WK --> PG
    WK --> ANT

Figure 12.2: K8s deployment uses a PostgreSQL Operator (e.g., CloudNativePG) for primary/replica; KEDA scales Workers by queue depth. External dependencies go through an egress gateway.

12.2.3 Future: Multi-Region

Phase 3 global expansion:

Each region: independent cluster + DB; DNS-based geo routing via Cloudflare Load Balancer.

12.3 License Choice: AGPL-3.0

12.3.1 Candidate Comparison

License Closed-source derivative SaaS loophole Business-friendliness PIF fit
MIT / Apache-2.0 βœ… Allowed βœ… Allowed (no disclosure) Most ❌
GPL-3.0 ❌ Must open βœ… Allowed (SaaS not distribution) Medium ❌
AGPL-3.0 ❌ Must open ❌ SaaS must open too Stricter βœ… Chosen
Proprietary β€” β€” Closed ❌

12.3.2 Why AGPL

Core consideration: prevent forks from packaging PIF AI as a competing SaaS without contributing back.

MIT permits: Company A forks PIF AI β†’ wraps as cloud service β†’ charges for access β†’ no disclosure of changes.

AGPL Article 13: if users access a modified version over a network, the source must be available. This forces fork-and-sell to open-source changes.

For third parties building on PIF AI:

12.3.3 Impact on Enterprise Users

Scenario AGPL impact
Brand owner uses pif.baiyuan.io None β€” users are not β€œdistributors”
Business self-hosts PIF AI for internal use None (no external service)
Company packages PIF AI as a product for sale Must disclose modifications
External system integrates with PIF AI Depends on integration depth (see AGPL FAQ)

For the vast majority of users (businesses), AGPL is transparent. Only fork-and-resell scenarios are affected.

12.3.4 Whitepaper Licensed Differently

The whitepaper is licensed CC BY-NC 4.0 (attribution, non-commercial), allowing:

This lets the whitepaper flow freely in academic circles while preserving licensing flexibility for commercial contexts (paid training, publications).

12.4 Community Governance

12.4.1 Roles

Role Responsibility Count
BDFL (Benevolent Dictator For Life) Project vision, final decisions, constitution keeper 1 (author)
Maintainer PR review, issue triage, releases 3–5 (to be recruited before Phase 2)
Contributor Submit PRs, translations, docs Unlimited
User Report bugs, participate Unlimited

12.4.2 Decision Process

12.4.3 Types of Contributions

12.4.4 Interaction with the Claude Code Community

As a Claude Code engineering case study, we welcome the Anthropic community to:

12.5 Closing

PIF AI aims to prove: LLM-assisted engineering can deliver commercial-grade open-source SaaS in the regulatory-compliance domain. This whitepaper is the full record of that process.

If you are:

Thank you for reading this far. The remaining 4 appendices provide complete reference material:

πŸ“š References

πŸ“ Revision History

Version Date Summary
v0.1 2026-04-19 First draft. Three-phase roadmap, deployment evolution, AGPL rationale, community governance

Β© 2026 Baiyuan Tech. Licensed under CC BY-NC 4.0.

Nav ← Chapter 11: Security Model Β· Chapter 13: Compliance Engine Deep Dive β†’