Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
3910567
Add CodeRabbit AI integration configuration
AlmostBald-TRADING Oct 19, 2025
b342ca5
Fix all CodeRabbit AI reported issues
AlmostBald-TRADING Oct 19, 2025
0f596ec
Remove CodeRabbit configuration from repository
AlmostBald-TRADING Oct 19, 2025
16c4e90
Remove dead score function and fix linting issues
AlmostBald-TRADING Oct 19, 2025
0bb6ac3
Fix CodeRabbit configuration schema
AlmostBald-TRADING Oct 19, 2025
f50bf37
refactor: merge redundant path entries in .coderabbit.yaml
AlmostBald-TRADING Oct 20, 2025
4b0dfa6
docs(coderabbit): add optional external tools note and IaC review paths
AlmostBald-TRADING Oct 20, 2025
ae86695
Consolidate duplicate IaC/container path instructions in .coderabbit.…
AlmostBald-TRADING Oct 20, 2025
c545e3f
feat(v1): dual-channel groundwork
AlmostBald-TRADING Oct 20, 2025
11f7dc3
chore(gitignore): ignore docs/adr and dedupe entries
AlmostBald-TRADING Oct 20, 2025
ba05b3f
docs: improve templates and README
AlmostBald-TRADING Oct 20, 2025
51f94fe
openapi(v1): enrich schemas with descriptions, constraints, and examples
AlmostBald-TRADING Oct 20, 2025
8bbbc08
build: add tenacity dependency for robust retries
AlmostBald-TRADING Oct 20, 2025
fe73429
clients: add robust retry/timeout handling and validations
AlmostBald-TRADING Oct 20, 2025
8b24a87
ephemeral: add thread-safe SessionStore with optional background cleaner
AlmostBald-TRADING Oct 20, 2025
3502ffd
core: harden vector index, embeddings providers, and summarizers
AlmostBald-TRADING Oct 20, 2025
0a63e3e
server: harden FastAPI app with validations, logging, and safer I/O
AlmostBald-TRADING Oct 20, 2025
027d426
test: use pytest monkeypatch for CF_OPENAI_API_KEY and format code
AlmostBald-TRADING Oct 20, 2025
ee06214
chore(pre-commit): add hooks, prettier, ruff/black config, CI integra…
AlmostBald-TRADING Oct 20, 2025
4310337
chore(ci+dev): test path fix, secrets baseline, CI caching, semgrep, …
AlmostBald-TRADING Oct 20, 2025
417040e
fix: improve security and reproducibility across workflows and build …
AlmostBald-TRADING Oct 20, 2025
d111d40
fix: resolve missing return statement in OpenAI embeddings provider
AlmostBald-TRADING Oct 20, 2025
54aa760
fix: resolve duplicate headings in security documentation
AlmostBald-TRADING Oct 20, 2025
0503713
feat: align CI configuration and document environment variables
AlmostBald-TRADING Oct 20, 2025
69bd607
feat: add clean target to Makefile
AlmostBald-TRADING Oct 20, 2025
76e9c81
refactor: consolidate find commands in clean target
AlmostBald-TRADING Oct 20, 2025
3607d1b
fix: resolve CI failures and code quality issues
AlmostBald-TRADING Oct 20, 2025
7b44a3b
fix: add package definition and resolve remaining CI issues
AlmostBald-TRADING Oct 20, 2025
2e9b591
fix: update test imports to use installed package name
AlmostBald-TRADING Oct 20, 2025
3d7a756
feat: add mypy to pre-commit configuration
AlmostBald-TRADING Oct 20, 2025
d37e477
fix: improve safety scan command to handle EOF errors
AlmostBald-TRADING Oct 20, 2025
e93805f
fix: improve safety scan to handle vulnerabilities properly
AlmostBald-TRADING Oct 20, 2025
55d6e2c
fix: resolve remaining CI issues and warnings
AlmostBald-TRADING Oct 20, 2025
a798331
fix: resolve security audit job failure and setuptools warning
AlmostBald-TRADING Oct 20, 2025
340e8cf
fix: remove unnecessary exclude comment from detect-secrets config
AlmostBald-TRADING Oct 20, 2025
5afce49
resolve: merge conflicts with main branch
AlmostBald-TRADING Oct 20, 2025
8ae73b0
fix: add missing CheckpointRequest model for tests
AlmostBald-TRADING Oct 20, 2025
750bd12
fix: add CF_API_KEY environment variable to CI smoke tests
AlmostBald-TRADING Oct 20, 2025
a30c134
fix: prevent duplicate CI runs on feature branches
AlmostBald-TRADING Oct 20, 2025
aca877e
fix: add missing trailing newline to docs/architecture.md
AlmostBald-TRADING Oct 20, 2025
1c63529
security: pin GitHub Actions to explicit commit SHAs
AlmostBald-TRADING Oct 20, 2025
ffa4c97
chore: set initial package version to 0.1.0
AlmostBald-TRADING Oct 21, 2025
2c8285b
Add endOfLine setting to Prettier config for consistent line endings
AlmostBald-TRADING Oct 21, 2025
43849ce
Pin semgrep-action to specific commit SHA
AlmostBald-TRADING Oct 21, 2025
b5a6f99
docs: add comprehensive file locking documentation to architecture
AlmostBald-TRADING Oct 21, 2025
347e5d7
docs: add file locking configuration and troubleshooting to deploymen…
AlmostBald-TRADING Oct 21, 2025
f55ac8e
docs: add type checking to development workflow and commands
AlmostBald-TRADING Oct 21, 2025
f5cb0a5
rules: update development workflow to include type checking
AlmostBald-TRADING Oct 21, 2025
d8a849b
feat: update Makefile with type checking and improved test targets
AlmostBald-TRADING Oct 21, 2025
dbd069d
feat: implement platform-safe file locking for JSONL writes
AlmostBald-TRADING Oct 21, 2025
a19d74d
refactor: implement optional provider imports with strict mode
AlmostBald-TRADING Oct 21, 2025
0cdb43a
feat: add comprehensive backfill test suite
AlmostBald-TRADING Oct 21, 2025
e8f6cd9
refactor: enhance type safety and add py.typed markers
AlmostBald-TRADING Oct 21, 2025
05a0b8f
refactor: improve session store implementation and testing
AlmostBald-TRADING Oct 21, 2025
8b03e47
test: enhance test infrastructure and coverage
AlmostBald-TRADING Oct 21, 2025
95702d0
docs: update API reference and configuration documentation
AlmostBald-TRADING Oct 21, 2025
204124f
feat: restructure and enhance client libraries
AlmostBald-TRADING Oct 21, 2025
4eda4df
ci: enhance CI/CD workflows and automation
AlmostBald-TRADING Oct 21, 2025
22f8cc6
chore: update project configuration and tooling
AlmostBald-TRADING Oct 21, 2025
cb35d54
test: add test utilities and development aids
AlmostBald-TRADING Oct 21, 2025
4172034
feat: add complete TypeScript client infrastructure
AlmostBald-TRADING Oct 21, 2025
9159784
fix: resolve mypy type checking issues in SentenceTransformers
AlmostBald-TRADING Oct 21, 2025
5f5f9a2
fix: resolve test failures and import issues
AlmostBald-TRADING Oct 21, 2025
f85727c
fix: resolve NPM_TOKEN linter warning in TypeScript client workflow
AlmostBald-TRADING Oct 21, 2025
2d6bb3d
fix: correct ESLint TypeScript configuration path
AlmostBald-TRADING Oct 21, 2025
23a5063
chore(ci): switch GH Actions to stable tags; pin setup-node SHA
AlmostBald-TRADING Oct 22, 2025
63d2d81
chore(pre-commit): run hooks with python3.12 and apply fixes
AlmostBald-TRADING Oct 22, 2025
7f742ce
ci(workflows): pin actions/upload-artifact to v4.6.2 commit for suppl…
AlmostBald-TRADING Oct 22, 2025
347cac3
ci(workflows): pin checkout and setup-python to commit SHAs (supply-c…
AlmostBald-TRADING Oct 22, 2025
89698c4
fix: stabilize test suite and resolve Python 3.12 compatibility
AlmostBald-TRADING Oct 22, 2025
7567ba2
fix: resolve YAML syntax errors in openapi-v1.yaml
AlmostBald-TRADING Oct 22, 2025
cf77b63
fix: resolve 37 code quality and security issues
AlmostBald-TRADING Oct 22, 2025
f2affbd
Fix remaining linting issues
AlmostBald-TRADING Oct 22, 2025
a7c60de
Fix all ruff warnings and complete issue resolution
AlmostBald-TRADING Oct 22, 2025
231572a
Enhance cursor rules for CodeRabbit alignment
AlmostBald-TRADING Oct 22, 2025
0465aed
chore: update dorny/paths-filter action to pinned commit SHA
AlmostBald-TRADING Oct 22, 2025
efec86d
fix: address multiple code quality and security issues
AlmostBald-TRADING Oct 22, 2025
bce44bd
chore: add Renovate configuration and update documentation
AlmostBald-TRADING Oct 22, 2025
eca67fd
fix: update pyproject.toml for Python 3.12 compatibility
AlmostBald-TRADING Oct 22, 2025
854c1f1
resolve: merge conflicts in requirements.txt
AlmostBald-TRADING Oct 22, 2025
d95692b
fix: update GitHub Actions to use correct commit SHAs
AlmostBald-TRADING Oct 22, 2025
f5f2d4a
fix: update pip version to 25.2 (latest available)
AlmostBald-TRADING Oct 22, 2025
2bff006
fix: correct all YAML indentation errors in CI workflow
AlmostBald-TRADING Oct 22, 2025
bb820e5
fix: resolve all CI failures (mypy, module imports, test mocks)
AlmostBald-TRADING Oct 22, 2025
01e22bb
fix: sort __all__ list in __init__.py
AlmostBald-TRADING Oct 22, 2025
585c333
fix: use correct error code for type: ignore comments
AlmostBald-TRADING Oct 22, 2025
dd6fb01
fix: resolve final 2 MyPy strict mode errors
AlmostBald-TRADING Oct 22, 2025
d65aa63
fix: use correct error code for type: ignore comment
AlmostBald-TRADING Oct 22, 2025
4404150
fix: resolve semgrep and TypeScript client CI failures
AlmostBald-TRADING Oct 22, 2025
21398d3
fix: correct semgrep configuration format
AlmostBald-TRADING Oct 22, 2025
7dc86de
fix: resolve TypeScript client ESLint configuration
AlmostBald-TRADING Oct 22, 2025
df09d35
fix: resolve final semgrep and TypeScript client issues
AlmostBald-TRADING Oct 22, 2025
a1d99cf
fix: final corrections for semgrep and TypeScript workflows
AlmostBald-TRADING Oct 22, 2025
4e41e87
fix: resolve TypeScript client ESLint configuration
AlmostBald-TRADING Oct 22, 2025
16063b1
fix: resolve TypeScript type errors in client code
AlmostBald-TRADING Oct 22, 2025
7b0e646
fix: resolve TypeScript client test failures
AlmostBald-TRADING Oct 22, 2025
010aa2f
fix: resolve TypeScript client build artifacts path issue
AlmostBald-TRADING Oct 22, 2025
5a7f6e3
fix: correct TypeScript client build artifacts path
AlmostBald-TRADING Oct 22, 2025
4d3c506
docs: update CI/CD documentation to reflect current workflow structure
AlmostBald-TRADING Oct 22, 2025
e883e09
feat: add comprehensive repository badges and improvements
AlmostBald-TRADING Oct 23, 2025
1df0c4a
feat: implement CodeRabbit PR automation with comment resolution
AlmostBald-TRADING Oct 23, 2025
432698b
fix: resolve critical syntax and type errors in core modules
AlmostBald-TRADING Oct 23, 2025
4f03d6f
fix: restore GitHub Actions workflow files
AlmostBald-TRADING Oct 23, 2025
e618549
docs: update documentation for PR automation and comment resolution
AlmostBald-TRADING Oct 23, 2025
0b27865
chore: update project configuration and dependencies
AlmostBald-TRADING Oct 23, 2025
69bff07
fix: resolve syntax errors in test files
AlmostBald-TRADING Oct 23, 2025
f4f8913
fix: resolve remaining syntax errors in test files
AlmostBald-TRADING Oct 23, 2025
4c34e9f
fix: clean up test files to resolve syntax errors
AlmostBald-TRADING Oct 23, 2025
1b8bfa1
fix: properly restore and fix test files instead of removing code
AlmostBald-TRADING Oct 23, 2025
56f3671
fix: resolve TypeScript errors in Jest test files
AlmostBald-TRADING Oct 23, 2025
7401ce7
chore: update GitHub workflows and OpenAPI spec
AlmostBald-TRADING Oct 23, 2025
7c24bd5
fix: resolve CI workflow failures
AlmostBald-TRADING Oct 23, 2025
8cf209a
fix: resolve infinite recursion and workflow issues
AlmostBald-TRADING Oct 23, 2025
9ec5530
fix: resolve test failures and semgrep configuration
AlmostBald-TRADING Oct 23, 2025
a90627a
fix: remove PR automation tests from main test suite
AlmostBald-TRADING Oct 23, 2025
d2fd565
feat: enhance PR script with multi-option handling
AlmostBald-TRADING Oct 23, 2025
860315c
docs: update documentation for multi-option PR script enhancement
AlmostBald-TRADING Oct 23, 2025
2fc709c
cleanup: remove temporary test file
AlmostBald-TRADING Oct 23, 2025
ec4ad80
feat: add resolved comment filtering with persistent tracking
AlmostBald-TRADING Oct 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 128 additions & 80 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,49 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# CodeRabbit AI Configuration for ContextForge Memory
# https://docs.coderabbit.ai/guides/code-review-best-practices/

# Top-level tone instructions (max 250 chars)
tone_instructions: "Professional tone focusing on security, performance, code quality, best practices, and documentation"
tone_instructions: "Be concise and professional. Prioritize security, determinism, performance, API correctness, and documentation quality."

language: en-US

# Review configuration
reviews:
# Optional: Consider enabling additional external review tools in CodeRabbit UI
# such as gitleaks (secrets scanning), semgrep (SAST), and checkov (IaC scanning)
# for broader security coverage. These are configured in the CodeRabbit UI, not here.
# Path filters for excluding files and directories
profile: assertive
request_changes_workflow: true
high_level_summary: true
review_status: true
commit_status: true
fail_commit_status: true
collapse_walkthrough: true
changed_files_summary: true
suggested_labels: true
suggested_reviewers: true
related_issues: true
related_prs: true
poem: false

# Focus the reviewer signal; keep your existing excludes but add positive includes
path_filters:
# --- include sets (repo-critical) ---
- "src/**"
- "clients/**"
- "openapi/**/*.{yaml,yml,json}"
- ".github/**"
- "Makefile"
- "pyproject.toml"
- "requirements*.txt"
- "Pipfile"
- "Pipfile.lock"
- "package.json"
- "package-lock.json"
- "pnpm-lock.yaml"
- "uv.lock"
- "devcontainer.json"
- ".devcontainer/**"
# IaC / containers
- "{**/*.tf,**/Dockerfile,**/Dockerfile.*,**/docker-compose*.yml,helm/**,k8s/**,kubernetes/**}"
# docs that define rules/security
- "CONTRIBUTING.md"
- "SECURITY.md"
# --- global excludes (noise) ---
- "!**/*.pyc"
- "!**/__pycache__/**"
- "!**/.pytest_cache/**"
Expand All @@ -27,87 +60,102 @@ reviews:
- "!**/dist/**"
- "!**/build/**"
- "!**/.mypy_cache/**"
- "!**/*.egg-info/**"
- "!**/.DS_Store"
- "!**/.git/**"
# de-noise prose unless they are the only changes
- "!docs/**"
- "!**/*.md"

# Path-specific review instructions
# Repo-aware instructions
path_instructions:
# API and main application code
- path: "src/**/*.py"
instructions: |
Focus on:
- API design and RESTful principles
- Error handling and validation
- Security considerations (input validation, authentication)
- Performance implications
- Type hints and documentation
- FastAPI best practices

# Client libraries
- path: "clients/**/*"
- path: "openapi/**/*.{yaml,yml,json}"
instructions: |
Focus on:
- API client design patterns
- Error handling and retry logic
- Type safety and interfaces
- Documentation and examples
- Cross-platform compatibility

# CI/CD and workflows
- path: ".github/**/*"
instructions: |
Focus on:
- Security best practices
- Workflow efficiency
- Proper permissions and secrets handling
- Dependabot configuration
- Security scanning setup

# Infrastructure-as-Code and container security (canonical rule)
- path: "{**/*.tf,**/Dockerfile,**/Dockerfile.*,**/docker-compose.yml,**/docker-compose.*.yml,helm/**/*,k8s/**/*,kubernetes/**/*}"
Validate OpenAPI structure and parity with FastAPI handlers.
Call out missing error responses, auth/permission descriptions, inconsistent schemas, and undocumented fields.
Ensure response models and status codes match reality; flag breaking changes to generated clients.

- path: "src/**/*.py"
instructions: |
Focus on:
- IaC security and misconfigurations (least privilege, restricted policies)
- Safe defaults (no hard-coded secrets, pinned images, versioned modules)
- Container best practices (non-root user, slim base images, healthchecks)
- Network exposure and port/security group rules
- Kubernetes/Helm best practices (resource limits, probes, RBAC)

# Documentation (markdown files in root and docs directory)
- path: "**/*.md"
Enforce FastAPI + Pydantic v2 best practices, input validation, and security (authn/z, secrets handling).
Check deterministic behavior (no hidden time/random/network nondeterminism without explicit guards).
Verify timeouts/retries/backoff around I/O, structured logging, and type hints throughout.
Prefer Ruff rules; flag potential performance pitfalls and memory growth in long-running workers.

- path: "clients/typescript/**"
instructions: |
Focus on:
- Clarity and completeness
- Up-to-date information
- Proper markdown formatting
- Security policy accuracy
- Contribution guidelines

# Configuration files
- path: "requirements.txt"
Ensure strict typing, accurate DTOs from OpenAPI, consistent error shapes, and robust timeout/retry semantics.
Prefer fetch/axios configurations with sane defaults; avoid throwing ambiguous any-typed errors.

- path: "clients/python/**"
instructions: |
Focus on:
- Dependency security and versions
- Configuration best practices
- Security implications
- Proper formatting and structure
Ensure session reuse, timeouts, and exception taxonomy maps cleanly for downstream users.
Check docstrings and typing for public functions; verify parity with OpenAPI.

- path: "pyproject.toml"
- path: ".github/**/*"
instructions: |
Focus on:
- Dependency security and versions
- Configuration best practices
- Security implications
- Proper formatting and structure
Verify least-privilege permissions, pinned actions SHAs, secret usage, concurrency/cancellation,
and fast-fail patterns. Suggest caching and matrix splits where build times benefit.

- path: "*.yaml"
- path: "{**/*.tf,**/Dockerfile,**/Dockerfile.*,**/docker-compose*.yml,helm/**,k8s/**,kubernetes/**}"
instructions: |
Focus on:
- Configuration best practices
- Security implications
- Proper formatting and structure
Enforce IaC/container hardening: no hard-coded secrets; pinned base images; non-root users; healthchecks;
RBAC least privilege; CPU/memory limits; network exposure minimized; image provenance.

- path: "*.yml"
- path: "{pyproject.toml,requirements*.txt,Pipfile*,package*.json,pnpm-lock.yaml,uv.lock}"
instructions: |
Focus on:
- Configuration best practices
- Security implications
- Proper formatting and structure
Flag vulnerable or unpinned deps; suggest safer alternatives; check tool configs (ruff, mypy, pytest, coverage).

auto_review:
enabled: true
auto_incremental_review: true
drafts: false
ignore_title_keywords: ["WIP", "DRAFT", "SPIKE"]
labels: ["!wip"]
base_branches: [".*"]
ignore_usernames:
- "dependabot[bot]"
- "renovate[bot]"
- "github-actions[bot]"

finishing_touches:
docstrings:
enabled: true
unit_tests:
enabled: true

# Let CodeRabbit ingest your house rules
knowledge_base:
opt_out: false
code_guidelines:
enabled: true
filePatterns:
- "**/.cursorrules"
- ".cursor/rules/*.mdc" # Add cursor rules
- "CONTRIBUTING.md"
- "SECURITY.md"
- "**/CODING_STANDARDS.md"

# First-party tool runners (where supported by your plan)
tools:
ruff:
enabled: true
eslint:
enabled: true
shellcheck:
enabled: true
gitleaks:
enabled: true
semgrep:
enabled: true
checkov:
enabled: true
ast-grep:
enabled: true
essential_rules: true
rule_dirs:
- ".codequality/ast-grep/rules"
util_dirs:
- ".codequality/ast-grep/utils"

early_access: false
Loading