Skip to content

refactor: rebuild storage and product runtime boundary contracts #272

Closed

Description

@Sinity

Context

After schema/source/ingestion renewal, the next remaining weak-contract area is the storage/lib/product-runtime layer. The archive substrate is type-checked, but some of the semantic core still leans on broad object plumbing, casts, and repeated result-shape normalization.

Scope

Focus on:

  • polylogue/storage/
  • polylogue/lib/
  • polylogue/storage/session_product_*
  • polylogue/storage/repository_product_*

Representative targets include repository mixins, hybrid retrieval/search providers, and product materialization/query seams.

Acceptance criteria

  • Common result-shape and payload coercion logic is centralized instead of repeated.
  • Repository and product-runtime boundaries express explicit contracts rather than broad loosely typed maps.
  • Storage/lib changes stay substrate-first; surfaces should adapt rather than invent substrate concepts locally.
  • The tranche lands as one coherent PR with full verification.

Out of scope

  • Broad UI/MCP polish unless directly required by the substrate changes
  • Repo-wide verification/devtools cleanup except fallout

Activity

  1. added
    type:refactor
    on Apr 20, 2026
  2. added 4 commits that reference this issue on Apr 22, 2026
    177a81c
    31ef863
    982848f
    fe1ec12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:storagetype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions