Skip to content

docs: Phase 13 portfolio documentation - #1

Closed
sarangs1621 wants to merge 2 commits into
mainfrom
docs/phase-13-portfolio-readiness
Closed

docs: Phase 13 portfolio documentation#1
sarangs1621 wants to merge 2 commits into
mainfrom
docs/phase-13-portfolio-readiness

Conversation

@sarangs1621

@sarangs1621 sarangs1621 commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rewrite README.md as a portfolio-ready overview: project summary, features, architecture overview, tech stack, local setup, API docs, and a portfolio-assets section, with links into docs/
  • Add docs/ARCHITECTURE.md (Mermaid system/pipeline/middleware diagrams + code layout)
  • Add docs/ER_DIAGRAM.md (full Mermaid ER diagram of all 12 tables + design-decision notes)
  • Add docs/API.md (full endpoint reference grouped by resource)
  • Add docs/DEPLOYMENT.md (env vars, Docker setup, migrations, worker startup, health checks, troubleshooting)
  • Add docs/INTERVIEW_NOTES.md (why-X design-decision write-ups for Postgres, Redis, Celery, multi-tenancy, RBAC, incident thresholds, caching, audit logs)
  • Add docs/RESUME_BULLETS.md (resume-ready bullet points)
  • Add docs/screenshots/README.md (checklist for the 4 portfolio screenshots that need local capture)

Test plan

  • CI passes (lint/typecheck/test/docker/security) - docs-only change, no app code touched
  • Mermaid diagrams render correctly on GitHub (docs/ARCHITECTURE.md, docs/ER_DIAGRAM.md)
  • README renders correctly, links to docs/ resolve

Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Restructured README with condensed overview and documentation links for easier navigation
    • Added comprehensive API reference guide with endpoint documentation
    • Added deployment guide with setup, configuration, and troubleshooting
    • Added system architecture and database schema documentation
    • Improved documentation structure and organization across guides

Rewrite README as a portfolio-ready overview (features, architecture,
tech stack, local setup, API docs) and add docs/ with the system
architecture, database ER diagram, full API reference, deployment guide,
interview-prep design-decision notes, resume bullets, and a screenshot
checklist for portfolio assets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@sarangs1621, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 12 minutes and 9 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 53b279a9-2d23-4f77-b48a-642bab717089

📥 Commits

Reviewing files that changed from the base of the PR and between 5f71556 and 277f13f.

📒 Files selected for processing (6)
  • README.md
  • docs/API.md
  • docs/ARCHITECTURE.md
  • docs/DEPLOYMENT.md
  • docs/ER_DIAGRAM.md
  • docs/screenshots/README.md
📝 Walkthrough

Walkthrough

This PR adds comprehensive documentation for the Sentinel observability platform, restructuring the README into a navigation hub and adding detailed guides for architecture, deployment, API reference, design rationale, and portfolio assets.

Changes

Documentation Suite for Sentinel Observability Platform

Layer / File(s) Summary
README Overview and Navigation
README.md
README restructured from long-form narrative into concise overview with Documentation index table, Features checklist, Tech Stack summary, streamlined Local Setup for Docker and non-Docker workflows with environment variables table, and Portfolio Assets section.
System Architecture and Database Design
docs/ARCHITECTURE.md, docs/ER_DIAGRAM.md
Architecture documentation covers FastAPI entry point, PostgreSQL/Redis roles, Celery Beat/Worker pipeline, monitoring-to-incident-to-notification flow, request middleware stack, exception handling, and code layering. ER diagram documents all core tables (USERS, WORKSPACES, MONITORS, CHECKS, INCIDENTS, ALERT_RULES, NOTIFICATIONS, AUDIT_LOGS, API_KEYS, REFRESH_TOKENS, METRIC_SNAPSHOTS) with relationships and design decision notes on UUID keys, workspace scoping, soft deletes, and indexing.
Deployment and Operations Guide
docs/DEPLOYMENT.md
Complete deployment guide covering environment variable configuration and constraints, Docker Compose service layout, Dockerfile two-stage build, Alembic migration workflow with apply-on-startup behavior, Celery worker/beat startup and periodic task schedules, health check endpoints and container readiness probes, and troubleshooting matrix mapping symptoms to causes and fixes.
API Reference
docs/API.md
Comprehensive endpoint documentation defining base path, Swagger/OpenAPI locations, authentication legend (anonymous/JWT/API key/RBAC), and grouped endpoint descriptions for auth, users, workspaces, monitors, checks, incidents, alert rules, notifications, metrics, audit logs, API keys, and health with specific auth requirements and behavioral notes.
Design Rationale and Portfolio Assets
docs/INTERVIEW_NOTES.md, docs/RESUME_BULLETS.md, docs/screenshots/README.md
Interview notes explaining architectural decisions across persistence, caching, multi-tenancy, RBAC, incident lifecycle, and auditing. Resume bullets quantify accomplishments in monitoring, incident management, multi-tenant architecture, background jobs, caching, security, and CI/CD. Screenshot guide documents required portfolio assets with capture instructions and Mermaid diagram export procedures.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 In docs we hoard, a treasure found,
Architecture diagrams abound!
From schemas drawn to deployment guides,
The system's soul is now applied,
With screenshots and bullets so bright,
Sentinel's story shines in light! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: comprehensive documentation additions for portfolio readiness across 7 new docs files and a README rewrite.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/phase-13-portfolio-readiness

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/API.md`:
- Around line 3-4: The docs hardcode the OpenAPI JSON path as
/api/v1/openapi.json which will diverge from the runtime value; update the
documentation to reference the injected API prefix (e.g.,
`{API_V1_PREFIX}/openapi.json`) instead of the literal path so it matches how
app/main.py constructs openapi_url from settings.API_V1_PREFIX; search for
API.md and replace the hardcoded `/api/v1/openapi.json` with a template or
variable reference tied to API_V1_PREFIX to keep docs in sync with the
openapi_url in app/main.py.

In `@docs/ARCHITECTURE.md`:
- Around line 153-166: The fenced directory-tree block in ARCHITECTURE.md is
missing a language tag; update the opening triple-backtick for the block that
shows the app/ directory layout to include a language tag (use "text") so the
fence becomes ```text, leaving the content unchanged; this targets the code
block that contains the app/ ├── api/v1/endpoints/ ... workers/ listing.

