plateprocess.dev · PLATE release v0.12.0

Curiosity Answer Model

Answer Model & Provenance Strategy — Design Spec

Problem

Define the canonical model for capturing, storing, and retrieving user answers to informational goals (Question issues) in a way that satisfies the four invariants from Epic #139:

This is the foundational data model for the entire Q&A / Contemplation system.

Constraints

Design Decision

Primary storage (source of truth): Structured GitHub issue comments on the Question issue

Every answer (initial or revision) is appended as a comment using this template (embedded JSON for machine parsing + human readable):

<!-- plate-answer-provenance
{
  "question_id": <number>,
  "session_id": "<uuid or gh run id>",
  "timestamp": "2026-05-30T...",
  "author": "@username|devin-ai-integration|plate-agent",
  "source": "qanda-tui|cli|copilot-cli|direct-comment",
  "revision_of": <prior_comment_databaseId|null>
}
-->

**Original Question (verbatim):** 
<quote>

**Answer (verbatim user input):** 
<full text>

**Additional Context / Attachments:** 
<if any>

**Provenance / Session Notes:** 
<agent reasoning excerpt, linked MCP calls, etc.>

The full transcript of the Q&A exchange is always preserved in the issue timeline.

Secondary committed artifact (for fast local/agent lookup, optional but recommended):

Agents (via MCP tools in #145) and humans prefer the committed form for speed when the repo is cloned; GitHub comments remain authoritative. On any answer ingest, both are updated atomically in the same PR/commit where possible.

Revision / correction workflow:

Query / retrieval patterns for agents:

Migration / backfill:

Integration with Contemplation (#143): The model is the storage layer; Contemplation contract dictates when and what to write on answer receipt.

Alternatives Rejected

Alternative Why Rejected
Purely ephemeral in agent context window Violates "never lose" invariant; no persistence across sessions or for other agents/humans
Only in GitHub comments with no committed artifact Current weak state; poor findability/performance for agents doing synthesis across many Questions (see research #140)
Full custom database or Notion-style system Violates PLATE "GitHub as source of truth" principle and durability guarantees
Using GitHub Discussions instead of issue comments Less structured linking to Questions, harder to enforce templates/labels, poorer MCP/GraphQL ergonomics

Artifact

Open Questions

Acceptance Evidence

This design satisfies Design issue #142 scope and decision criteria. It is informed by the research inventory in #140 (pending commit of docs/research/curiosity-qanda-inventory.md). All content changes pushed to the existing PR #146 branch per babysitting rules. Cross-references sibling designs #143 (contract), #144 (UX), #145 (surfaces).