PhoenixFlight Examples
  • GitHub
  • Customer Validation Scenario

    The **customer-validation** example showcases dynamic registrations, scheduling, and context handoff between governance and metadata agent nodes.

    Run the Walkthrough Locally

    Navigate to the project root and run these operations sequentially:

    # 1. Initialize local state cache
    python -m src.phoenix_cli init
    
    # 2. Validate example PhoenixFile
    python -m src.phoenix_cli validate -f examples/customer-validation/PhoenixFile
    
    # 2a. Build portable runtime bundle
    python -m src.phoenix_cli build -f examples/customer-validation/PhoenixFile
    
    # 2b. Inspect the compiled bundle
    python -m src.phoenix_cli bundle inspect dist/customer-validation-app-0.1.0.pflight
    
    # 3. Boot runtime loop
    python -m src.phoenix_cli runtime start
    
    # 4. Register governance and metadata agents
    python -m src.phoenix_cli member register examples/customer-validation/agents/governance-agent.yaml
    python -m src.phoenix_cli member register examples/customer-validation/agents/metadata-agent.yaml
    
    # 5. Create the validation workload packet
    python -m src.phoenix_cli packet create customer-validation
    
    # 6. Assign the packet to the governance agent
    python -m src.phoenix_cli assign packet-001 --to governance-agent
    
    # 7. Migrate the workload context to the metadata agent under high load/churn
    python -m src.phoenix_cli handoff packet-001 --from governance-agent --to metadata-agent
    
    # 8. Print audit history
    python -m src.phoenix_cli audit