--- description: Only announcement dismissals, the announcement publication-ID registry, and personal workspace presentation preferences are instance-wide; they must still validate company membership for audit and grant no authority. globs: "packages/db/src/schema/announcement_dismissals.ts,packages/shared/src/announcements.ts,server/src/routes/announcements.ts,server/src/services/announcements.ts,server/src/services/announcement-feed.ts,packages/db/src/schema/user_workspace_preferences.ts,packages/shared/src/workspace-preferences.ts,server/src/routes/workspace-preferences.ts,server/src/services/workspace-preferences.ts" alwaysApply: false --- # Company-scope exceptions ## Scope and purpose Every domain entity is scoped to a company, and routes and services enforce company boundaries. This rule lists the only data that is instance-wide and the conditions that keep it safe. It also applies to any change that adds a new table, route, or service that is not scoped to a company. ## The exceptions - **Announcement dismissals** are instance-wide user preferences, keyed by user and announcement so they persist across companies. Their audit context must still validate company membership. - **The announcement publication-ID registry** is instance-level feed metadata. It contains no company or user data. - **Personal workspace presentation preferences** are instance-wide by user, with validated company membership supplying audit context. They never grant execution authority, change company capabilities or agent configuration, or rewrite canonical work records. Optional conversation guidance must retain the same action permissions. ## Requirements - Do not add another instance-wide entity unless you add it to this list in the same pull request and state why company scope does not fit. - An instance-wide preference must not change what an actor is allowed to do. ## Review criteria Flag a new table, route, or service that holds domain data without a company scope and is not listed here. Flag an exception that skips company membership validation for its audit context. Flag a preference that grants authority, changes company or agent configuration, or rewrites work records.