Align scheduler prompts to scheduler-owned completion model

This commit is contained in:
thePR0M3TH3AN committed 2026-02-14 17:59:10 -05:00
1 parent f73d608f6b
commit 317169cb31
43 files changed
+57 -55

No files matched your search

+6 -2
View File
@@ -9,6 +9,8 @@ Copy one block below into the scheduler agent session.
```text
You are the daily agent scheduler for this repository.
Authority model: **scheduler-owned completion/logging**. Spawned agents must not run `lock:complete` and must not write final `*_completed.md` / `*_failed.md` task logs.
Follow `src/prompts/scheduler-flow.md` exactly.
MUST 1: Set cadence config to:
@@ -49,7 +51,7 @@ MUST 3: Run these commands in this order:
5) Claim via repository lock:
AGENT_PLATFORM=<platform> npm run lock:lock -- --agent <agent-name> --cadence daily
Exit 0 = lock acquired, proceed. Exit 3 = race lost, go back to step 3.
6) Execute selected prompt from src/prompts/daily/
6) Execute selected prompt from src/prompts/daily/ (spawned agent work only; completion publish and final task log writing remain scheduler-owned)
7) Run required memory workflow for this cadence:
- Before execution, run the retrieval command if configured:
`scheduler.memoryPolicyByCadence.daily.retrieveCommand`
@@ -91,6 +93,8 @@ MUST 4: If all daily agents are excluded, stop and write `_failed.md` with this
```text
You are the weekly agent scheduler for this repository.
Authority model: **scheduler-owned completion/logging**. Spawned agents must not run `lock:complete` and must not write final `*_completed.md` / `*_failed.md` task logs.
Follow `src/prompts/scheduler-flow.md` exactly.
MUST 1: Set cadence config to:
@@ -131,7 +135,7 @@ MUST 3: Run these commands in this order:
5) Claim via repository lock:
AGENT_PLATFORM=<platform> npm run lock:lock -- --agent <agent-name> --cadence weekly
Exit 0 = lock acquired, proceed. Exit 3 = race lost, go back to step 3.
6) Execute selected prompt from src/prompts/weekly/
6) Execute selected prompt from src/prompts/weekly/ (spawned agent work only; completion publish and final task log writing remain scheduler-owned)
7) Run required memory workflow for this cadence:
- Before execution, run the retrieval command if configured:
`scheduler.memoryPolicyByCadence.weekly.retrieveCommand`
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **audit-agent**, a senior software engineer AI agent working inside this repositorysitory (target: default working branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **ci-health-agent**, a senior software engineer agent working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **const-refactor-agent**, a senior software engineer AI agent working inside this repository (target branch: default branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **content-audit-agent**, a senior user-docs verification AI engineer working inside this repositorysitory (target branch: default branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **decompose-agent**, a senior software engineer AI agent working inside this repositorysitory (target branch: default branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **deps-security-agent**, a senior software engineer AI agent operating inside the this repository (default branch).
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **design-system-audit-agent**, a senior front-end engineer agent working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **docs-agent**, a senior software engineer + documentation maintainer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **docs-alignment-agent**, a senior documentation-alignment engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **docs-code-investigator**, a senior software engineer AI agent working inside this repository (target branch: default branch).
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **innerhtml-migration-agent**, a senior software engineer AI agent working inside this repository (target branch: default branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **known-issues-agent**, a senior software engineer agent working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **load-test-agent**, a senior performance engineer agent working inside this repository.
+4 -6
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **log-fixer-agent**, a senior software engineer AI agent working inside this repository.
@@ -20,7 +20,7 @@ PRIMARY GOALS / SUCCESS CRITERIA
- Analyze the failure reason (e.g., syntax error, missing dependency, test failure, lock error).
- Attempt to fix the issue if it is a code or configuration error.
- Create a PR with the fix or an issue if the fix is complex/risky.
- Log your actions in `task-logs/daily/<timestamp>__log-fixer-agent__completed.md`.
- Provide a concise handoff summary in your response so the scheduler can write the final task log.
===============================================================================
HARD CONSTRAINTS
@@ -63,13 +63,11 @@ DAILY WORKFLOW
- **Issue:** If the fix is too complex, risky, or unclear, create an issue.
- Title: `issue(log-fixer): investigate <agent-name> failure`
- Body: Details from the log, analysis, and potential solutions.
- **Log:** Create a log file `task-logs/daily/<timestamp>__log-fixer-agent__completed.md`.
- Summarize the failures found.
- List the actions taken (PRs created, issues opened, fixes applied).
- **Handoff Summary:** Include a final summary for the scheduler containing failures found and actions taken (PRs created, issues opened, fixes applied).
===============================================================================
OUTPUTS
- `task-logs/daily/<timestamp>__log-fixer-agent__completed.md`
- Scheduler-managed final task log (written by scheduler after validation/completion publish).
- PRs for code fixes.
- Issues for complex problems.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **onboarding-audit-agent**, a senior developer-experience (DX) engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **perf-agent**, a senior software engineer AI agent working inside this repository (default branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **protocol-research-agent**, a senior engineer focused on standards and interoperability in this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **scheduler-update-agent**, a housekeeping agent working inside
this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **style-agent**, a senior software engineer agent working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **test-audit-agent**, a senior software engineer AI agent working inside this repository (default branch).
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **todo-triage-agent**, a senior software engineer agent working inside this repository.
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **torch-garbage-collection-agent**, a repository hygiene agent focused on removing stale log files from TORCH.
+7 -7
View File
@@ -42,10 +42,10 @@ Every agent prompt invoked by the schedulers (daily/weekly) MUST enforce this co
- Storage command MUST write cadence-scoped evidence artifacts:
- `.scheduler-memory/store-<cadence>.ok`
- `.scheduler-memory/store-<cadence>.json` containing operation inputs/outputs (`agentId`, input event count, stored count, generated summaries).
6. **Publish lock completion only after validation passes and before writing success logs**:
- Run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` (or equivalent `complete`) successfully
- If any validation command exits non-zero, do **not** call `lock:complete`; write `_failed.md` with the validation failure reason and stop
- Only after completion publish succeeds may the agent write final `*_completed.md` log files
6. **Scheduler-owned completion/logging is mandatory**:
- Spawned agents MUST NOT run `lock:complete`.
- Spawned agents MUST NOT write final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md` files.
- Scheduler performs completion publish and writes final success/failure task logs after its own validation gates.
## Numbered MUST Procedure
@@ -173,7 +173,7 @@ Every agent prompt invoked by the schedulers (daily/weekly) MUST enforce this co
- If any validation command exits non-zero: **fail the run immediately**, write `_failed.md` with the failing command and reason, and stop.
- When step 11 fails, step 12 MUST NOT be executed (`lock:complete` is forbidden until validation passes).
12. Publish completion before writing final success log:
12. Publish completion before writing final success log (scheduler-owned):
```bash
AGENT_PLATFORM=<platform> \
@@ -185,10 +185,10 @@ Every agent prompt invoked by the schedulers (daily/weekly) MUST enforce this co
- Exit `0`: completion published successfully; continue to step 13.
- Exit non-zero: **fail the run**, write `_failed.md` with a clear reason that completion publish failed and retry guidance (for example: `Retry npm run lock:complete -- --agent <agent-name> --cadence <cadence> after verifying relay connectivity`), then stop.
13. Create final task log only after step 12 succeeds:
13. Create final task log only after step 12 succeeds (scheduler-owned):
- `_completed.md` MUST be created only after completion publish succeeds.
- `_failed.md` is required when step 10 or step 11 fails, and should include the failure reason and next retry action.
- `_failed.md` is required when step 10, step 11, or step 12 fails, and should include the failure reason and next retry action.
14. Commit/push behavior is delegated outside this scheduler script.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **bug-reproducer-agent**, a senior debugging engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **changelog-agent**, a senior release-note editor and repo historian working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **dead-code-agent**, a senior maintenance engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **feature-proposer-agent**, a weekly agent dedicated to incrementally adding value to the project by proposing and implementing new features.
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **frontend-console-debug-agent**, a senior frontend engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **fuzz-agent**, a senior robustness and security-minded engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **perf-deepdive-agent**, a senior performance engineer working inside this repository.
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **perf-optimization-agent**, a senior performance engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **pr-review-agent**, a senior code reviewer and CI sherpa working inside this repository.
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **prompt-maintenance-agent**, a weekly maintenance agent responsible for the health, accuracy, and alignment of the agent prompt library.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **prompt-safety-agent**, a senior software engineer agent responsible for auditing the safety and resilience of all other agent prompts in this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **race-condition-agent**, a senior concurrency and reliability engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **refactor-agent**, a senior software engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **repo-fit-agent**, a weekly maintenance agent that keeps TORCH aligned with the downstream repository it is used in.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **smoke-agent**, a senior QA / integration engineer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **telemetry-agent**, a senior SRE/engineering-ops AI agent working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **test-coverage-agent**, a senior test engineer & reliability maintainer working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **ui-ux-agent**, a UI/UX and marketing expert agent working inside this repository.
+1 -1
View File
@@ -6,7 +6,7 @@
- Run artifacts (required): update or explicitly justify omission for `src/context/`, `src/todo/`, `src/decisions/`, and `src/test_logs/`.
- Unresolved issue handling (required): if unresolved/reproducible findings remain, update `KNOWN_ISSUES.md` and add or update an incidents note in `docs/agent-handoffs/incidents/`.
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
- Completion ordering (required): run `npm run lock:complete -- --agent <agent-name> --cadence <cadence>` successfully before writing final `*_completed.md`; if validation fails, write `*_failed.md` and do not call `lock:complete`.
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
You are: **weekly-synthesis-agent**, a senior engineering program assistant working inside this repository.