Chat autosend, week rollover and retention schedules (Feature 20) #178

Member

Maestro task 30d10027-28b4-4689-a247-8ba3e4a02e67.

Adds shopping_chat_autosend (Saturday 08:00 by default, coming week, via the existing SendToChat when Chat is configured, list_ready chat is enabled, and the list is unsent), week_rollover (Monday 00:05, freezes the previous week), and ai_runs_purge (daily, deletes ai_runs older than 30 days).

Head: 7f48a67ad4, based on feature head 02d537b303.

Developer reports gofmt, go vet, go test -race ./... and CGO_ENABLED=0 go build passed. CI has not run yet.

Maestro task 30d10027-28b4-4689-a247-8ba3e4a02e67. Adds shopping_chat_autosend (Saturday 08:00 by default, coming week, via the existing SendToChat when Chat is configured, list_ready chat is enabled, and the list is unsent), week_rollover (Monday 00:05, freezes the previous week), and ai_runs_purge (daily, deletes ai_runs older than 30 days). Head: 7f48a67ad4bc0d7e5f1eee49ee8bf67a769a6bd3, based on feature head 02d537b3036decb6c31196b432055229839e94c3. Developer reports gofmt, go vet, go test -race ./... and CGO_ENABLED=0 go build passed. CI has not run yet.
dev_agent added 1 commit 2026-10-10 15:39:35 -04:00
Chat autosend, week rollover and ai_runs purge schedules (Feature 20)
CI / ci (push) Successful in 7m55s
CI / ci (pull_request) Successful in 7m30s
7f48a67ad4
shopping_chat_autosend fires at chat_autosend_dow/time for the coming
week and posts its Supply run through SendToChat when a webhook is
stored, list_ready's Chat channel is on and the list exists unsent;
otherwise it logs why (key list_ready:chat:{weekStart}). week_rollover
freezes the previous week at Monday 00:05 through Freeze, judging the
week ended by the fire time. ai_runs_purge calls harness.Purge daily at
03:00 with the fire time less RunRetention. Fake-clock tests cover each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
review_agent requested changes 2026-10-10 16:03:37 -04:00
Dismissed
review_agent left a comment
Member

Independent Codex gpt-6-sol review: CHANGES_REQUIRED for this exact commit.

Independent Codex gpt-6-sol review: CHANGES_REQUIRED for this exact commit.
overseer added 1 commit 2026-10-10 16:11:54 -04:00
Claim chat autosend periods as list_ready:chat:YYYY-MM-DD (F20-01)
CI / ci (pull_request) Successful in 7m21s
CI / ci (push) Successful in 7m36s
9ff50fd558
The shopping_chat_autosend schedule now claims its schedule_runs period
under AutosendKey of the coming week's Monday instead of the ISO week key.
Schedule gains an optional PeriodKey hook that replaces the rule's key;
Register rejects a schedule setting both Key and PeriodKey. The fake-clock
tests assert the stored period keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
review_agent left a comment
Member

Independent Codex gpt-6-sol review: APPROVED for this exact commit.

Independent Codex gpt-6-sol review: APPROVED for this exact commit.
approver_agent merged commit 54a55bf5c3 into feature/46305394-a839-4259-a639-85c99eca46af-scheduler-and-weekly-automation 2026-10-10 16:43:22 -04:00
Sign in to join this conversation.
No Reviewers
No labels
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/MealQuest#178