# Miadi Research Participant

**Status:** Proposed participation contract, not a deployment audit. **Role:** `external_research_contributor`. **First client profile:** `perplexity-research`. All new identifiers below are proposed names, not registered services or issued credentials.

## Participation, not repository access

The integration must let an external assistant **orient in current work, contribute during a conversation, perform external research when appropriate, deliver results into Miadi, and leave a resumable next step**. GitHub is an optional evidence source, not the internal participation interface.

Miadi's connector already documents context reads, review and Chronicle access, observations, inquiries, evidence links, handoffs, research saving, and human-approved work requests. Reuse those services before adding parallel ones. Source inspection does not establish deployment or runtime success. [Existing connector](https://github.com/jgwill/Miadi/blob/main/packages/connector/README.md)

Perplexity supports custom remote MCP connections with HTTPS, Streamable HTTP or SSE, and OAuth or API-key authentication. It also documents skills as instructions and plugins as packages that can combine skills with connectors; Computer-specific skill behavior should not be assumed for every chat surface.[^1][^2]

## Distinguish the identities

| Concept | Responsibility | Proposed treatment |
|---|---|---|
| Role | Define allowed participation | `external_research_contributor`, reusable across assistant types |
| Client profile | Describe intended workflow and potential capabilities | `perplexity-research`, versioned |
| Principal/grant | Identify the authenticated integration or human delegation | Separate per connection and environment |
| Contribution | Identify one bounded piece of work | Durable platform-generated `contribution_id` |
| Runtime session | Identify the particular conversation when available | Optional host-supplied reference, never fabricated |

The current identity adapter resolves a **person token** and carries that person's role, API tier, and permissions. A separate service principal and explicit AI-versus-human attribution therefore require validation or extension rather than assuming an agent role already exists. [Identity adapter](https://github.com/jgwill/Miadi/blob/main/packages/connector/src/people.ts)

Support delegated human sessions first; optionally add service-principal grants for bounded background work. Records should distinguish human owner, authenticated principal, client application, and claimed model identity. A self-reported model name is not verified identity.

A token authenticates a grant; its permissions must come from server-side policy, not an assistant-supplied role field. Use the same role template across assistants, but not one shared secret for all instances. Keep token issuance, installation, and live role changes outside this requirements task.

## Capability map

Existing tool names are drawn from the connector documentation; proposed additions are explicitly marked. [Tool inventory](https://github.com/jgwill/Miadi/blob/main/packages/connector/README.md)

| Capability | Required behavior | Mapping |
|---|---|---|
| Discover | Return identity, grants, tool/service status, allowed projects, and capture/delivery policy | Extend existing `get_capabilities` |
| Orient | Return current inquiry, intention, relevant authorized contacts, open questions, pending decisions, prior results, and changes since last visit | **Proposed** `get_participation_context`, composed over existing context/search/record reads |
| Begin/resume | Link current input and intention to an existing inquiry; establish capture policy and correlation IDs | **Proposed** `begin_contribution`, with resume support |
| Read evidence | Retrieve reviews, episode artifacts, and exact evidence versions or locations | Reuse existing review/evidence/context reads |
| Contribute incrementally | Record findings, questions, corrections, uncertainty, and new branches before a final report exists | Extend existing observation/inquiry/link tools with contribution context |
| Checkpoint | Save progress, unresolved branches, next action, and continuation state | **Proposed** checkpoint behavior, preferably through existing records |
| Deliver | Persist actual text/files and provenance, verify storage, link the inquiry, and issue a receipt | Extend `save_research` or provide a thin delivery adapter |
| Route | Propose a milestone or handoff and inspect downstream status | Reuse handoffs, work proposals, and mission/status tools |

The context response should be bounded and versioned: `as_of`, source references, missing or stale evidence, pagination, authorization omissions, and continuation cursor. Fetch enough context to participate without dumping the entire platform into the prompt.

Relevant contacts means permitted responsibilities, participant preferences, and routing—not an unrestricted address-book export. The supplied UUID `D4715B2D-06CE-4AFD-BE7E-82B2A05EC303` remains an external reference until the platform resolves what it identifies.

## Permission boundaries

| Area | Default grant | Separate authorization |
|---|---|---|
| Context/evidence | Read designated inquiries and project resources | Other projects, private rooms, restricted records |
| Participation | Append attributed observations, questions, and corrections | Editing another person's account or accepting interpretations for them |
| Delivery | Stage a private contribution in an approved destination | Wider publication, repository commits/pushes, issue creation |
| Coordination | Propose work and read authorized status summaries | Execution, session steering, irreversible changes |
| Governance | Read applicable policy | Token issuance, role changes, consent decisions, self-approval |

Filter the advertised tool set by role and grant, but enforce authorization again on every invocation. Resource audience restrictions apply even when a tool itself is permitted.

The existing connector documents session reads as write-tier operations. Do not grant broad write access solely for orientation; expose an appropriately scoped context/status projection instead. [Access baseline](https://github.com/jgwill/Miadi/blob/main/packages/connector/README.md)

## Working sequence

1. **Identify:** discover effective role, grant, available services, and storage rules.
2. **Orient:** resolve and read current work; reuse the existing inquiry where appropriate.
3. **Register input:** retain the authorized prompt, redacted text, or source reference; store the assistant's interpretation separately.
4. **Choose mode:** conversation, evidence check, literature research, architecture analysis, or implementation proposal; not every useful exchange requires deep research.
5. **Contribute:** use available external tools and local evidence; save material findings and questions along the way.
6. **Checkpoint:** preserve open branches and next actions before interruption.
7. **Deliver:** store artifacts and provenance, verify the result, and link it to its input and inquiry.
8. **Hand off:** route a specific next step; distinguish a recorded request from recipient acknowledgement.
9. **Pause or close:** issue continuation state without automatically closing the parent inquiry.

A later session must rehydrate platform state and check what changed. Continuity cannot depend on the assistant retaining a previous chat.

## Trace and observation

Use a durable contribution identity across several technical traces. OpenTelemetry spans represent operations, and span links can connect later asynchronous work across traces.[^3]

**Proposed envelope:** `contribution_id`, `inquiry_ref`, `input_ref`, `context_snapshot_ref`, `conversation_ref` when available, `trace_id`, `span_id`, `causal_links`, `actor`, `grant_ref`, `source_refs`, `audience`, `occurred_at`, `recorded_at`, and `idempotency_key`. Generate or resolve real IDs server-side; a source UUID is not automatically an OpenTelemetry trace ID.

- **Engineering telemetry:** instrument connector middleware automatically for operation, authorization, duration, outcome, retries, artifact IDs, and side effects. Correlate downstream calls server-side.
- **Inquiry observations:** explicitly record changed interpretations, participant corrections, non-coding contributions, unresolved disagreements, and consent concerns. Retain attribution and the relationship between original and revised statements.
- **Coverage boundary:** connector instrumentation observes connector operations—not every external search, conversation turn, audio action, or hidden model process. Mark externally submitted activities as client-reported, not independently observed.

Do not request hidden chain-of-thought. Record concise rationale, evidence, uncertainty, and decisions. Later observations should reference earlier operations rather than assume already-exported telemetry can be rewritten.

Store sensitive prompts and participant material separately from routine telemetry, with explicit capture and retention policies. The connector should accept the minimum needed input reference when full transcript capture is inappropriate.

## Durable delivery

A downloadable file in chat is not proof of delivery into Miadi. The platform needs a real storage acknowledgement that local agents can retrieve.

**Proposed manifest:** contribution/inquiry/input/context references; title and language; files with media type, bytes, hash, and durable location; findings mapped to sources and locators; public URLs/DOIs and retrieval dates; local review versions or screenwalk timestamps; claim categories; limitations; unanswered questions; next actions; visibility and reuse restrictions; capabilities actually used.

Distinguish source claims, participant accounts, assistant interpretations, hypotheses, desired features, fiction, and verified implementation. Evidence links do not themselves prove implementation or participant agreement.

**Required receipt:** artifact/version IDs, storage location, verified hash/bytes, actual audience, linked inquiry, handoff status, side effects, partial failures, and continuation state. Keep `stored`, `handoff_pending`, `acknowledged`, and `accepted` distinct; none means implemented.

The documented `save_research` operation saves a report, opens an inquiry issue, and commits/pushes a shelf folder. Separate private staging from these effects, or require an explicit grant covering them before execution. Use idempotent uploads/finalization and expose partial failures. [Delivery baseline](https://github.com/jgwill/Miadi/blob/main/packages/connector/README.md)

Preserve portable source links and locators instead of only chat-specific citation markers. Do not automatically copy copyrighted full texts or expose private participant material through public research queries.

## Human and narrative boundaries

These are proposed governance requirements, not evidence that recording relationships establishes relational accountability:

- Enforce consent, audience, and reuse rules in storage, search, exports, and handoffs—not only in descriptive metadata.
- Let participants challenge and correct representation; do not silently replace their account with an assistant synthesis.
- Keep engineering telemetry distinct from restricted relationship or ceremony material. Recording ceremonial content must not be a default condition for observability.
- Separate permission to research from permission to publish, fictionalize, generate dialogue, or use a voice/likeness.
- Support authorized redaction and deletion under policy; append-oriented history must not mandate indefinite retention of withdrawn sensitive content.

A local decision engine may help route work, but its output never grants permissions, supplies consent, or proves truth. Record the options, policy version, result, and overrides. Deterministic authorization remains separate from model-based routing.

## Connection and limits

Use the existing Miadi remote MCP service with a separate client/grant. Prefer OAuth for delegated human participation; evaluate an API key only if service-principal support is implemented and tested. Perplexity documents both authentication options and the callback `https://www.perplexity.ai/rest/connections/oauth_callback`, with a separate Enterprise-domain equivalent.[^2]

Validate token audience, use revocable least-privilege credentials, and separate downstream API credentials from MCP access tokens. MCP security guidance forbids token passthrough across the wrong resource boundary.[^4]

A plugin can package workflow instructions with the connector where the client supports it, but instructions are not guaranteed hooks for every user message. Use explicit invocation and receipt checks; do not promise automatic capture of every turn.[^1]

A remote MCP connection also does not establish a persistent background Perplexity worker or expose Perplexity's internal Web/Academic tools to local agents. Schedule local jobs locally; separately evaluate an API-backed research worker if autonomous execution is desired. Test browser approval and status polling before relying on client-specific cards or notifications.

## First milestone

**Proposed outcome:** an authorized Perplexity session can orient in one existing inquiry, register an input reference, append an observation, deliver a private artifact, and leave a resumable handoff with attributable receipts.

**Acceptance checks:**

1. Authorized context is useful and restricted context stays hidden, including through search and direct tool invocation.
2. Changing a payload role/actor cannot impersonate a person or elevate privileges.
3. Original input and assistant interpretation remain separately addressable.
4. Every connector operation is instrumented; external work has explicit, honest coverage labels.
5. A conversational observation can be saved without creating a report or triggering execution.
6. A local agent can retrieve and verify a delivered artifact; retrying finalization creates no duplicate.
7. Private saving never unexpectedly publishes, commits, pushes, or creates an issue.
8. Revocation blocks subsequent protected calls within the declared policy; sensitive writes fail closed.
9. A resumed session recovers corrections, pending handoffs, and unresolved questions from platform state.
10. Request, approval, dispatch, execution, and human acceptance remain distinct.

**Local-agent assignment:** inventory these requirements against deployed services and schemas; classify each as deployed-and-tested, source-only, partial, missing, or intentionally excluded. Return the smallest change set, permission migrations, integration-test evidence, and verified delivery receipt. No live role changes, credential issuance, publication, or autonomous execution is authorized by this document.

---

## References

1. [What is a skill? - Perplexity Help Center](https://www.perplexity.ai/help-center/en/articles/2026102602-what-is-a-skill) - Select **Add custom**, then **Skill**, and choose **Create with Computer** to describe the skill in ...

2. [Ajouter des connecteurs distants personnalisés - Perplexity Help Center](https://perplexity.ai/help-center/fr/articles/13915507-ajouter-des-connecteurs-distants-personnalises) - Lorsque vous créez une application OAuth dans un système externe pour un connecteur personnalisé, le...

3. [Traces](https://opentelemetry.io/docs/concepts/signals/traces/) - With Context Propagation, Spans can be correlated with each other and assembled into a trace, regard...

4. [Security Best Practices](https://modelcontextprotocol.io/docs/draft/tutorials/security/security_best_practices) - This breaks a fundamental OAuth security boundary, allowing attackers to reuse legitimate tokens acr...

