Claude/review docs specs b up l0#8
Merged
Merged
Conversation
M5.1 (ensureFreshWebContext): checks 30-day cache before searching; BraveUnavailableError/zero results → null summary stored (non-blocking); Haiku summarizes to 3-paragraph profile; "insufficient context" → null; Anthropic errors caught so context failure never blocks generation. Daily cleanup cron deletes web_context rows older than 90 days (BullMQ repeatable job in index.ts). M5.2 (processGenerateLetterJob): full spec §6.4/§6.5 pipeline — idempotency on status≠queued; transitions to generating; loads contact/brief/sender/workspace/settings in parallel; calls ensureFreshWebContext inline; builds prompts with barter/paid/country per spec §6.2; generateJson with 3-attempt transient backoff (2s/4s); one corrective retry on ValidationError/MalformedJsonError; persists subject/bodyText/modelUsed/generatedAt atomically with audit letter.generated; routes to awaiting_review or approved+enqueue based on forcePreviewMode and approvedLettersCount vs calibrationThreshold. prompts.ts: added optional acceptsBarter/barterOffer/acceptsPaid/ paidBudgetRange/country fields (spec §6.2); closing instruction appended to user prompt. 36 new unit tests; all 60 worker tests pass. https://claude.ai/code/session_01Axdu8uRj62ccyQJtpRxhUu
docker-compose.dev.yml used the same named volume (influenceflow_db) as the production compose, causing Postgres to reuse a volume initialized with dev credentials (dev_password / influenceflow_dev DB) when running the production stack. Renamed the dev volume to influenceflow_db_dev so the two stacks never share state. .env.example had DATABASE_URL hardcoded to dev_password and the _dev DB name — inconsistent with DB_PASSWORD placeholder and the production DB name. Fixed both to use the placeholder password and the correct DB name. https://claude.ai/code/session_01Axdu8uRj62ccyQJtpRxhUu
Hard-coded ports 3000 and 5432 conflict with other projects running in parallel. Both ports are now driven by env vars with safe defaults (APP_PORT=3001, DEV_DB_PORT=5433). Override in .env to use any free port. https://claude.ai/code/session_01Axdu8uRj62ccyQJtpRxhUu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.