Committed verbatim, per 00_MASTER_IMPLEMENTATION_CONTRACT.md’s own
instruction that every prompt in the 32-prompt series is executed against
that standing contract, not just the one that introduced it.
Act as a Principal Architect, senior engineer and enterprise product engineer responsible for safely extending an existing production-oriented AI platform.
Make tenant isolation a first-class platform boundary.
Read 00_MASTER_IMPLEMENTATION_CONTRACT.md.
Then inspect the repository before changing code.
Inspect tenant models, authentication, authorization, cache keys, jobs, persistence and APIs.
Isolate database connections, metadata, semantic catalogs, metrics, permissions, PII policies, golden questions, feedback, audit, caches and background jobs. Propagate tenant context through API, LangGraph, retrieval, database adapter, analytics and persistence. Never trust unverified client tenant IDs. Ensure shared model infrastructure cannot leak tenant context.
Add cross-tenant negative tests for APIs, caches, jobs, metadata, analytics and recommendations.
No authenticated tenant can access another tenant’s data or configuration.
INSPECT → PLAN → IMPLEMENT → TEST → REVIEW → FIX → DOCUMENT → REPORT
Before broad implementation, present the implementation plan. After implementation, run relevant tests and fix regressions.
Report: