diagnose(proof): classify Realtime join limit - #514
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe change adds Realtime join-limit diagnostics to live evidence recording. Cloud Playwright now validates their schema, topic classification, route binding, redaction, and attachment rules. Tests cover classified and invalid topic scenarios. ChangesRealtime join-limit diagnostics
Estimated code review effort: 3 (Moderate) | ~25 minutes Mergeability Score: ⚪ Minimal · up to This PR adds a localized, sanitized diagnostic for an existing Realtime join-limit stop without changing limits, access controls, or deployment behavior; no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant RealtimeTopic
participant JoinHandler
participant DiagnosticRecorder
participant CloudPlaywright
participant RouteFailure
RealtimeTopic->>JoinHandler: overflow join
JoinHandler->>DiagnosticRecorder: validated topic diagnostic
JoinHandler->>RealtimeTopic: live_realtime_join_limit_exceeded
DiagnosticRecorder->>CloudPlaywright: diagnostic payload
CloudPlaywright->>CloudPlaywright: validate schema and route
CloudPlaywright->>RouteFailure: attach validated diagnostic
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Purpose
Convert the governed staging proof's generic
live_realtime_join_limit_exceededstop into a fixed, sanitized, source-owned topic-class diagnostic so the next proof can identify the exact canonical Realtime subscription without exposing raw topic or tenant data.Exact failing proof: run
31672684850, attempt 1, sourcef5d381a573d2f74ed1223e81af693ed83eb6a2b5; tenant-a / reviews / desktop-1440x900.Included scope
{adapter:'realtime', phase:'join', reason_code:'join_limit_exceeded', topic_class:<fixed source class>}when attribution is exact.Explicit exclusions
Architecture placement
Current owner / directory: existing product-proof live recorder and cloud Playwright diagnostic adapter under
scripts/.Dependencies and duplicate-system check: reuses the recorder's existing independent source-owned
realtimeTopicClassclassifier and the cloud adapter's established exact-shape/code-binding pipeline; no new subsystem or shared acceptance matcher.Security and tenancy impact
Data impact
Verification
node --check,git diff --check, npm audit (0 vulnerabilities), and independent security review (0 findings) pass locally; fresh exact-head hosted gates and CodeRabbit review mandatory.Release safety
Documentation and generated files
Completion check
origin/main.Policy exceptions (leave blank when none apply)
PR-size exception rationale: four files and one coherent diagnostic-only safety change; 476 insertions / 21 deletions, with the majority in adversarial producer/consumer tests required to prove attribution cannot widen behavior or disclose raw Realtime data.
Retained branch reason / owner / review date / maximum retention date:
Summary by CodeRabbit
New Features
Bug Fixes
Tests