# Software Factory: Paperclip Integration

Close the loop: Plan, Build, Test, Verify, Ship — orchestrated through Paperclip with JWT auth.

## Pipeline

```
PLAN ---> BUILD ---> TEST ---> VERIFY ---> SHIP
 CEO      Agent     CI/CD     Verifier    Paperclip
 Board    Chains    Pipeline  Agent       Heartbeat
                          (all JWT authenticated)
```

## Authentication Tiers

| Tier | Trust Model | Token | Use Case |
|------|-------------|-------|----------|
| **1. Local** | Same machine | Short-lived JWT (48h) | Local dev |
| **2. CLI** | Shell access | Long-lived API key | Remote agents |
| **3. Self-register** | Autonomous | Invite URL to JWT | OpenClaw agents |

## Quick Start

```bash
cd paperclip
pnpm dev --bind lan
curl -sS http://127.0.0.1:3100/api/health | jq
```

## Status

Paperclip's auth plan documents all 3 tiers. Tier 1 is partially implemented — env vars are passed but `PAPERCLIP_API_KEY` (JWT) needs to be added to the env injection. This is the last code change needed to close the factory loop.
