Memex Admin

Policies

Repository: mem-labs/mem

61 of 61 policies
New Policy
PolicyStatusUpdated

Desktop: Electron API Type Sync

Desktop `window.electronAPI` type contracts must stay synchronized.

activeFeb 19, 2026, 9:36 PM

Desktop: Preload Least Privilege

Desktop preload bridge must preserve least-privilege exposure.

activeFeb 19, 2026, 9:36 PM

Desktop: External URL Safety

Desktop external URL opening must enforce protocol safety and validation.

activeFeb 19, 2026, 9:36 PM

Desktop: BrowserWindow Security Defaults

Desktop BrowserWindow security defaults must be preserved.

activeFeb 19, 2026, 9:36 PM

Desktop: IPC Contract Sync

Desktop IPC bridge changes must keep contract surfaces in sync.

activeFeb 19, 2026, 9:36 PM

Frontend + Desktop: High-Risk Flows Require Tests

High-risk frontend and desktop flows require accompanying test coverage updates.

activeFeb 19, 2026, 9:36 PM

Frontend + Desktop: No Silent Catch

Frontend and desktop runtime code must not silently swallow exceptions.

activeFeb 19, 2026, 9:36 PM

Mem-Client: OAuth Redirect Resilience

OAuth redirect/callback flows must fail safely and visibly.

activeFeb 19, 2026, 8:40 PM

Python Service: Bootstrap Completeness

New deployable Python services must include baseline operability scaffolding.

activeFeb 19, 2026, 8:40 PM

Python Service: Publish/Deploy Gate Dependencies

Publish/deploy jobs must depend on quality and contract gates.

activeFeb 19, 2026, 8:40 PM

Backend: Django Ninja for New Endpoints

New backend API routes must use Django Ninja, not DRF.

activeFeb 19, 2026, 8:37 PM

Mem-Client: Exported UPPER_SNAKE Constants In constants.ts

Exported UPPER_SNAKE_CASE constants must be declared in `constants.ts`.

activeFeb 19, 2026, 8:37 PM

Mem-Client: Exported Literal Collections Use as const

Exported literal collections in constants files must use `as const`.

activeFeb 19, 2026, 8:37 PM

Python Service: Toolchain Consistency (uv/ruff/ty)

New Python services should use the default repo toolchain unless exception is explicitly documented.

activeFeb 19, 2026, 8:37 PM

Python Service: Auth Middleware Contract Tests

Auth middleware boundary behavior must have contract tests.

activeFeb 19, 2026, 8:37 PM

Mem-Client: No Deprecated Design-System Imports

New mem-client code should not introduce deprecated `@/design-system` imports.

activeFeb 19, 2026, 8:26 PM

Mem-Client: No Arbitrary Playwright Waits

Playwright tests must avoid fixed-time synchronization waits.

activeFeb 19, 2026, 8:26 PM

Mem-Client: Test Selector Convention

Mem-client component markup must use `data-test-id` selector convention.

activeFeb 19, 2026, 8:26 PM

Mem-Client: TestWithStore Pattern

Store-dependent component tests should use `TestWithStore`.

activeFeb 19, 2026, 8:26 PM

Mem-Client: No Console Logging in Runtime

Runtime mem-client code should not introduce new `console.*` logging.

activeFeb 19, 2026, 8:26 PM

Mem-Client: MDS Components Use export const

MDS component exports should use `export const` component declarations.

activeFeb 19, 2026, 8:26 PM

Mem-Client: No Emotion Object Style Syntax

MDS style files must use Emotion tagged-template syntax.

activeFeb 19, 2026, 8:26 PM

Mem-Client: MDS Filenames Must Be kebab-case

New MDS filenames must be lowercase kebab-case.

activeFeb 19, 2026, 8:26 PM

Mem-Client: MDS File Suffix Convention

MDS support files must use canonical suffixes.

activeFeb 19, 2026, 8:26 PM

Mem-Client: New MDS Folder Requires index + stories

New MDS component folders must include index and stories files.

activeFeb 19, 2026, 8:26 PM

Mem-Client: as const Arrays Need Companion Union Type

Exported `as const` arrays require companion union type exports.

activeFeb 19, 2026, 8:26 PM

Mem-Client: New MDS Folder Requires style + types

New MDS component folders must include style and types scaffolding.

activeFeb 19, 2026, 8:26 PM

Backend: External V2 Request Tracking

External V2 handlers must preserve request-manager tracking contract.

activeFeb 19, 2026, 8:25 PM

Backend: List/Search Bounds and Ordering

Collection endpoints must enforce bounds and deterministic ordering.

activeFeb 19, 2026, 8:25 PM

Backend: Explicit Exception Handling

Backend broad exception handling must be explicit, never silent.

activeFeb 19, 2026, 8:25 PM

Backend: Pydantic Agent Observability

Pydantic AI agent creation/execution must include observability signals.

activeFeb 19, 2026, 8:25 PM

Backend: SpaceAccount Settings Change Matrix

SpaceAccount settings changes must stay cross-layer consistent.

activeFeb 19, 2026, 8:25 PM

Backend: StrEnum Unknown Fallback Pattern

String enum parsing from external/stored values must be resilient.

activeFeb 19, 2026, 8:25 PM

Python Service: Workflow Path Cohesion

Service workflows must keep trigger paths and execution paths coherent.

activeFeb 19, 2026, 8:25 PM

Python Service: Schema Drift Gate + Repair Path

Schema-dependent services must gate drift and provide deterministic repair.

activeFeb 19, 2026, 8:25 PM

Python Service: OpenAPI Source-of-Truth Discipline

Schema-derived client generation must have a clear source of truth.

activeFeb 19, 2026, 8:25 PM

Python Service: Automation PR Idempotence + Safety

Automation workflows that create/update PRs must be idempotent and safe.

activeFeb 19, 2026, 8:25 PM

Python Service: Container Reproducibility

Python production Dockerfiles must preserve reproducibility and runtime safety.

activeFeb 19, 2026, 8:25 PM

Python Service: OAuth Metadata Contract Tests

OAuth/OIDC metadata endpoints require contract tests.

activeFeb 19, 2026, 8:25 PM

Python Service: API Adapter Error-Mapping Coverage

API adapter error-mapping must be explicit and test-backed.

activeFeb 19, 2026, 8:25 PM

Python Service: External Network Tests Are Opt-In

External network tests are opt-in, bounded, and non-blocking by default.

activeFeb 19, 2026, 8:25 PM

External Notes+Collections Live Coverage Gate

External notes/collections route gate.

activeFeb 19, 2026, 8:12 PM

Mem-Client: No Deep MDS Imports Outside MDS

No deep MDS imports outside MDS rule.

activeFeb 19, 2026, 6:20 PM

Mem-Client: Styled Exports Start With Styled

Styled wrapper naming rule.

activeFeb 19, 2026, 6:20 PM

Mem-Client: MDS Component Names Start With MDS

MDS component naming prefix rule.

activeFeb 19, 2026, 6:20 PM

Mem-Client: MDS Storybook Completeness

MDS component Storybook coupling rule.

activeFeb 18, 2026, 8:58 PM

Mem-Client: Async Store Cleanup

Mem-client async side-effect cleanup rule.

activeFeb 18, 2026, 8:57 PM

Mem-Client: Analytics Payload Contract

Mem-client analytics event contract rule.

activeFeb 18, 2026, 8:56 PM

Backend: Model Changes Require Migrations

Backend model migration sync rule.

activeFeb 18, 2026, 8:56 PM

Mem-Client: Behavioral Refactor Rollout Notes

Large behavioral mem-client refactors need rollout/migration notes.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: Dependency Update Smoke Validation

Mem-client dependency/security updates require smoke validation evidence.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: Keyboard and Focus Preservation

Interactive mem-client UI changes should preserve keyboard/focus usability.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: High-Frequency Interaction Safety

High-frequency mem-client interaction handlers should be performance-safe.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: State Mutation Boundaries

Keep mem-client state mutations within clear store/action boundaries.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: Hydration Compatibility

Mem-client hydration/default changes must be backward-compatible with existing cache.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: Actionable Error States

Mem-client error-state UX must remain actionable.

inactiveFeb 18, 2026, 8:49 PM

Mem-Client: Validation Evidence

Mem-client behavior changes need validation evidence.

inactiveFeb 18, 2026, 8:49 PM

Backend: Validation Evidence

Backend behavior changes need validation evidence.

inactiveFeb 18, 2026, 8:49 PM

Backend: Feature Flag Hygiene

Feature flags in backend should be intentional and maintainable.

inactiveFeb 18, 2026, 8:49 PM

Backend: Runtime-Safe Migrations

Schema/data migrations must be runtime-safe.

inactiveFeb 18, 2026, 8:49 PM

Backend: Async Idempotency

Async backend state mutations must be idempotent under retries.

inactiveFeb 18, 2026, 8:49 PM