Address FIX items from PR #1 code review #2
No reviewers
Labels
No labels
app
bug
ci
compliance
content
dependencies
docs
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
infra
invalid
javascript
needs-triage
python
question
tests
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/orchestrator#2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/code-review-followups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Resolves the four FIX-level items surfaced in the post-merge review of PR #1. QUESTION item (test coverage scope) left for now.
models.py): addedgoogle.api_core.exceptions.{ResourceExhausted, InternalServerError, ServiceUnavailable, DeadlineExceeded, GatewayTimeout}to the retriable set. Scanner-route runs no longer crash on transient Google failures.RETRIABLE_EXCEPTIONScount: 6 → 11.retriever.py):get_or_build_embeddingsnow collects all cache misses into a list and issues a singleembed_documents()call. Cold rebuild of 87 memories dropped from ~30s to ~10s (one HTTPS round-trip vs. 87).telemetry.py,scripts/weekly_summary.py): both modules usedatetime.now(UTC).date()for the filename, matching the UTCtimestampfield inside each record. Removes the off-by-one near local midnight and aligns with Sea Haven's UTC-for-logs convention.scripts/weekly_summary.py):total_costno longer filters onsuccess, so failed runs that consumed tokens show up in the digest. Added a(incl. $X on failed runs)sub-line for breakdown.Test plan
ruff check .cleanruff format --check .clean (12 files)python3 -c "import models; print(len(models.RETRIABLE_EXCEPTIONS))"returns 11rm -rf .cache && python3 -c "...") — 87 embeddings in 10.6sproject_seahaven_slack_bot, feedback_new_repo_checklist, project_afterhours_shift_managerfor a Slack-deploy taskpython3 scripts/weekly_summary.pyprints with the new(incl. $X on failed runs)lineDeferred
format_memories_for_prompt, atomic cache write, narrower exception catches). Can pick up in a future cleanup if needed.Rollback
git revert 5378bac— restores previous behavior on all four items.