Skip to content

chore(github): add copilot code review instructions for obliq-api - #49

Merged
abhirajadhikary06 merged 2 commits into
OBLIQ-in:mainfrom
abhirajadhikary06:dev/fixes
Nov 17, 2026
Merged

abhirajadhikary06 merged 2 commits into
OBLIQ-in:mainfrom
abhirajadhikary06:dev/fixes

Conversation

@abhirajadhikary06

Copy link
Copy Markdown
Member

Summary

Adds .github/copilot-instructions.md to establish repository-specific standards and domain guardrails for GitHub Copilot during code reviews and code generation.

Key areas covered:

  1. Async Discipline & Event Loop Safety: Enforces async/await across all route handlers, DB queries, and Redis operations; dispatches heavy synchronous OCR/PDF operations to worker threads.
  2. Tenant Isolation: Mandates that all queries on tenant resources strictly scope by organisation_id.
  3. Authentication Architecture: Explains the deliberate design difference between high-entropy API tokens (fast keyed BLAKE2b/HMAC digests) and human user passwords (bcrypt) to prevent false-positive security warnings.
  4. Data Privacy & Ephemeral Handling: Mandates guaranteed deletion of temporary uploaded tax files upon extraction.
  5. Contract & Model Consistency: Enforces unified ErrorResponse envelope and SQLAlchemy 2.0 Mapped[uuid.UUID] conventions.
  6. Testing Boundaries: Requires mock fixtures for tests without touching live external databases or Redis.

Type of Change

  • chore: Maintenance, dependencies, or configuration

Testing & Verification

  • ruff check . passes cleanly with zero lint warnings.
  • Verified file adheres to standard GitHub Copilot custom instructions specification.

Architectural & Security Checklist

  • Organization & tenant isolation standards clearly documented.
  • No secrets or credentials committed.
  • Commit follows Conventional Commits format (chore(github): ...).

@github-actions github-actions Bot added the documentation Improvements or additions to documentation or runbooks label Nov 16, 2026
@abhirajadhikary06
abhirajadhikary06 merged commit b41c695 into OBLIQ-in:main Nov 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation or runbooks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant