Skip to content

feat: automations — weekly review job on the host scheduler + re-price plan tool (0.3.0) - #4

Merged
mabry1985 merged 2 commits into
mainfrom
feat/automations
Sep 12, 2026
Merged

feat: automations — weekly review job on the host scheduler + re-price plan tool (0.3.0)#4
mabry1985 merged 2 commits into
mainfrom
feat/automations

Conversation

@mabry1985

Copy link
Copy Markdown
Member

Slice 3 of the inventory plugin: automations

Re-opened from #3, which GitHub closed when its stacked base branch was deleted on the merge of #1; the branch is rebased onto main and carries only the automations commits.

  • weekly_review: true arms a plugin-owned recurring turn via sdk.schedule_recurring (idempotent by job id, re-armed on every reload, cancelled when the plugin is disabled). The turn runs inventory_staleinventory_reprice_planebay_price_check (sold) → inventory_set_price with basis and evidence, reports stale listings with a recommendation (it never changes a listing), and ends with inventory_summary. Cron, timezone and caps are config + Settings fields.
  • inventory_reprice_plan: the worklist — unsold items with the oldest or missing price evidence, capped, each with a suggested buyer-style query and its current band.
  • Tests (122 total): a fake graph.sdk records the scheduling calls (armed with the configured cadence, cancelled when off, off by default); no scheduler seam → registration still succeeds; plan ordering, cap and lot filter; the prompt carries the configured thresholds and the never-touch-a-listing rule.

Vera's panel has been exhausting on this repo tonight from upstream rate limiting; merging on CI green with the in-session review, as with #1 and #2.

🤖 Generated with Claude Code

https://claude.ai/code/session_011UQ33xXfygwEkzbbJx3YwZ

mabry1985 and others added 2 commits September 12, 2026 03:52
…e plan tool (0.3.0)

- `weekly_review: true` arms a plugin-owned recurring turn via sdk.schedule_recurring
  (idempotent by job id; re-armed on reload, cancelled on disable). The prompt runs
  inventory_stale → inventory_reprice_plan → ebay_price_check (sold) → inventory_set_price
  with basis + evidence, reports stale listings with a recommendation (never changes a
  listing), and ends with inventory_summary. Cron / timezone / caps in config + settings.
- inventory_reprice_plan: the worklist — unsold items with the oldest or missing price
  evidence, capped, each with a suggested buyer-style query and its current band.
- 70 host-free tests (fake graph.sdk records the scheduling calls; no seam → no crash).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UQ33xXfygwEkzbbJx3YwZ
…nce 0.1.1)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UQ33xXfygwEkzbbJx3YwZ
@mabry1985
mabry1985 merged commit a01c182 into main Sep 12, 2026
1 of 2 checks passed
@mabry1985
mabry1985 deleted the feat/automations branch September 12, 2026 11:04
@protoreview

protoreview Bot commented Sep 12, 2026

Copy link
Copy Markdown

⚠️ QA panel exhausted — this PR has not been reviewed.
The review panel failed after 2 attempt(s) on head cc3f1691bf5e. No verdict was posted.
A new push will re-trigger the review.

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.

1 participant