# Premium-only paths — used by sync script and CI guard.
# Update this file when adding new premium-only directories or files.
#
# Section 1: MUST NOT EXIST on main (CI guard fails if found)
# Section 2: After "---", files that exist on BOTH branches but
#            must NOT be synced (different content on each branch).
#            Sync script skips these. CI guard ignores them.

# Premium-only directories
src/pro/
backend/
infra/
.cursor/
mintlify-docs/
# admin-app/ is the internal operator dashboard. Source references
# admin API endpoints, IP allowlist contracts, and revenue/MRR
# computation logic that is fundamentally pro-side. Not useful to
# OSS users (they have no managed backend to admin), and exposing
# the routes here would publish the admin surface map.
admin-app/

# Premium-only directories (additional, listed here so they line up
# with the docs/ block visually). scripts/load-test/ is operational
# tooling that signs JWTs against the staging secret, drives chaos
# tests via aws-cli ECS commands, and references staging URLs +
# RDS instance class details. Useful internally; not useful to OSS
# users (who don't have access to staging anyway) and reveals
# infrastructure layout.
scripts/load-test/

# Premium-only files
docs/API_REFERENCE.md
docs/AUDIO_PIPELINE.md
docs/AUTH_FLOW.md
docs/BILLING.md
docs/CI_CD.md
docs/ENV_VARS.md
docs/FREE_VS_PRO.md
docs/LAUNCH_CHECKLIST.md
docs/LAUNCH_V2_1_PLAN.md
docs/MODES.md
docs/OVERLAY_STEALTH.md
# Phase 2 architecture + verification plans: reference staging URLs,
# EC2 instance ids, AWS resource names, secret key names. The
# customer-facing description of WebSocket sync is in the marketing
# site / public docs - these docs are the engineering plan.
docs/PHASE2_REALTIME_SYNC_PLAN.md
docs/PHASE2_VERIFICATION_PLAN.md
docs/RAG.md
docs/RELEASE_RUNBOOK.md
docs/REPO_STRUCTURE.md
docs/SECRETS_RUNBOOK.md
docs/SESSION_MANAGEMENT.md
docs/TESTING_GUIDE.md
docs/UNUSED_API_AUDIT.md
docs/USAGE_GATING.md
docs/V2_2_STABILITY_PLAN.md
# V2_3_LAUNCH_LOG records production deployment artifacts:
# ECS task definition revisions, Secrets Manager keys, CDN URLs,
# rollback procedures, incident-response knobs. Highly operational.
docs/V2_3_LAUNCH_LOG.md
# WINDOWS_CODE_SIGNING documents the SSL.com EV cert configuration,
# eSigner CKA setup, credential IDs, and the signing flow. The
# customer-facing aspect (SmartScreen behavior) is documented in
# the public docs/_evidence/W12_smartscreen.md - this file is the
# operational signing playbook.
docs/WINDOWS_CODE_SIGNING.md
# W01 is a vendor support ticket pasted verbatim. Contains the
# operator's personal email + SSL.com account / eSigner / credential
# IDs. The rest of docs/_evidence/* is fine for OSS (technical
# verification notes for Windows-specific features); only W01 is
# gated. Audit on 2026-05-19 caught this had been on OSS HEAD since
# the file's creation; remediation: rotate the SSL.com credential
# referenced inside.
docs/_evidence/W01_sslcom_support_ticket.md
# Drafts of operator-side outbound messages and notes.  These quote
# sensitive identifiers verbatim because the recipient needs them
# (e.g. account IDs, credential IDs) and so MUST stay private.
docs/_drafts/
docs/ADMIN_RUNBOOK.md
.github/SECRETS.md
.github/workflows/deploy-backend.yml
.github/workflows/deploy-admin.yml
.github/workflows/release-electron.yml
.github/workflows/sync-docs.yml
# build-aec-deps.yml uploads the prebuilt AEC/GStreamer bottle to the
# production releases bucket using prod AWS credentials. It names the
# bucket (s3://raven-production-releases/...) and pins AWS_REGION, which
# reveals release-infrastructure layout — same reason the deploy-*.yml
# workflows above are gated. The build recipe itself is not useful to OSS
# users (they have no upload target). Gated 2026-06-17.
.github/workflows/build-aec-deps.yml
# OSS Mac notarize uses the same hardened-runtime entitlements as Pro
# (electron-builder.json5 mac.entitlements). Do not list
# build/entitlements.mac.plist here — that made every main push fail
# after PR #15 while PRs stayed green (this job only ran on main).
build/.raven-pro

---

# Files that exist on BOTH branches but with different content.
# Sync script skips these. CI guard does NOT check these.
.gitignore
electron-builder.json5
package.json
package-lock.json
vitest.config.ts
src/main/analytics.ts
src/main/sentry.ts
# builtinModes.ts is in Section 2 because production's version has
# a dynamic `import('../../pro/main/promptService')` that fetches
# server-seeded mode prompts when in Pro mode. On OSS main the pro/
# directory doesn't exist, and vi.mock works for static imports of
# non-existent paths (virtual modules) but NOT for dynamic imports -
# the runtime resolver doesn't find the file, the import throws,
# and the surrounding try/catch swallows it silently. Pinning the
# OSS-compatible older version of builtinModes.ts (which has no
# pro/promptService import) keeps the test suite green on main.
# Long-term fix would be to inject the prompt service rather than
# dynamic-import it, making the Pro path mockable on OSS too.
src/main/services/builtinModes.ts
# Section 2 pinning rule: when a source file is in Section 2, its
# paired test MUST also be in Section 2 (and vice versa). Splitting
# the pair creates broken tests on OSS - either the test mocks don't
# match the new source's API (when only the test is pinned), or the
# new source's dynamic imports of pro-only paths fail at runtime
# (when only the source is pinned).
#
# Tests below are paired with the source files above:
src/main/__tests__/analytics.test.ts
src/main/__tests__/sentry.test.ts
src/main/__tests__/builtinModes.test.ts
