Skip to content
MSO CloudDocumentation

Rulebook index — which §N lives where

On this page

Generated from the tree: each pack's own paths: frontmatter, its # heading, and the - **§N.** lines it carries. Claude Code routes on the frontmatter, not on this page — this page exists for a human, and for a tool that loads nothing automatically. The root AGENTS.md owns the contract; a pack owns its sections; an area map owns its subtree.

Offline equivalent for one section: grep -l '§83' .claude/rules/.

Routed packs (.claude/rules/)#

admin-console.md — Admin console scope rules (§N stable — never renumber)

  • Sections: §124, §127, §128, §130, §131
  • Loads on: apps/web/src/app/admin/**, apps/web/src/server/admin-org-context.ts, apps/web/src/server/admin-console-org.ts, apps/web/src/app/api/auth/switch-org/**

archive-job-acl.md — Archive job column privileges

  • Sections: §214
  • Loads on: packages/schema/src/runtime-acl.ts, apps/worker/src/processors/org-backup.ts, apps/worker/src/processors/org-restore.ts, scripts/audit/runtime-acl-effective.ts

brand-scope.md — Brand scope rules (§N stable)

  • Sections: §198
  • Loads on: apps/web/src/server/routers/**, apps/web/src/server/brand-access.ts, apps/web/src/server/brand-visibility.ts, apps/web/src/server/trpc.ts, apps/web/src/server/share/**, apps/web/src/app/api/chat/**, scripts/audit/brand-input-asserted.py

chart-tooltip-security.md — Chart tooltip HTML

  • Sections: §212
  • Loads on: packages/charts/src/builders/**

collector-ingest.md — Collector ingest rules (§N stable — never renumber)

  • Sections: §233
  • Loads on: apps/worker/src/collector/**, packages/collector-contract/**, scripts/collector/**, packages/schema/drizzle/0278_collector_ingest.sql

container-supply-chain.md — Container build boundaries

  • Sections: §162, §166, §176
  • Loads on: .dockerignore, infra/**/Dockerfile, apps/**/Dockerfile, scripts/audit/docker-context-private.py, scripts/audit/deploy-data-plane.py, scripts/start-prod.sh, scripts/infra/*cache*.sh, apps/web/src/server/static-asset-origin.ts, apps/web/next.config.ts

dashboard-narrow-width.md — Dashboard grid: narrow widths and layout stability

  • Sections: §207–209
  • Loads on: apps/web/src/app/(dashboard)/_components/grid-plan.ts, apps/web/src/app/(dashboard)/_components/dashboard-grid.tsx, apps/web/src/app/(dashboard)/_components/card-reading-floor.ts, apps/web/src/app/(dashboard)/dashboards/*/_components/dashboard-page-frame.tsx, apps/web/src/app/(dashboard)/dashboards/*/_components/dashboard-toolbar.tsx, packages/charts/src/builders/panel-period-columns.ts

dataset-dashboard-period.md — Dataset dashboard periods and history

  • Sections: §148–150, §154, §195, §196, §210
  • Loads on: apps/web/src/lib/page-filter-period.ts, apps/web/src/server/datasets/**, apps/web/src/server/chat/**/org-dataset-panel*, apps/web/src/server/dataset-packs/**, scripts/data-maintenance/refresh-dataset-pack-dashboards.ts, apps/web/src/server/routers/org-dataset-insights.ts, apps/web/src/app/(dashboard)/dashboards/**, packages/ui/src/components/date-range-picker*, packages/ui/src/components/month-picker-grid*

deck-delivery.md — Deck delivery rules — per-deck presentation is DATA (ADR 0029)

  • Sections: none — unnumbered area rules in the Rule. Guard. format
  • Loads on: apps/web/src/server/deck-*.ts, apps/web/src/server/content-deck-*.ts, apps/web/src/server/routers/content-insights.ts, apps/web/src/app/(dashboard)/dashboards/**, scripts/onboarding/*deck*, scripts/onboarding/seed-insight-markdown.ts, scripts/data-maintenance/ai-card-prefill*.ts

dependency-patches.md — Dependency patch verification

  • Sections: §163
  • Loads on: pnpm-workspace.yaml, patches/**, scripts/security-braces.test.mjs

dev-host.md — Dev-host containment (§N stable — never renumber)

  • Sections: §181, §193
  • Loads on: scripts/dev/**, .claude/settings.json

diagnostic-data-boundaries.md — Diagnostic data boundaries

  • Sections: §219
  • Loads on: apps/web/src/app/api/csp-report/**, apps/web/src/auth/magic-link.ts, apps/web/src/server/middleware/rate-limit.ts, apps/web/src/__tests__/csp-report-route.test.ts, apps/web/src/__tests__/outbound-email-suppression.test.ts

docs-authoring.md — Docs authoring

  • Sections: §140, §186, §187, §192, §202
  • Loads on: docs/**, scripts/docs-to-html.ts

e2e-browser.md — E2E and browser runs

  • Sections: §142, §143
  • Loads on: apps/web/e2e/**, apps/web/playwright.config.ts

ecom-data.md — eCom data-plane rules (§N stable — cited across 240+ files; never renumber)

  • Sections: §1, §2, §15–17, §19, §20, §25–28, §33, §34, §40–46, §68, §80, §82, §83
  • Invariants: inv 2, inv 3, inv 9, inv 10
  • Loads on: packages/metrics/**, packages/schema/**, packages/connectors/**, apps/worker/**, apps/web/src/server/**, scripts/**

ecom-recon.md — Creator-content merge & reconciliation rules (§N stable — never renumber)

  • Sections: §48–56, §59, §129, §145, §156, §203, §206
  • Loads on: packages/metrics/**, packages/connectors/**, apps/worker/**, apps/web/src/server/**, scripts/audit/**, scripts/onboarding/**

egress-consumption.md — Egress and resource boundaries

  • Sections: §158–161, §197, §204, §211
  • Loads on: packages/ai/**, packages/notify-channels/**, packages/storage/**, apps/mcp-server/**, apps/web/src/server/chat/payload.ts, apps/web/src/server/routers/ai-configs.ts, apps/web/src/app/api/mcp/**, apps/web/src/__tests__/chat-payload.test.ts, apps/web/src/__tests__/mcp-startup-logging.test.ts

eventbus-broadcast-cursors.md — Eventbus broadcast cursors

  • Sections: §216, §221
  • Loads on: packages/eventbus/src/subscribe.ts, packages/eventbus/src/subscribe.resp3.test.ts, .github/workflows/ci.yml

foreign-git-context.md — Foreign repository Git context

  • Sections: §217
  • Loads on: scripts/dev/mso-run.test.ts, scripts/security-source-files.mjs, scripts/security-source-files.test.mjs, scripts/dev/agent-guard.py, scripts/audit/straight-quotes-in-copy.py, apps/web/src/__tests__/security-scan-csp-rule.test.ts, .husky/pre-push

gate-proof.md — Gate-proof rules (§N stable — never renumber)

  • Sections: §118–120, §141, §144
  • Loads on: scripts/audit/**, .husky/**, .github/workflows/**, packages/schema/sql/**

identity-transfer.md — Identity transfer rules (§N stable)

  • Sections: §139
  • Loads on: scripts/ops/org-transfer/**, apps/web/src/server/brand-access.ts

limits-budgets.md — Limits and budgets

  • Sections: §200
  • Loads on: docs/architecture/reference/limits-and-budgets.md, apps/web/scripts/check-route-bundle-budget.mjs, apps/web/src/server/request-body-limits.ts, apps/web/src/auth/edge-config.ts, scripts/audit/limits-registry.py

markdown-delimiter-security.md — Markdown delimiter parsing

  • Sections: §213
  • Loads on: apps/web/src/components/markdown-view.tsx, apps/web/src/lib/action-layout.ts, apps/web/src/lib/markdown-table-divider.ts

marketing-fractional-results.md — Fractional advertising results

  • Sections: §215
  • Loads on: packages/metrics/src/marketing-ads*.ts, packages/metrics/src/marketing-audit*.ts, packages/schema/src/tables/marketing-spend.ts, scripts/audit/data-reconciliation.ts

masking-identity.md — Masking viewer identity

  • Sections: §167
  • Loads on: apps/web/src/server/mask-posture.ts, apps/web/src/server/routers/**, apps/web/src/server/pillar-resolvers/**, apps/web/src/server/share/**, apps/web/src/server/dashboard-templates/prune-empty.ts, scripts/audit/mask-posture-single-source.py, packages/mask/**

mso-decision.md — MSO decision engine & AI rules (§N stable — never renumber)

  • Sections: §60, §61, §64, §65, §117, §155, §171, §230, §232
  • Loads on: packages/metrics/src/offtake*, packages/metrics/src/playbook*, packages/metrics/src/*playbook*, packages/metrics/src/signal*, packages/metrics/src/governance*, packages/metrics/src/policy*, apps/web/src/server/routers/offtake.ts, apps/web/src/server/routers/mso-playbooks.ts, apps/web/src/server/routers/market-intel*, apps/web/src/server/ai-config*, apps/web/src/server/routers/ai-*, apps/web/src/server/chat/**, packages/ai/**, packages/agent/**

notification-delivery.md — Notification delivery (§N stable — never renumber)

  • Sections: §136, §183
  • Loads on: packages/alerts/**, packages/notify/**, packages/notify-channels/**, packages/notify-zalo/**, apps/worker/src/processors/notify-delivery.ts, apps/web/src/server/notification-*.ts, apps/web/src/app/admin/notifications/**, apps/web/src/app/(dashboard)/settings/notifications/**

perf-boundaries.md — Request & bundle boundary rules (§N stable — never renumber)

  • Sections: §72–74, §125, §135, §138, §151–153, §157
  • Loads on: apps/web/src/**, packages/charts/**

platform-family.md — Platform family rules (§N stable)

  • Sections: §178–180, §205, §218
  • Loads on: apps/idp/**, scripts/audit/no-wildcard-redirect-uri.py, scripts/audit/platform-scope-per-plane.py, scripts/audit/shared-dataset-single-reader.py, packages/metrics/src/shared-trends-read.ts, packages/schema/src/tables/shared-trend-feed.ts, scripts/audit/event-envelope-single-schema.py, packages/eventbus/src/bus.ts, apps/web/src/app/api/ingest/webhook/**, packages/platform-contract/**, apps/web/src/app/api/platform/**, packages/plugin-host/src/manifest.ts

public-site.md — Public site layout rules (§N stable — never renumber)

  • Sections: §182
  • Loads on: apps/web/src/app/page.tsx, apps/web/src/app/mso/**, apps/web/src/components/public/**

report-range-boundary.md — Report date input boundary

  • Sections: §220
  • Loads on: apps/web/src/server/routers/reports.ts, apps/web/src/server/routers/report-range-input.ts, apps/web/src/server/routers/report-range-input.test.ts

restore-verification.md — Restore drill integrity

  • Sections: §164
  • Loads on: scripts/ops/verify-restore*

runtime-scope.md — Runtime scope & privilege rules (§N stable — never renumber)

  • Sections: §121–123, §126, §133, §137, §173
  • Loads on: apps/web/src/server/**, apps/worker/src/**, packages/schema/src/runtime-acl.ts, scripts/onboarding/**

security-tenancy.md — Security & tenancy rules (§N stable)

  • Sections: §3, §4, §7, §9, §10, §57, §58, §63, §66, §75, §79, §81, §84, §115, §116
  • Invariants: inv 1, inv 4, inv 7, inv 8
  • Loads on: apps/web/src/server/**, apps/web/src/app/api/**, apps/web/src/auth/**, apps/web/src/proxy.ts, packages/schema/**, apps/worker/**

session-identity.md — Session identity rules (§N stable)

  • Sections: §189, §191, §199, §227, §228
  • Loads on: apps/web/src/auth/**, apps/web/src/proxy.ts, apps/web/src/lib/identity-anchor.ts, apps/web/src/lib/platform-session-hint.ts, apps/web/src/lib/sso-handoff.ts, apps/web/src/app/api/auth/**, apps/web/src/app/auth/**, apps/web/src/server/disable-user.ts, apps/web/src/server/access.ts, apps/web/src/server/org-actor.ts, apps/web/src/server/platform/**, apps/web/src/server/idp-logout-contract.ts, apps/idp/src/**

source-audit-inventory.md — Writing audit source inventory

  • Sections: §165
  • Loads on: scripts/audit/straight-quotes-in-copy.py

tenant-capability-surfaces.md — Tenant capability surfaces (§N stable — never renumber)

  • Sections: §132, §134, §185, §188
  • Loads on: apps/web/src/app/admin/_components/admin-nav.ts, apps/web/src/app/admin/_components/admin-shell.tsx, apps/web/src/server/admin-org-context.ts, apps/web/src/server/org-prompt-framing.ts, apps/web/src/server/routers/admin.ts, apps/web/src/server/custom-nav-items.ts, apps/web/src/server/landing*.ts, apps/web/src/lib/landing-path.ts, apps/web/src/server/dashboard-templates/**, packages/plugin-host/src/**, apps/web/src/app/(dashboard)/settings/**

test-cache.md — Test cache and affected selection

  • Sections: §177, §184, §201
  • Loads on: scripts/audit/**, turbo.json, **/turbo.json, **/vitest.config.ts, vitest.scripts.config.mts, scripts/dev/mso-affected*, scripts/test/**, apps/web/vitest.pure-files.json

test-quality.md — Test and comment quality rules (§N stable — never renumber)

  • Sections: §225, §229, §231
  • Loads on: **/*.test.ts, **/*.test.tsx, scripts/audit/slop_audit.py, scripts/audit/slop-audit-added.py, scripts/audit/unused-exports.py

ui-charts-copy.md — UI charts / formatters / copy rules (§N stable — never renumber)

  • Sections: §11–14, §22, §24, §29, §30, §32, §35–37, §39, §108
  • Invariants: inv 5
  • Loads on: apps/web/src/app/**, apps/web/src/components/**, packages/ui/**, packages/charts/**, packages/i18n/**, packages/exports/**

ui-copy-i18n.md — UI copy / i18n / locale rules (§N stable — never renumber)

  • Sections: §8, §38, §62, §70, §85, §87–91, §107
  • Loads on: apps/web/src/app/**, apps/web/src/components/**, packages/ui/**, packages/charts/**, packages/i18n/**, packages/exports/**

ui-forms.md — Form grammar rules (§N stable — never renumber)

  • Sections: §86, §92, §99–105
  • Loads on: apps/web/src/app/**, apps/web/src/components/**, packages/ui/**, packages/i18n/**

ui-hover-hints.md — Hover hint rules (§N stable — never renumber)

  • Sections: §226
  • Loads on: packages/ui/src/components/tooltip.tsx, packages/ui/src/components/info-hint.tsx, packages/ui/src/components/info-hint.test.tsx

ui-kit-controls.md — Kit control sizing rules (§N stable — never renumber)

  • Sections: §174, §175
  • Loads on: packages/ui/src/components/**, scripts/audit/tap-target-floor.py, scripts/audit/kpi-grid-phone-pair.py

ui-shell-design.md — UI shell / design-system rules (§N stable — never renumber)

  • Sections: §5, §6, §18, §21, §23, §31, §47, §71, §76–78, §93–98, §106, §112, §190
  • Invariants: inv 6
  • Loads on: apps/web/src/app/**, apps/web/src/components/**, packages/ui/**, packages/charts/**, packages/i18n/**, packages/exports/**

ui-tables.md — Table grammar rules (§N stable — never renumber)

  • Sections: §113
  • Loads on: apps/web/src/app/**, apps/web/src/components/**, packages/ui/**

ui-theme-tokens.md — UI theme, design-token and chart-geometry rules (§N stable — never renumber)

  • Sections: §67, §69, §109–111, §114, §146, §147, §168, §169, §172
  • Loads on: packages/ui/**, packages/charts/**, apps/web/src/app/**, apps/web/src/components/**, apps/web/src/server/themes/**

ui-view-state.md — Shared filters / session view state

  • Sections: §170, §194, §222
  • Loads on: apps/web/src/lib/view-state*, apps/web/src/__tests__/view-state-hydration.test.tsx, apps/web/src/server/view-state.ts, apps/web/src/proxy.ts, packages/ui/src/sticky-filters.ts, apps/web/src/app/(dashboard)/_components/filter-bar.tsx, apps/web/src/app/(dashboard)/_components/sidebar.tsx, apps/web/src/app/(dashboard)/_components/dashboard-shell.tsx, apps/web/src/app/(dashboard)/**/*period*, apps/web/src/app/(dashboard)/**/*filter*, apps/web/src/lib/page-filter-*, packages/ui/src/components/date-range-picker.tsx, packages/ui/src/components/date-picker-placement.ts

ui-web-platform.md — Web platform baseline rules (§N stable — never renumber)

  • Sections: §223, §224
  • Loads on: packages/ui/src/styles.css, packages/ui/src/ime.ts, apps/web/src/lib/theme.ts, scripts/audit/web-platform-tells.py

Coverage#

  • 233 sections across 49 packs: §1–233
  • Numbers not in use: —

Area maps (load per subtree)#

  • apps/web/CLAUDE.md
  • apps/web/src/app/(dashboard)/_components/CLAUDE.md
  • apps/web/src/app/(dashboard)/content-intelligence/CLAUDE.md
  • apps/web/src/app/(dashboard)/content-intelligence/layout-studio/CLAUDE.md
  • apps/web/src/app/(dashboard)/content-intelligence/taxonomy/CLAUDE.md
  • apps/web/src/app/(dashboard)/dashboards/[slug]/CLAUDE.md
  • apps/web/src/app/(dashboard)/dashboards/[slug]/_components/deck-editor/CLAUDE.md
  • apps/web/src/app/share/[slug]/CLAUDE.md
  • apps/worker/CLAUDE.md
  • packages/connectors/CLAUDE.md
  • packages/metrics/CLAUDE.md
  • packages/schema/CLAUDE.md