Skip to content

Claude/review docs specs b up l0#8

Merged
Kilbas merged 3 commits into
mainfrom
claude/review-docs-specs-bUpL0
May 4, 2026
Merged

Claude/review docs specs b up l0#8
Kilbas merged 3 commits into
mainfrom
claude/review-docs-specs-bUpL0

Conversation

@Kilbas
Copy link
Copy Markdown
Owner

@Kilbas Kilbas commented May 4, 2026

No description provided.

claude added 3 commits May 3, 2026 21:28
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
@Kilbas Kilbas merged commit 5818355 into main May 4, 2026
1 check failed
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.

2 participants