Skip to content

Commit fe79de6

Browse files
authored
docs: a schedule is per session, not per Bot (#628) (#632)
## What Documents a tool boundary we hit twice on 2026-10-21: `schedule_list` is **session-scoped**, and an empty answer cannot be told apart from "this Bot has never been scheduled". - `AGENTS.md` — a new `#### A schedule is per session, not per Bot (#628)` subsection under Runtime model → Routines, and hard rule 6 in `### Hard rules for agents`. The rule text (owner-approved wording): **an empty `schedule_list` is not evidence that a schedule does not exist; never delete or recreate a schedule from it, and never report "no timers" as a finding.** ## Why it is not just theory - A routine round asked several Bots `schedule_list`; they answered `[]` and the team concluded the hourly rounds "had never existed". The owner's UI showed scheduled tasks under Dev and Triage at that moment. - A later run came close to deleting and recreating a live schedule on the strength of the same empty answer. ## Not done here The real fix is in DSH (report the answered scope, or enumerate the Bot's workspace); this machine only ships DSH as a vendor package, so #628 stays `needs-human` for that half. This PR is the repository-side half only. ## Risk Documentation only: no code, no workflow, no behaviour change.
1 parent 21b12e2 commit fe79de6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ Decided by the owner (Danyang, GitHub `Birfy`) on 2026-10-18/19. Four scheduled
8181
| Repo maintenance | every 2 h, FlyBot and Bot Social separately | The **only** routine that opens fix PRs. Each run: review open PRs against the design rules; triage every open issue (fixed, duplicate or obsolete: close with a comment; still valid: readiness check below); label every open issue and PR; develop only `agent-ready` issues; merge ready PRs through the merge queue within the gates below. Never deploys. Never edits `CHANGELOG.md` or a version number. |
8282
| Daily release | about 02:00 Asia/Shanghai | Publishes a real semver GitHub release (tag = `core/package.json` version, patch bump per day, skipped when there are no changelog fragments) through a mechanical release PR. It owns `CHANGELOG.md` and the version. The files and the approval are in [Standing approval](#standing-approval-mechanical-release-prs). |
8383

84+
#### A schedule is per session, not per Bot (#628)
85+
86+
`schedule_list` answers for **the session the call runs in**, not for the Bot. A schedule the owner created in another session of the same Bot is simply absent from the answer, and nothing in the response says which session it answered for — so `[]` is indistinguishable from "nothing is scheduled". This cost two wrong conclusions on 2026-10-21: a Bot reported "0 timers" and the team concluded a live schedule had never existed, and another run came close to deleting and recreating a schedule that was running.
87+
88+
**Never infer "this Bot has no scheduled work" from an empty `schedule_list`, and never delete, update or recreate a schedule on the strength of one.** The owner's UI shows the real list; ask the owner instead of the tool when the run depends on it. `schedule_delete` and `schedule_update` share the same scope, so a Bot can otherwise "clean up" a schedule it cannot see. The DSH-side fix is tracked in #628.
89+
8490
### Issue labels
8591

8692
- **Type** (exactly one): `bug`, `enhancement`, `documentation`, `accessibility`.
@@ -133,6 +139,7 @@ The standing "file no new issues" rule covers design proposals only: a reproduci
133139
3. A routine PR is merged by the Bot that gated it (owner decision 2026-10-21, [self-gate](#owner-decision-the-bot-gates-and-merges-its-own-prs-2026-10-21-owner-authorized)). A typed chat reply is still not an approval for anything else, and an owner-only decision (scope, security surface, policy) still waits for the owner's word through the normal path (#349).
134140
4. Connector tools are on by default for the owner's Bots and off by default for other people's, until the owner opts in (#359).
135141
5. Bot Social has no keyword commitment scan.
142+
6. A schedule is per session, not per Bot: an empty `schedule_list` is not evidence that a schedule does not exist, and no schedule is deleted, updated or recreated on the strength of one (see [A schedule is per session](#a-schedule-is-per-session-not-per-bot-628)).
136143

137144
## What this project is
138145

0 commit comments

Comments
 (0)