🦚 Peacock Unified

🏗️ App Invariants

Layer 2 — application architecture · 1,820 documents

IDDocumentSource
app_invariants__dcb6783ed36df963INVARIANT: Secrets stored in the Key-Value store MUST maintain consistency between their cached decrypted form and their encrypted persisted form after any modification. SHADOW: If the cache becomes…—
app_invariants__d7ac252c63963397INVARIANT: Migration Log Immutability and Append-Only Monotonicity SHADOW: Strict adherence to a 'never-modify-pushed-migrations' rule prevents state divergence across distributed instances.…—
app_invariants__934f73e32e6d8810INVARIANT: Deterministic Managed Role UID Derivation SHADOW: Managed security identities are generated using the formula 'managed_{org_id}_{type}_{id}'. This deterministic mapping ensures that roles…—
app_invariants__324310907996ce68INVARIANT: Cross-Dialect Schema Parity Enforcement SHADOW: Complex schema transformations (like converting unique indices to primary keys) are executed through dialect-specific transaction sequences…—
app_invariants__0d5dd576d81aa4ebINVARIANT: Administrative Identity Zero-Floor Prohibition SHADOW: The system enforces a mandatory non-zero count of global administrator identities (validateOneAdminLeft). This invariant prevents…—
app_invariants__f5a988ceacaf6fa4INVARIANT: Entropy-Based Password Policy Enforcement SHADOW: Authentication secrets are subjected to char-class diversity checks (Upper, Lower, Number, Symbol) when strong policies are enabled. This…—
app_invariants__45ee774fb19ea1efINVARIANT: Migration-Log-Driven Feature Gating SHADOW: The availability of unified alerting and advanced features is coupled to the verified presence of specific entries in the migration log (e.g.,…—
app_invariants__d97a8b9995617698INVARIANT: Hierarchical Folder Integrity requires the strict prohibition of self-parenting and the enforcement of a maximum nesting depth. SHADOW: This prevents infinite recursion in tree traversal…—
app_invariants__558e201d2ea31a88INVARIANT: SSO Settings persistence must utilize a soft-delete pattern via an 'is_deleted' flag to maintain auditability and configuration history. SHADOW: Hard-deleting authentication…—
app_invariants__88bf821da7e95a0aINVARIANT: Preference resolution follows a hierarchical merge strategy where User settings override Team settings, which override Org settings, finally falling back to Global defaults. SHADOW: This…—
app_invariants__4ac8258c7f453fdaINVARIANT: Resource provisioning from external files must perform an 'Upsert' operation based on unique identifiers (UIDs) to ensure configuration stability across restarts. SHADOW: Without…—
app_invariants__3d676e01ec2f0e1aINVARIANT: Cache retrieval for multi-tenant resources must validate the requester's Organization ID against the cached object's metadata before returning the data. SHADOW: This is a critical…—
app_invariants__dd7f14e06ef13381INVARIANT: The Zanzana Reconciler maintains authorization state by computing a symmetric difference between the primary SQL store and the OpenFGA tuple store. SHADOW: Ensures eventual consistency…—
app_invariants__03cd1ed3b0ec8c5cINVARIANT: Distributed operations, such as OAuth token refreshing or basic role seeding, must be protected by a global ServerLock to prevent concurrent mutation of shared state. SHADOW: In a…—
app_invariants__bab2e448ceceaa2dINVARIANT: Cleanup services for expired snapshots and dashboard versions must execute in bounded batches to prevent long-lived database transactions and lock contention. SHADOW: Deleting millions of…—
app_invariants__9fba2f5c59a1916fINVARIANT: Access Control evaluators must support prefix-based wildcard matching where a permission scope ending in '*' grants access to all sub-paths within that namespace. SHADOW: This allows for…—
app_invariants__867fca6386d4d38cINVARIANT: Data source updates must enforce version checks to prevent 'Lost Updates' where an older configuration overwrites a newer one. SHADOW: Ensures that if two administrators are editing a…—
app_invariants__135d2f096b58930dINVARIANT: The GetDashboardVersionThroughK8s function retrieves a dashboard version using the provided UID and Version, ensuring that the same query for a specific version returns the same result,…—
app_invariants__db09e7e1c6217afdINVARIANT: The DeleteExpired function is designed to be idempotent. Repeatedly calling DeleteExpired with the same command should result in the same state (no further deletions if already run), as it…—
app_invariants__3bec56215c657368INVARIANT: The RestoreVersion function is idempotent. Calling it multiple times with the same RestoreVersionCommand will result in the same dashboard state, as it effectively reverts the dashboard to…—
app_invariants__28aec204f0ced127INVARIANT: The IsUserSyncEnabled and AreNonProvisionedUsersRejected functions are idempotent. They return the same boolean result based on the current configuration (static or dynamic fetched from…—
app_invariants__b1d26ee5104d690cINVARIANT: The Migrate function within PromTypeMigrationService is idempotent. It performs a migration task, and if the migration has already been applied, subsequent calls will not change the state…—
app_invariants__85688b8f58d0dab1INVARIANT: The ApplyMigration function is idempotent. It ensures that a given Prometheus data source type migration is applied only once. If the data source type has already been updated, it will not…—
app_invariants__e0a8873af48d6eecINVARIANT: The UpdateDataSourceType function is idempotent. It updates a data source's type, and if the type is already the target type, the operation effectively does nothing, ensuring the state…—
app_invariants__b377b1fb40ca0210INVARIANT: The Migrate function in PromTypeMigrationService is idempotent. It ensures that the Prometheus data source type migration is applied only once. If the migration has already been performed,…—
app_invariants__2804e81bda7b575dINVARIANT: The fetchDynamicSCIMSetting function is idempotent. It retrieves a specific SCIM setting (like user sync or group sync) and returns the same value if called multiple times with the same…—
app_invariants__40c7460a6688079aThe GetPluginSettings and GetPluginSettingByPluginID functions are idempotent. They retrieve plugin settings and return the same data if called multiple times, as they are read operations.—
app_invariants__303b5bed41ef01ccINVARIANT: The UpdatePluginSetting and UpdatePluginSettingPluginVersion functions are idempotent. They update plugin settings, and if the settings are already as specified, the operation effectively…—
app_invariants__cdfd289390ec1523INVARIANT: The ListPluginDashboardFiles and GetPluginDashboardFileContents functions are idempotent. They are read operations that retrieve information about plugin dashboard files and their…—
app_invariants__e16254e008c1a465The ManagedPlugins and ProvisionedPlugins functions are idempotent. They return a list of managed or provisioned plugins, and calling them multiple times will yield the same result as they are read…—
app_invariants__ee90495575016384INVARIANT: The GetForProvider function is idempotent. It retrieves SSO settings for a given provider and returns the same result if called multiple times, as it's a read operation. SHADOW: This…—
app_invariants__74f152f678035f90INVARIANT: The List function in PluginSourcesService is idempotent. It returns a list of plugin sources, and calling it multiple times will yield the same result as it's a read operation. SHADOW:…—
app_invariants__de458cdbc4761617INVARIANT: The Renderer service's Renderer function is idempotent. It retrieves the renderer plugin, and calling it multiple times will return the same plugin instance if it has already been…—
app_invariants__218c350c7c17ee49INVARIANT: The GetPluginSettings and GetPluginSettingByPluginID functions are idempotent. They retrieve plugin settings and return the same data regardless of how many times they are called, as they…—
app_invariants__3a91547ba9ba0ed2INVARIANT: The Dynamic Angular Detectors Provider's fetch function is idempotent. It fetches dynamic angular detection patterns, and repeated calls with the same ETag will return a 'not modified'…—
app_invariants__a0397e40408484ffINVARIANT: The GetPublicKey function is idempotent. It retrieves a public key for signature verification, and calling it multiple times with the same key ID will return the same key without altering…—
app_invariants__a72aa6879650bb04INVARIANT: The CacheKvStore's Get, Set, Delete, and ListKeys functions are idempotent. Get and ListKeys are read operations, while Set and Delete are idempotent because they ensure a specific state…—
app_invariants__ba726aec19961427INVARIANT: The Load and Unload functions in the pluginsLoader.Service are idempotent. Load ensures a plugin is loaded, and subsequent loads of the same plugin have no additional effect. Unload…—
app_invariants__326fcd1b46537e1dINVARIANT: The client middleware functions (CachingMiddleware, OAuthTokenMiddleware, MetricsMiddleware, etc.) are designed to be idempotent in their application. While the underlying operations might…—
app_invariants__1626866d6c678774INVARIANT: The GetBasePluginContext function is idempotent. It retrieves base plugin context information, and calling it multiple times with the same parameters will return the same context without…—
app_invariants__6fdbfaa789669374INVARIANT: The GetPluginEnvVars function is idempotent. It generates environment variables for plugins, and calling it multiple times with the same plugin will produce the same set of environment…—
app_invariants__1037210f67545602INVARIANT: The PluginRequestConfig function is idempotent. It retrieves plugin request configuration, and calling it multiple times with the same plugin ID and external service will return the same…—
app_invariants__534f340d4690fb6cINVARIANT: The PluginInstaller service's IsDisabled function is idempotent. It checks if the plugin installer is disabled, and calling it multiple times will return the same boolean result. SHADOW:…—
app_invariants__f562d548c504cc0cINVARIANT: The PluginInstaller service's shouldUpdate function is idempotent. It determines if a plugin needs an update, and calling it multiple times with the same parameters will yield the same…—
app_invariants__91bd9909925d6f22INVARIANT: The InstallPlugins function is idempotent. It installs plugins, and if a plugin is already installed with the correct version, it will not be reinstalled. SHADOW: This ensures that the…—
app_invariants__7cef376bc193fe9cINVARIANT: The RegisterExternalService function is idempotent. It registers an external service, and if a service with the same identifier already exists, it will be updated or its registration will…—
app_invariants__8af9093349b6ec87INVARIANT: The RemoveExternalService function is idempotent. It removes an external service registration, and if the service is not found, the operation completes without error, ensuring the system…—
app_invariants__1c262238173a9058INVARIANT: The coreplugin.Registry's BackendFactoryProvider function is idempotent. It provides a backend factory, and calling it multiple times will return the same provider without re-initializing…—
app_invariants__3ed57aa97179adb4INVARIANT: The ProvideService function for the Advisor service is idempotent. It initializes the Advisor service, and subsequent calls will return the same initialized service without re-creating…—
app_invariants__64cc301b9f263c35INVARIANT: The ProvideService function for the FileStoreManager is idempotent. It provides the FileStoreManager, and calling it multiple times will return the same manager instance without…—