feat: NyxBot automations — schedules and webhook triggers for NyxBot and specialists (0.39.0) - #1719
Merged
Merged
Conversation
added 2 commits
October 1, 2026 08:12
…yxBot or specialists Triggers gain a schedule source (cron/every/at with IANA timezones and DST, grace windows, per-owner budgets and overlap policy, exactly-once leased runs) and an assistant delivery that starts a NyxBot or specialist turn in a home, dedicated or per-run thread, delivering results to the thread, a channel chat or push. NyxBot creates and manages schedules from chat; webhook triggers are set up through a private prefilled Automations page so secrets never enter chat. Webhook runs default to dedicated threads and confirm every changing action. Developer-app OAuth tokens are refused on all NyxAgent routes.
📊 Code coverage
Gate: line coverage must stay at or above the threshold. Ratchet plan (W21): Backend → 55%, CLI → 50%, Frontend → 30% by quarter end. |
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.
Summary
NyxBot and its specialists can now act on their own, on a schedule or when a webhook arrives. This builds on NyxID Triggers rather than adding a parallel system. Version 0.39.0.
source:webhook(default, unchanged) orschedule.trigger_workindex.assistantdelivery starts a turn for NyxBot or a specialist.home,dedicatedornew.confirmation_policy = changes: every changing call raises an owner card, classified by HTTP semantics and NyxID markers, never word lists.homeordestructiveis an explicit owner choice with warnings.nyxid__create_schedule,list_schedules,update_schedule,delete_scheduleandrun_schedule_now.Developer > Triggers remains for webhook secrets and replay.
/assistant/nyxagent/*route now refuses developer-app OAuth access tokens. Previously a third-party app with the owner's consent could drive NyxBot.Rollout
Upgrade all replicas before creating automations. Old replicas cannot deserialize the new verification or delivery variants, so an affected owner's trigger list and ingress fail on them; no old sweeper deletes or retries these rows. No new environment variables.
Performance (S7)
Owners without triggers gain no database round trips on proxy, MCP, turn start or channel inbound.
Verification
-D warningsclean.docs/NYXBOT_SCHEDULES.md.