In `@docs/DEPLOYMENT.md`:
- Around line 121-124: Update the doc sentence about CELERY_TASK_ALWAYS_EAGER to
clarify its limits: state that setting CELERY_TASK_ALWAYS_EAGER=true runs tasks
synchronously in-process (so .delay()/ .apply_async() invoke the task function
directly) but does NOT exercise broker/worker behavior such as message
serialization, broker scheduling, network delivery, or broker-mediated
retries/acks; recommend using an actual broker/worker setup or integration tests
to validate those behaviors. Reference the CELERY_TASK_ALWAYS_EAGER setting and
the .delay()/ .apply_async() calls when making the clarification.

In `@docs/ER_DIAGRAM.md`:
- Around line 180-186: The documentation text uses invalid SQL semantics by
writing "audit_logs.user_id = NULL"; update the sentence describing null-actor
behavior so it uses the correct SQL predicate "IS NULL" (e.g. change
"audit_logs.user_id = NULL" to "audit_logs.user_id IS NULL") and verify
surrounding examples referencing monitors.created_by_user_id and
api_keys.created_by_user_id still describe ON DELETE SET NULL behavior
consistently.

In `@docs/screenshots/README.md`:
- Around line 26-29: The export commands in the README use the wrong relative
path for the source files; update the Mermaid CLI and Live Editor examples to
point one directory up (e.g., change `mmdc -i ARCHITECTURE.md -o
architecture.png` to `mmdc -i ../ARCHITECTURE.md -o architecture.png`) and apply
the same relative-path fix to the ER diagram example (use `../` before the ER
diagram source filename) so both examples work when run from docs/screenshots/.

In `@README.md`:
- Around line 64-81: The fenced ASCII architecture diagram in the README is
missing a language tag which triggers markdownlint; update the opening fence for
that ASCII block (the multi-line diagram between triple backticks) by adding the
text language tag so it starts with ```text, leaving the rest of the diagram
unchanged to keep linting happy.
- Around line 137-145: Update the "Run Instructions (without Docker)" section to
include the POSIX virtualenv activation command for macOS/Linux in addition to
the Windows one: add a line with either "source .venv/bin/activate" or ".
.venv/bin/activate" alongside the existing ". .venv/Scripts/activate" entry so
non-Windows users can follow the setup; keep the rest of the steps (pip install
-r requirements-dev.txt, alembic upgrade head, uvicorn app.main:app --reload)
unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7ae9c8a1-6f79-493d-9c43-8c18e25d2eb6

📥 Commits

Reviewing files that changed from the base of the PR and between 102262d and 5f71556.

📒 Files selected for processing (8)
  • README.md
  • docs/API.md
  • docs/ARCHITECTURE.md
  • docs/DEPLOYMENT.md
  • docs/ER_DIAGRAM.md
  • docs/INTERVIEW_NOTES.md
  • docs/RESUME_BULLETS.md
  • docs/screenshots/README.md

Comment thread docs/API.md Outdated
Comment thread docs/ARCHITECTURE.md Outdated
Comment thread docs/DEPLOYMENT.md Outdated
Comment thread docs/ER_DIAGRAM.md
Comment thread docs/screenshots/README.md
Comment thread README.md Outdated
Comment thread README.md
- Reference API_V1_PREFIX instead of a hardcoded OpenAPI path.
- Add 'text' language tags to ASCII/directory-tree fenced blocks.
- Clarify that CELERY_TASK_ALWAYS_EAGER doesn't exercise broker/worker
  behavior (serialization, scheduling, retries/acks).
- Fix invalid 'audit_logs.user_id = NULL' SQL to 'IS NULL'.
- Fix Mermaid CLI export paths in docs/screenshots/README.md.
- Add a macOS/Linux venv activation line alongside the Windows one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sarangs1621
sarangs1621 deleted the docs/phase-13-portfolio-readiness branch June 27, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant