Skip to content

Add anonymized matching research export - #1531

Draft
serefyarar wants to merge 4 commits into
devfrom
cursor/research-matching-export-e573
Draft

Add anonymized matching research export#1531
serefyarar wants to merge 4 commits into
devfrom
cursor/research-matching-export-e573

Conversation

@serefyarar

@serefyarar serefyarar commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What

Adds a read-only maintenance CLI that exports Edge Esmeralda matching data from Postgres as privacy-reduced JSONL:

  • users.jsonl, intents.jsonl, opportunities.jsonl, negotiations.jsonl
  • metrics.json (accepted/rejected/stalled/screened_out counts)
  • DATASET.md

Identifiers are HMAC-SHA256 pseudonyms. Free text is dictionary- and regex-redacted. Negotiation briefs, pause payloads, embeddings, and contact fields are dropped.

Why

ASU asked for Index matching data beyond the Hermes user-assistant chats already on Hugging Face: agent-to-agent negotiation logs and match accept/deny metrics.

Usage

RESEARCH_HMAC_SECRET=... DATABASE_URL=... bun run maintenance:export-research-dump -- --confirm --out .cache/research-export

Output is gitignored. Do not commit the dump or the HMAC secret.

Verification

bun test src/cli/tests/research-export.spec.ts — HMAC stability, PII redaction, A2A turn extraction, metrics.

Open in Web Open in Cursor 

cursoragent and others added 4 commits August 26, 2026 18:20
Exports Edge Esmeralda users, intents, opportunities, and A2A
negotiation transcripts as JSONL with HMAC pseudonyms and
deterministic PII redaction.

Co-authored-by: Seref Yarar <serefyarar@users.noreply.github.com>
Co-authored-by: Seref Yarar <serefyarar@users.noreply.github.com>
Co-authored-by: Seref Yarar <serefyarar@users.noreply.github.com>
Co-authored-by: Seref Yarar <serefyarar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants