Skip to content

Advanced: Pipeline and Internal Mechanics

This chapter provides an in-depth explanation of AI App Factory's core mechanisms and advanced features, including the detailed working principles of the 7-stage pipeline, Sisyphus scheduler scheduling strategies, permission and security mechanisms, failure handling strategies, and how to optimize context to save token costs.

Prerequisites

Before studying this chapter, please ensure you have completed:

Chapter Contents

This chapter covers the following topics:

7-Stage Pipeline Deep Dive

Internal Mechanisms

  • Sisyphus Scheduler Deep Dive

    • Understand how the scheduler coordinates the pipeline, manages state, and executes permission checks
    • Master scheduling strategies and state machine principles
  • Context Optimization: Per-Session Execution

    • Learn how to use the factory continue command to save tokens
    • Master best practices for creating a new session at each stage
  • Permissions and Security Mechanisms

    • Understand capability boundary matrix, privilege escalation handling, and security check mechanisms
    • Master security configuration and permission management
  • Failure Handling and Rollback

    • Learn failure detection, retry mechanisms, rollback strategies, and manual intervention workflows
    • Master troubleshooting and recovery techniques

Learning Path Recommendations

  1. Complete the 7-Stage Pipeline First (in order)

    • Bootstrap → PRD → UI → Tech → Code → Validation → Preview
    • Each stage has clear inputs and outputs; learning in order builds a complete understanding
  2. Then Learn the Scheduler and Context Optimization

    • Understand how Sisyphus coordinates these 7 stages
    • Learn how to optimize context to save token costs
  3. Finally Learn Security and Failure Handling

    • Master permission boundaries and security mechanisms
    • Understand failure scenarios and response strategies

Focus Areas for Different Roles

RoleFocus Chapters
DeveloperCode, Validation, Tech, Orchestrator
Product ManagerBootstrap, PRD, UI, Preview
Tech LeadTech, Code, Security, Failure Handling
DevOps EngineerValidation, Preview, Context Optimization

Next Steps

After completing this chapter, you can continue learning:


💡 Tip: If you encounter issues during use, please first check the FAQ & Troubleshooting chapter.