plateprocess.dev · PLATE release v0.12.0

Information Audit Contract


title: Design: Information Audit Contract, Behavior, and Platform Integration issue: 223 epic: 218 status: draft

Design: Information Audit Contract, Behavior, and Platform Integration

Issue: #223 (Design child of Epic #218 "Information Audit & Goal-Driven Question Generation")

Designed by: Grok (xAI)

Date: 2026-05-31

Status: Draft (for review and refinement)

Design Goal

Define the precise, enforceable contract and runtime behavior for the Information Audit capability as a first-class, platform-level PLATE feature. This must work generically for any project adopting PLATE (via template, plugin, or MCP), enabling agents to proactively discover Informational Goals and generate high-quality Question issues.

The system builds on the Curiosity/Q&A machinery from Epic #139 but shifts from reactive (answering existing Questions) to proactive (discovering what Questions to ask, grounded in explicit project Goals).

Key Concepts (recap from planning and #220)

The audit bridges Goals → Informational Goals → Questions.

Scope

Out of scope for this Design: Exact UI/UX for surfacing audits (future TUI work), full classification taxonomy for Informational Goals (future), heavy machine-readable Goals page format (start flat per #219).

Primary Tool: `plate_perform_information_audit`

Inputs (all optional except repo context):

Outputs (structured, agent-friendly):

Behavior Rules (enforceable contract):

  1. Open-ended by default: Always start broad unless scoped. Use the Wiki Goals page (if present) as a primary strategic signal, but treat it as one input among many (code patterns, open issues, PR discussions, existing Questions, bootstrap defaults, etc.). Never assume the Goals page is the only source.
  2. Provenance & Traceability: Every proposed Question must include clear links back to where the gap was noticed and forward to artifacts that should be updated on resolution. Use structured comment blocks (e.g., PLATE-INFORMATIONAL-GOAL) compatible with the Answer Model.
  3. Continuous Refinement: Generated Questions should support follow-up (broad → specific). The audit can detect and link related prior Questions.
  4. Quality over Quantity: Prefer fewer, high-signal Questions. Use heuristics + LLM reasoning (via the agent's own capabilities) to avoid noise. Cap via max_questions. Agents should prioritize and synthesize.
  5. Specialized Scoping: When agent_type is provided (or inferred from persona), narrow the surface and heuristics (e.g., marketing agent focuses on positioning, users, GTM gaps; engineering agent on architecture, risks, unknowns in code).
  6. Platform Defaults + Extensibility: Always include relevant platform/extension default informational goals (see #222). Extensions register via catalog or manifest; core audit incorporates them when in scope.
  7. Integration with Existing Flows: Generated Questions feed directly into Curiosity/Q&A, Contemplation Engine (#149), and blocking/resumption (#147/#148). The audit itself can be triggered from plate_record_answer or as a standalone tool.
  8. No Data Loss / Auditability: Full log of the audit run. Respect existing invariants (never lose info, agents can find answers, users can revise, every answer drives progress).
  9. Human-in-the-Loop Friendly: Dry-run mode for review. Agents post proposed Questions as comments or draft Issues for human approval before creation when appropriate. Escalate ambiguity.
  10. Wiki as Strategic Home: The Goals page (per #219 convention) is the preferred location for high-level mission. Audits should encourage its adoption if missing (light nudge via health or output).

CLI Surface (gh plate info-audit or similar, thin wrapper over the MCP tool):

Platform Integration Points

Alternatives Considered

Decision Criteria

Acceptance Evidence

Open Questions / Future Work

This design satisfies the platform-level requirements of Epic #218 and provides a clear, implementable contract for the Features that follow (#221, #224, #225, #226, etc.).


Related: #219 (Goals page structure), #220 (concept modeling), #222 (defaults catalog), #224 (convention adoption), Epic #139 (Curiosity foundation).