Skip to content

πŸ”Œ Connector production burn-in (GitHub + Gmail + Discord)Β #229

Closed

Description

@hurttlocker

Problem

Eight connectors exist. They pass tests. But none of them have run against real data for more than a few minutes. Tests mock HTTP β€” they don't prove the connector handles pagination, rate limits, token expiry, partial failures, or data volume in the real world.

Approach

Pick the three connectors that matter most for personal agents (GitHub, Gmail, Discord) and run them in production on the iMac for at least two weeks with auto-sync enabled.

Phase 1: Wire Up (Days 1-2)

  • Configure GitHub connector with a real repo (hurttlocker/cortex itself β€” meta)
  • Configure Gmail connector with a real inbox
  • Configure Discord connector with a real server
  • Set up cortex connect schedule --every 3h --install for all three
  • Instrument: log sync duration, record count, error count per run to a simple log file

Phase 2: Observe (Days 3-14)

  • Monitor daily: any crashes? Any silent data loss? Any duplicates?
  • Track: How many memories/facts accumulate per day per connector?
  • Track: Does DB size stay reasonable? (Target: <50MB after 2 weeks)
  • Track: Any rate limit hits? How does backoff behave?
  • Track: Token expiry handling β€” does refresh work?

Phase 3: Fix & Harden (During + After)

For every issue found during burn-in:

  1. File a bug
  2. Fix it
  3. Add a regression test
  4. Update connector docs with real-world notes

What "Production Ready" Means for Each Connector

  • Ran for 14+ days without crash
  • Handled at least 1 token refresh cycle (or documented that tokens are long-lived)
  • Pagination works for >100 items
  • Duplicate detection works (reimport same data = no new memories)
  • Rate limit backoff works (observed or simulated)
  • Error recovery: network blip during sync doesn't corrupt state
  • Documented: setup steps, env vars, known limits, cost (if any)

Remaining Connectors (Post-v1.0)

Telegram, Slack, Notion, Calendar, Drive β€” these get the same treatment in v1.1+. For v1.0, they ship as "beta" with a note in docs.

Acceptance Criteria

  • 3 connectors running in production auto-sync for 14+ days
  • Zero data loss or corruption incidents
  • All bugs found during burn-in are fixed with regression tests
  • Connector docs updated with real-world operational notes

Activity

  1. added
    v1.0
    hardening
    connector
    on Feb 25, 2026
  2. hurttlocker commented on Feb 26, 2026

    @hurttlocker
    OwnerAuthor

    Burn-in Started: 2026-02-26

    GitHub Connector β€” LIVE

    • Repo: hurttlocker/cortex (the project itself β€” meta testing)
    • First sync: 360 records, 1,114 facts extracted, 71 edges inferred (13.3s)
    • Auto-sync: launchd com.cortex.connect-sync every 3h with --extract
    • Logs: ~/.cortex/logs/connect-sync.{log,err}

    Post-Sync Stats

    • Total memories: 2,273 (was 1,913 before connector)
    • Total facts: 5,119 (was 4,005)
    • DB size: 8.4 MB

    Monitoring Plan

    • Check sync logs daily for errors/crashes
    • Track memory/fact growth
    • Verify dedup on repeated syncs
    • Watch for rate limit behavior

    Gmail + Discord

    Will add when burn-in infrastructure proves stable (day 3-4).

  3. hurttlocker commented on Feb 26, 2026

    @hurttlocker
    OwnerAuthor

    Connector burn-in continues post-v1.0. GitHub connector running in production with 3h auto-sync. Connectors ship as beta in v1.0 β€” burn-in validates them for v1.1 promotion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    connectorhardeningv1.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions