{ "files": [ { "path": "AGENTS.md", "description": "Repository contributor instructions and routing to scoped architecture rules." }, { "path": "docs/api/agents.md", "description": "Agent API documentation retained from the existing Greptile agent-file context. This is API reference material, not contributor instructions." }, { "path": "rules/pull-request-review.mdc", "description": "Existing Paperclip review guidance for PR descriptions, UI evidence, and growth of large source files." }, { "path": "rules/product-harness-responsibility.mdc", "description": "Product requirements and review criteria for harness responsibility, minimal user-facing internals, truthful progress, and human decisions." }, { "path": "rules/module-boundaries.mdc", "description": "Module ownership, justification of shared contract changes, delivery scope, and verification across affected consumers." }, { "path": "rules/feature-map-scope.mdc", "description": "Limit feature-map additions to substantial new user capabilities; avoid minor-update churn and keep factual corrections minimal.", "scope": [ "maps/**" ] }, { "path": "rules/runtime-dependency-boundaries.mdc", "description": "Dependency cost, responsiveness, and verification requirements for changed server, adapter, and runner execution paths.", "scope": [ "server/src/**", "packages/adapter-utils/src/**", "packages/adapters/*/src/**", "packages/paperclip-runner/src/**", "packages/paperclip-runner/runner/**" ] }, { "path": "rules/chat-channel-platform-boundaries.mdc", "description": "Architecture requirements and review criteria for separating chat channel platform implementations from shared orchestration.", "scope": [ "server/src/services/chat-channels/**", "server/src/services/chat-channels.ts" ] }, { "path": "rules/heartbeat-execution-boundaries.mdc", "description": "Heartbeat module ownership and review criteria for admission, cancellation, recovery, cleanup, and durable execution evidence.", "scope": [ "server/src/services/heartbeat.ts", "server/src/services/heartbeat/**", "server/src/services/heartbeat-*.ts", "server/src/__tests__/heartbeat-*.test.ts" ] }, { "path": "rules/database-migration-snapshots.mdc", "description": "Snapshot retention requirements for migration generation, rebases, and review; preserve SQL migrations and journal history.", "scope": [ "packages/db/src/schema/**", "packages/db/src/migrations/**", "packages/db/package.json", "packages/db/drizzle.config.ts" ] }, { "path": "rules/sleep-aware-background-work.mdc", "description": "Prevent new idle polling; require event-driven producers, real scheduler deadlines, obligation-based recovery, and lifecycle verification without forcing unrelated legacy migrations.", "scope": [ "server/src/**", "packages/db/src/**", "packages/adapter-utils/src/**", "packages/adapters/*/src/**", "packages/plugins/*/src/**", "packages/paperclip-runner/src/**", "packages/paperclip-runner/runner/**" ] }, { "path": "rules/acpx-profile-identity.mdc", "description": "ACPX provider identity model: provider digests attest upstream releases, the pack contract digest covers Runner source and the shared ACPX layer, and profile versions change only for deliberate resets.", "scope": [ "packages/paperclip-runner/acpx-profiles.json", "packages/paperclip-runner/cursor-contract.json", "packages/paperclip-runner/cursor-distributions.json", "packages/paperclip-runner/antigravity-distributions.json", "packages/paperclip-runner/scripts/acpx-release-attestations.mjs", "packages/paperclip-runner/scripts/generate-acpx-profiles.mjs", "packages/paperclip-runner/scripts/contracts/**", "packages/paperclip-runner/src/drivers/acpx/**", "packages/paperclip-runner/src/providers/**", "packages/paperclip-runner/protocol/**" ] }, { "path": "rules/ui-render-cost.mdc", "description": "Render cost of UI components and hooks over large collections: no nested scans, stable memo dependencies, and realistic-size tests for changed large-collection paths.", "scope": [ "ui/src/**/*.tsx", "ui/src/**/use*.ts" ] }, { "path": "rules/upgrade-safe-run-state.mdc", "description": "Upgrade safety for persisted run, session, launch, and pack state: state saved by the previous release resumes or fails with a permanent, named code, with old-saved/new-resumed and mid-run deploy tests.", "scope": [ "server/src/services/native-runtime/**", "server/src/services/recovery/**", "server/src/services/heartbeat/session-preparation.ts", "server/src/services/heartbeat/run-state.ts", "server/src/services/runner-revision-mismatch.ts", "server/src/services/sandbox-provider-runtime.ts", "packages/paperclip-runner/**", "packages/adapter-utils/src/acpx-engine/**", "docker/daytona-runner/**", "packages/db/src/schema/native_*.ts", "packages/db/src/schema/agent_task_sessions.ts", "packages/db/src/schema/run_identity_contexts.ts" ] }, { "path": "rules/data-paths.mdc", "description": "Separation of Telemetry, Observability, and the run log, with the review level each path requires.", "scope": [ "packages/shared/src/telemetry/**", "server/src/instrumentation.ts", "doc/observability.md", "packages/adapter-utils/src/duplex-observability.ts", "server/src/services/duplex-observability-recorder.ts", "packages/adapter-utils/src/acpx-engine/startup-timing.ts", "doc/run-log-events.md", "packages/db/src/schema/heartbeat_run_events.ts", "server/src/services/heartbeat.ts" ] }, { "path": "rules/api-route-expectations.mdc", "description": "Company access checks, actor permissions, activity logging for mutations, and consistent HTTP errors on API routes.", "scope": [ "server/src/routes/**" ] }, { "path": "rules/company-scope-exceptions.mdc", "description": "The known instance-wide data (announcement dismissals, publication-ID registry, personal workspace preferences, sidebar company order) and the conditions that keep company boundaries intact.", "scope": [ "packages/db/src/schema/announcement_dismissals.ts", "packages/shared/src/announcements.ts", "server/src/routes/announcements.ts", "server/src/services/announcements.ts", "server/src/services/announcement-feed.ts", "packages/db/src/schema/user_workspace_preferences.ts", "packages/shared/src/workspace-preferences.ts", "server/src/routes/workspace-preferences.ts", "server/src/services/workspace-preferences.ts", "packages/db/src/schema/user_sidebar_preferences.ts", "packages/shared/src/types/sidebar-preferences.ts", "server/src/routes/sidebar-preferences.ts", "server/src/services/sidebar-preferences.ts" ] } ] }