Skip to content

Governance: shrink the public surface to tier lookup and drop backwards references #2381

Open

Description

@peterdrier

Peter's direction from the Governance section review (PR #2378), recorded so the work can be planned. The goal of each item is to drop a cross-section reference, not just move code.

Governance's public surface shrinks to "is this person in the association?"
IGovernanceService.GetMembershipTierAsync / GetMembershipTiersAsync stay public. Everything else about applications is Governance-internal:

  1. Users stops reading applications. GetUserApplicationsAsync is called by Users (profile and admin detail). Nothing outside Governance needs to know whether someone applied; the application history belongs on Governance's own pages.
  2. Consent's review queue stops reading applications. GetUserIdsWithPendingApplicationAsync and GetSubmittedApplicationForUserAsync are called by Consent's review queue. Consent review asks "is this person a problem?", which is decided on the person's name alone; whether they applied to the association does not matter.
  3. Notifications stops pulling the unvoted-application count. NotificationMeterProvider calls IGovernanceService.GetUnvotedApplicationCountAsync for the Board meter. Notifications never pulls from a section; Governance pushes a notification when something needs the Board. Governance's own nav pill keeps the count internally, so the method leaves the public interface.
  4. Teams stops reading tiers; the Colaboradores and Asociados system teams move out of Teams. Teams calls GetActiveApprovedTierUserIdsAsync / HasActiveApprovedTierAsync to sync those two system teams. "System team" is an overloaded concept from the association's early days, and Teams is about to be reorganized. Governance should own those two groups itself, with what they are used for (Google Group email lists, Drive access) driven by fan-outs Governance feeds, such as an email-group fan-out and a drive-access fan-out. First step: audit where the two system teams are used today.

Governance's backwards references go.

  1. Governance references Issues (it implements IIssueQueueOwner), Consent and Onboarding (resource markers). All three point the wrong way. References to Email, Notifications and Users are fine.

Related, handled elsewhere: whether IMembershipCalculator should exist at all (separate thread).


Generated by Claude Code

Activity

  1. peterdrier commented on Nov 13, 2026

    @peterdrier
    OwnerAuthor

    Issue drain 2026-11-13: vetted against origin/main, still true. Every call site named here exists (Users ProfileController/UsersAdminController, Consent ConsentReviewQueueService, Notifications NotificationMeterProvider, Teams SystemTeamSyncJob), and Humans.Governance.csproj still references Issues, Consent and Onboarding. No open PR covers it.

    It is five separate changes, not one small fix, and item 4 depends on the "System teams out of Teams" design that is waiting on your answers.

    Question: split this into one issue per item and work them as separate PRs, starting with item 2 (Consent's review queue stops reading applications, the smallest and self-contained), with item 4 parked behind the system-teams design?

    Recommended: yes. Item 3 also needs a push-notification shape for the Board meter, so it should come after 1 and 2.


    Generated by Claude Code

  2. added
    question
    on Nov 13, 2026
  3. removed
    question
    on Dec 2, 2026
  4. peterdrier commented on Dec 2, 2026

    @peterdrier
    OwnerAuthor

    Peter answered on 2026-12-02 (project thread "Work through questions waiting on Peter"): size never needs his sign-off. "If you can build it, you can build it." The only gate on big work is whether the ask is well defined, and this one is. Build the unblocked items as separate PRs; item 4 waits on the system-teams design.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions