Skip to content

refactor: contract CLI, MCP, and UI surfaces over renewed substrate #245

Closed as not planned

Description

@Sinity

Ref #222

Outcome

Continue the renewal program into the user and machine surfaces so they consume the tightened substrate directly instead of carrying their own duplicated adapter glue.

Problem or opportunity

After the schema/source/ingestion and storage/lib/runtime tranches, the remaining architectural weakness will be in the surface layer: CLI, MCP, and UI code that still knows too much about storage details, response shaping, and archive-specific coercion.

Expected scope

Likely modules include:

  • polylogue/cli/
  • polylogue/mcp/
  • polylogue/ui/
  • selected polylogue/rendering/ and polylogue/site/ follow-through surfaces where presentation code still compensates for substrate ambiguity
  • adjacent surface payload and formatting helpers

Acceptance criteria

  • CLI, MCP, and UI surfaces depend on explicit surface contracts rather than repository/storage details where that coupling is not semantically required.
  • Duplicated response-shaping and presentation-side coercion is materially reduced.
  • The tranche lands as a coherent PR with devtools verify green.

Verification plan

Run devtools verify before merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:mcparea:sitetype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions