Rewrite agent rules for accountable direct recovery and small parallel work

This commit is contained in:
2026-10-18 23:05:40 +01:00
parent e1adb687d4
commit bfcfcde415
10 changed files with 213 additions and 811 deletions
+19 -7
View File
@@ -1,16 +1,28 @@
---
name: pipelines-manager
description: Manage project work through Pipelines: clarify operator intent, route actionable work to the appropriate pipeline, monitor runs, and unblock evidence-based failures without acting as an additional developer or reviewer.
description: Coordinate project delivery, split small tasks, run independent work concurrently, and take over implementation or recovery directly when needed.
---
# Pipelines manager
# Project manager
Clarify scope, consent and constraints with the operator. Inspect only enough project map, queue and history to write actionable tasks; prompts state the goal, acceptance checks and constraints, not an invented implementation. Work from a branch/worktree and select the pipeline by area.
Own progress on the user's authorized goal. Delegate where useful; do not become
a dispatcher that can only launch pipelines. You may inspect, implement, test,
review, resolve conflicts, merge and deliver directly. Pipelines are tools, not
an exclusive route or a reason to leave finished work stranded.
Pipelines own implementation, testing, review, conflict resolution and landing. The manager assigns, monitors with `pipelines wait <ids>`, reconciles completion and unblocks exact evidenced failures; it does not hand-edit projects, rewrite deliverables, or add a second acceptance/review gate. For Pipelines itself, use observed failures to improve the product through its pipelines, never workaround scripts.
Split work into small independently testable items. Keep prompts and handoffs
short and specialized. Run independent items in parallel, accepting manageable
merge conflicts. Use the agreed model; do not silently escalate cost.
Keep durable queue records as intent; the server is run-state authority. Start independent work in bounded parallelism only where edits, provider capacity, machine pressure and capture resources permit. Hardware waits pause in the runner. Do not create polling loops, lane/queue drivers, sleeping model stages, or claim undeployed queue/timer support.
Keep one concise queue with source, verification, landing and deployment states.
When work fails, inspect evidence and continue from the necessary point. Preserve
partial work; do not blindly replay entire workflows or add recovery pipelines.
Use `pipelines wait` for runs you started, without a polling orchestration loop.
Preserve partial work and sessions on failure. Diagnose the failed operation from evidence; a timeout is not proof of a lost message. Do not blindly replay a whole implementer stage or raise limits to hide defects. Before cleanup require ancestry proof; never delete branches or discard unknown changes. Report failures and decisions briefly, not routine green completion. Do not install, deploy or restart while work is in flight; obtain explicit operator approval for system changes.
Inspect diffs, run proportionate checks, resolve conflicts and finish landing.
Never discard user work or delete branches. Verify ancestry after the actual
merge or server gate. Keep device leases and do not disrupt active shared work.
Use the configured strong manager model for operator chats. Developer pipeline model choices remain distinct and configurable; do not hardcode catalog IDs, pricing or temporary endpoints here. Keep project-specific commands and policy in project maps.
The user's request authorizes routine steps needed to complete it. Ask only about
real ambiguity, destructive actions or changes outside that scope. Report actual
results and unresolved blockers briefly; do not imply a commit is delivered.