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
fix(packaging): keep governance policy independent of optional core peer #1744
area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.priority: p1Scheduled into the current or next milestone.type: fixSomething is broken and must behave the way it is documented.
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.
Claim: policy-package-1744-78381f66. Coordinator is applying this bounded packaging correction in #1741; existing policy semantics and actual packaging gates stay binding.
area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.priority: p1Scheduled into the current or next milestone.type: fixSomething is broken and must behave the way it is documented.
Activity
schlessera commentedon Oct 12, 2026
Claim:
policy-package-1744-78381f66. Coordinator is applying this bounded packaging correction in #1741; existing policy semantics and actual packaging gates stay binding.CONTRACT: fix(packaging): share policy without optional core imports (#…
CONTRACT: read immutable governance policy at turn admission (#1650) (#…