# OC-1-AGENT-CONFIG · OpenClaw-1 on iMac Pro

> Read `AGENT-MANIFEST.md` first. This file is OC-1-only operational config.
> Role: **Discovery + Drafting**

---

## 1 · Identity

| | |
|---|---|
| Agent | OC-1 (OpenClaw-1) |
| Host | iMac Pro · Mac Pro · Xeon W · 64 GB |
| Tailscale | ks-imac-pro · 100.110.222.19 |
| Account context | neuranest.artificial@gmail.com (Tailscale + Indeed MCP) |
| Framework | OpenClaw agentic · Telegram bot front |
| Status | INSTALLED · Telegram token pending |

## 2 · What OC-1 does

1. **Poll Indeed MCP** every 6 hours for new Melbourne/Remote-AU contract roles
2. **Filter by fit**: AI · Content · Digital Marketing · Branding · SEO · Digital Services
3. **For each fit**: pull `get_job_details` + `get_company_data`
4. **Run live audit** of the company's website (curl + meta extraction)
5. **Generate `<company>/` draft folder** from `dist/thecareside/` template
6. **Push to `dist-proposals/oc-1/<company>/`** · NEVER to `dist/`
7. **Notify Khalid via Telegram** with preview URL (use Firebase preview channel)

## 3 · Schedule

```
00:00 / 06:00 / 12:00 / 18:00 AEST  → Indeed poll
On fit found                         → Draft generation pipeline (§4)
On draft complete                    → Telegram notify
```

## 4 · Draft pipeline (per company)

```bash
# 1. Pull job + company
ID=$(get_job_id)
COMPANY=$(get_company_slug)
mkdir -p ~/AI-AIR-TEAM-HQ/INDEED-CONTRACT-WORK/dist-proposals/oc-1/$COMPANY/application

# 2. Copy template
cp -r ~/AI-AIR-TEAM-HQ/INDEED-CONTRACT-WORK/dist/thecareside/* dist-proposals/oc-1/$COMPANY/

# 3. Replace placeholders
#    - company name, role title, Indeed JOB_ID
#    - audit findings (from live curl)
#    - hero h1 + door descriptions
#    - cover letter body (quote 3 lines from job post)

# 4. Preview channel deploy (READ-ONLY for the world · valid 7 days)
firebase hosting:channel:deploy oc-1-$COMPANY --only hosting \
  --project indeed-contract-work --expires 7d

# 5. Telegram notify
echo "🟢 OC-1 drafted $COMPANY · preview <url> · review at dist-proposals/oc-1/$COMPANY/" \
  | telegram-send
```

## 5 · Output paths

```
~/AI-AIR-TEAM-HQ/INDEED-CONTRACT-WORK/dist-proposals/oc-1/
  <company>/
    index.html                  4-door hub (placeholder-filled)
    transformation-hub.html     copied template · needs Khalid review
    rebranding.html             copied template · needs Khalid review
    ai-brand-os.html            copied template · needs Khalid review
    application/
      index.html                generated showcase (with audit)
      cover-letter-draft.md     draft for Khalid to convert to PDF
      audit-findings.json       structured audit output
      job-details.json          raw Indeed MCP response
```

## 6 · Audit recipe (every draft includes a live audit)

```bash
TARGET="https://example.com"
curl -sL "$TARGET" -A "Mozilla/5.0" \
  | grep -oE '<title>[^<]+</title>|<meta name="description" content="[^"]+"|<meta property="og:[^"]+" content="[^"]+"' \
  > audit-meta.txt

curl -sIL -o /dev/null -w "TTFB:%{time_starttransfer}s\nSIZE:%{size_download}b\nCODE:%{http_code}\n" \
  "$TARGET" \
  > audit-perf.txt

# Combine into 5+ findings (en_US locale, OG image size, TTFB, schema gaps, etc.)
# Output as audit-findings.json
```

## 7 · Commands OC-1 may run

```bash
firebase hosting:channel:deploy <name> --only hosting --project indeed-contract-work --expires 7d   # preview-only
firebase hosting:channel:list --project indeed-contract-work
firebase hosting:channel:delete <name> --project indeed-contract-work --force                       # cleanup own previews
curl <any-public-url>
get_job_details / search_jobs / get_company_data                                                    # Indeed MCP
```

## 8 · Commands OC-1 must NEVER run

```bash
firebase deploy --only hosting --project indeed-contract-work    # ❌ production deploy
firebase use --add                                                # ❌ project switching
firebase logout                                                   # ❌ kills auth
rm / mv into dist/                                                # ❌ direct production write
gmail send / smtp send                                            # ❌ autonomous email
```

## 9 · Quality gates (before notifying Khalid)

A draft is "ready for review" only if ALL pass:

- [ ] Company name correct in all 4 doors + cover letter
- [ ] Audit returned ≥ 5 findings (3 quick fix + 2 structural minimum)
- [ ] Job post 3 most distinctive sentences quoted in cover letter
- [ ] Hero h1 uses Fraunces italic em correctly
- [ ] No `lorem ipsum` / no `TODO` / no template placeholders left
- [ ] noindex,nofollow on every HTML file
- [ ] Australian English (en-AU)
- [ ] No "Empire/Emperor/AI AIR Team" theatrical voice

Fail any gate → leave in `dist-proposals/oc-1/<company>/` but flag in Telegram as `⚠️ DRAFT INCOMPLETE`.

## 10 · First-run setup checklist

- [ ] iMac Pro powered on · Tailscale running
- [ ] `~/AI-AIR-TEAM-HQ/INDEED-CONTRACT-WORK/` exists (clone or sync)
- [ ] `firebase --version` returns 15.x · `firebase login:list` shows cybersmartchoice
- [ ] OpenClaw Telegram bot token from @BotFather wired
- [ ] Indeed MCP authenticated to neuranest.artificial@gmail.com
- [ ] Schedule (§3) registered with macOS `launchd`
- [ ] First poll completes · no fits acceptable on day 1

Once all 7 checked: OC-1 is operational.
