You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: tighten schema and lib semantic boundary precision #251
Renew the next substrate tranche around polylogue/schemas/ and polylogue/lib/, focusing on semantic precision rather than just strict-type acceptance.
Problem or opportunity
After the completed renewal program, the highest remaining weak-contract density is in schemas and lib. These modules are type-checked, but many runtime paths still move meaning through broad Any/object containers, repeated cast(...) use, and dict-shaped payload conventions that obscure the actual contract.
Expected scope
Likely modules include:
polylogue/schemas/field_stats_*
polylogue/schemas/relational_*
polylogue/schemas/schema_*
polylogue/lib/* modules that still center broad payload coercion or runtime result-shape adaptation
adjacent helpers that need to adopt the new contract shape
Constraints and invariants
Establish the contract shape in local anchor rewrites first.
Use workers only for narrow propagation after the anchor lands.
Prefer deleting duplicated coercion glue over layering more helpers on top.
Keep test fallout targeted to proof of the new contracts.
Acceptance criteria
Broad schema/lib payload flow is replaced with stronger aliases, explicit records, or narrowing helpers where appropriate.
Remaining cast pressure in the touched schema/lib slice is materially reduced.
The tranche lands as a coherent PR with devtools verify green.
Activity
refactor: tighten schema and lib payload boundary contracts (#253)
refactor: tighten schema and lib payload boundary contracts (#253)
refactor: tighten schema and lib payload boundary contracts (#253)
refactor: tighten schema and lib payload boundary contracts (#253)