Add Pandora Shadow Context Pack Lab v1 (shadow-only staging, operator review)#136
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 14 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (24)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Motivation
memory_context_packs.Description
supabase/migrations/20260703020000_pandora_shadow_context_pack_lab.sqlthat introducespandora_shadow_context_packsandpandora_shadow_context_pack_events, indexes, RLS policies, and anupdated_attrigger, and extend thepandora_operator_actionsaction_type check withprepare_shadow_context_pack.lib/services/pandora-shadow-context-pack-service.tsexposinglistShadowContextPacks,getShadowContextPack,dryRunShadowContextPackCandidate,createShadowContextPackCandidate,updateShadowContextPackStatus, andcreateShadowContextPackEvent, with deterministic, evidence-based candidate generation and strict namespace/user filtering.prepare_shadow_context_packintolib/services/pandora-operator-action-service.tssodryRunOperatorActioncomputes a candidate without inserting, andexecuteApprovedOperatorActioninserts exactly one shadow row and a matching event while recordingshadow_write_performed,no_core_memory_mutation_performed, andno_promotion_performedmetadata.app/api/pandora/shadow-context-packsfor list/detail andPOSTreview/reject/archive that only change shadow rows and create shadow events, rejecting any client-supplieduser_id.components/pandora/ShadowContextPackLabCard.tsx,ShadowContextPackList.tsx,ShadowContextPackDetail.tsx,ShadowContextPackEvidence.tsx, andShadowContextPackControls.tsx, wire them into the/pandoradashboard, and add theprepare_shadow_context_packoption to the Operator Action Composer; UI shows a clear banner: “Shadow only — no production memory mutation.”loadPandoraDashboardDatato include shadow lab data safely and surface warnings if shadow tables are unreadable.docs/pandora-shadow-context-pack-lab.mdand update operator-runner docs to explain the shadow-only boundary and keep promotion gated.tests/unit/pandora-shadow-context-pack-service.test.ts) and extend operator action tests and guards to validate dry-run vs approved execution behavior and safety boundaries.Testing
npm run typecheckand it passed.npm run lintwhich passed (reported existing warnings inlib/db/core-repositories.tsandvitest.config.ts).npm run testand all tests passed (total:623tests,623passed, including new tests:tests/unit/pandora-shadow-context-pack-service.test.ts, updated operator action tests and guards).npm run build, which completed successfully (Next.js emitted non-blocking runtime/build warnings about edge runtime imports).npm run env:policy.Codex Task