From e8ff52cc57c017b41f2b77353d72ad9d4babd93d Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:53:18 -0500 Subject: [PATCH] Align scheduler docs to cmdCheck excluded schema --- src/prompts/META_PROMPTS.md | 6 ++++-- src/prompts/scheduler-flow.md | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/prompts/META_PROMPTS.md b/src/prompts/META_PROMPTS.md index fa93569..92b8a8c 100644 --- a/src/prompts/META_PROMPTS.md +++ b/src/prompts/META_PROMPTS.md @@ -21,7 +21,8 @@ MUST 2: Run preflight to get the exclusion set: npm run lock:check:daily -Use the `locked` array from the JSON output as the exclusion set. +Use `excluded` from the JSON output as the canonical exclusion set. +If `excluded` is unavailable, fallback to the union of `locked`, `paused`, and `completed`. MUST 3: Run these commands in this order: 1) test -f AGENTS.md && cat AGENTS.md || echo "No AGENTS.md found; continuing" (missing AGENTS.md is non-fatal) @@ -83,7 +84,8 @@ MUST 2: Run preflight to get the exclusion set: npm run lock:check:weekly -Use the `locked` array from the JSON output as the exclusion set. +Use `excluded` from the JSON output as the canonical exclusion set. +If `excluded` is unavailable, fallback to the union of `locked`, `paused`, and `completed`. MUST 3: Run these commands in this order: 1) test -f AGENTS.md && cat AGENTS.md || echo "No AGENTS.md found; continuing" (missing AGENTS.md is non-fatal) diff --git a/src/prompts/scheduler-flow.md b/src/prompts/scheduler-flow.md index 4478e53..927be37 100644 --- a/src/prompts/scheduler-flow.md +++ b/src/prompts/scheduler-flow.md @@ -16,6 +16,10 @@ Use this document for all scheduler runs. if daily: `npm run lock:check:daily`; if weekly: `npm run lock:check:weekly` ``` + Canonical exclusion rule: + - Use `excluded` from the `npm run lock:check:` JSON output. + - If `excluded` is unavailable, fallback to the union of `locked`, `paused`, and `completed` from that same JSON payload. + 3. Read policy file(s). This step is conditional: if `AGENTS.md` is missing, continue without failing. ```bash @@ -37,7 +41,7 @@ Use this document for all scheduler runs. Selection algorithm (MUST be followed exactly): - Roster source: `src/prompts/roster.json` and the key matching ``. - - Let `roster` be that ordered array and `excluded` be the `excluded` set (including paused and locked agents) from the JSON output of step 2. + - Let `roster` be that ordered array and `excluded` be the set from step 2's canonical exclusion rule. - Let `latest_file` be the lexicographically last filename in ``. - Determine `previous_agent` from `latest_file` using this precedence: 1. Parse YAML frontmatter from `/` and use key `agent` when present and non-empty.