Skip to content

refactor: renew storage, lib, and product runtime seams #225

Closed

Description

@Sinity

Ref #222

Outcome

Continue the renewal program into the semantic core: storage, lib query/runtime code, and derived product seams.

Problem or opportunity

Once schema/source/ingestion boundaries are tightened, the next major weakness will be in the storage and lib substrate where query/runtime code still carries broad object plumbing, casts, and duplicated result-shape glue.

Expected scope

Likely modules include:

  • polylogue/lib/query_spec.py
  • polylogue/lib/payload_coercion.py
  • polylogue/storage/repository.py
  • polylogue/storage/search_providers/*
  • selected session_product_* and repository_product_* modules
  • adjacent runtime/model helpers

Acceptance criteria

  • Result-shape and runtime contracts are expressed directly rather than through broad container plumbing.
  • Cast pressure is materially reduced in the storage/lib layer.
  • 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:storagetype:refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions