Skip to content

fix(packaging): keep governance policy independent of optional core peer #1744

Closed

Description

@schlessera

Problem

The ready #1741 candidate 08fb4524526d1f1907b8424fe37b429721a1e333 fails the packed-consumer gate: dist/brain/governance-policy.d.ts references the optional @schlessera/brain peer through EffectiveGovernancePolicy. Pack job114969472843 fails the existing declaration assertion. Source also imports policy functions from that optional package eagerly; the policy path must not turn an optional peer into a server import prerequisite.

Scope

Share the unchanged data-only governance schema, defaults, parser and descriptor-anchored reader between the core CLI and server through the existing internal common package. Keep core's current internal facade, policy semantics and CLI envelope. Common is necessary because these are two existing consumers and the server cannot depend on an installed optional core peer; do not add a hard server-to-core dependency or duplicate the policy parser/defaults. Record the internal entry, its ordinary validation dependency and lockstep changeset.

Acceptance

  • The existing packed server declaration check passes without referencing the optional core peer.
  • A clean installed consumer can import the server and use policy reading without the core peer; valid/invalid/last-valid behavior stays unchanged.
  • Existing core policy CLI, anchored reader and server admission tests pass.
  • Keep the original pack failure, a meaningful missing-peer regression and restored packed-consumer proof; no weakened packaging gate.

Implement this bounded packaging correction in #1741 alongside #1650/#1743. No policy or permission ruling changes. Milestone0.42.0.

Activity

  1. added this to the 0.42.0 milestone on Oct 12, 2026
  2. added
    type: fix
    area: ui-server
    priority: p1
    on Oct 12, 2026
  3. self-assigned this
    on Oct 12, 2026
  4. schlessera commented on Oct 12, 2026

    @schlessera
    OwnerAuthor

    Claim: policy-package-1744-78381f66. Coordinator is applying this bounded packaging correction in #1741; existing policy semantics and actual packaging gates stay binding.

  5. removed their assignment
    on Oct 12, 2026
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: ui-serverpriority: p1type: fix

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions