Add title fields to patrol formulas for bd cook (gt-ingm.2)
Required by bd cook command - each step needs a title field. Cooked 4 protos: deacon(9), witness(10), refinery(11), polecat-arm(6)
This commit is contained in:
@@ -13,6 +13,7 @@ version: 1
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: inbox-check
|
- id: inbox-check
|
||||||
|
title: Handle callbacks from agents
|
||||||
description: |
|
description: |
|
||||||
Handle callbacks from agents.
|
Handle callbacks from agents.
|
||||||
|
|
||||||
@@ -32,6 +33,7 @@ steps:
|
|||||||
Callbacks may spawn new polecats, update issue state, or trigger other actions.
|
Callbacks may spawn new polecats, update issue state, or trigger other actions.
|
||||||
|
|
||||||
- id: trigger-pending-spawns
|
- id: trigger-pending-spawns
|
||||||
|
title: Nudge newly spawned polecats
|
||||||
needs: [inbox-check]
|
needs: [inbox-check]
|
||||||
description: |
|
description: |
|
||||||
Nudge newly spawned polecats that are ready for input.
|
Nudge newly spawned polecats that are ready for input.
|
||||||
@@ -58,6 +60,7 @@ steps:
|
|||||||
Timeout: 60 seconds per polecat. If not ready, try again next cycle.
|
Timeout: 60 seconds per polecat. If not ready, try again next cycle.
|
||||||
|
|
||||||
- id: health-scan
|
- id: health-scan
|
||||||
|
title: Check Witness and Refinery health
|
||||||
needs: [trigger-pending-spawns]
|
needs: [trigger-pending-spawns]
|
||||||
description: |
|
description: |
|
||||||
Check Witness and Refinery health for each rig.
|
Check Witness and Refinery health for each rig.
|
||||||
@@ -118,6 +121,7 @@ steps:
|
|||||||
Reset unresponsive_cycles to 0 when component responds normally.
|
Reset unresponsive_cycles to 0 when component responds normally.
|
||||||
|
|
||||||
- id: plugin-run
|
- id: plugin-run
|
||||||
|
title: Execute registered plugins
|
||||||
needs: [health-scan]
|
needs: [health-scan]
|
||||||
description: |
|
description: |
|
||||||
Execute registered plugins.
|
Execute registered plugins.
|
||||||
@@ -144,6 +148,7 @@ steps:
|
|||||||
Skip this step if ~/gt/plugins/ does not exist or is empty.
|
Skip this step if ~/gt/plugins/ does not exist or is empty.
|
||||||
|
|
||||||
- id: orphan-check
|
- id: orphan-check
|
||||||
|
title: Find abandoned work
|
||||||
needs: [health-scan]
|
needs: [health-scan]
|
||||||
description: |
|
description: |
|
||||||
Find abandoned work.
|
Find abandoned work.
|
||||||
@@ -165,6 +170,7 @@ steps:
|
|||||||
- File incident beads if data loss occurred
|
- File incident beads if data loss occurred
|
||||||
|
|
||||||
- id: session-gc
|
- id: session-gc
|
||||||
|
title: Clean dead sessions
|
||||||
needs: [orphan-check]
|
needs: [orphan-check]
|
||||||
description: |
|
description: |
|
||||||
Clean dead sessions.
|
Clean dead sessions.
|
||||||
@@ -183,6 +189,7 @@ steps:
|
|||||||
Preserve audit trail. Only clean sessions confirmed dead.
|
Preserve audit trail. Only clean sessions confirmed dead.
|
||||||
|
|
||||||
- id: context-check
|
- id: context-check
|
||||||
|
title: Check own context limit
|
||||||
needs: [session-gc]
|
needs: [session-gc]
|
||||||
description: |
|
description: |
|
||||||
Check own context limit.
|
Check own context limit.
|
||||||
@@ -202,6 +209,7 @@ steps:
|
|||||||
This enables the Deacon to burn and respawn cleanly.
|
This enables the Deacon to burn and respawn cleanly.
|
||||||
|
|
||||||
- id: loop-or-exit
|
- id: loop-or-exit
|
||||||
|
title: Burn and respawn or loop
|
||||||
needs: [context-check]
|
needs: [context-check]
|
||||||
description: |
|
description: |
|
||||||
Burn and let daemon respawn, or exit if context high.
|
Burn and let daemon respawn, or exit if context high.
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ variables:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: capture
|
- id: capture
|
||||||
|
title: Capture polecat state
|
||||||
description: |
|
description: |
|
||||||
Capture recent tmux output for {{polecat_name}}.
|
Capture recent tmux output for {{polecat_name}}.
|
||||||
|
|
||||||
@@ -39,6 +40,7 @@ steps:
|
|||||||
- Completion indicators ("Done", "Finished", etc.)
|
- Completion indicators ("Done", "Finished", etc.)
|
||||||
|
|
||||||
- id: assess
|
- id: assess
|
||||||
|
title: Assess work status
|
||||||
needs: [capture]
|
needs: [capture]
|
||||||
description: |
|
description: |
|
||||||
Categorize polecat state based on captured output.
|
Categorize polecat state based on captured output.
|
||||||
@@ -53,6 +55,7 @@ steps:
|
|||||||
Calculate: minutes since last activity.
|
Calculate: minutes since last activity.
|
||||||
|
|
||||||
- id: load-history
|
- id: load-history
|
||||||
|
title: Load intervention history
|
||||||
needs: [assess]
|
needs: [assess]
|
||||||
description: |
|
description: |
|
||||||
Read nudge history for {{polecat_name}} from patrol state.
|
Read nudge history for {{polecat_name}} from patrol state.
|
||||||
@@ -66,6 +69,7 @@ steps:
|
|||||||
to the arm via the bonding context.
|
to the arm via the bonding context.
|
||||||
|
|
||||||
- id: decide
|
- id: decide
|
||||||
|
title: Decide intervention action
|
||||||
needs: [load-history]
|
needs: [load-history]
|
||||||
description: |
|
description: |
|
||||||
Apply the nudge matrix to determine action for {{polecat_name}}.
|
Apply the nudge matrix to determine action for {{polecat_name}}.
|
||||||
@@ -90,6 +94,7 @@ steps:
|
|||||||
Record decision and rationale.
|
Record decision and rationale.
|
||||||
|
|
||||||
- id: execute
|
- id: execute
|
||||||
|
title: Execute intervention
|
||||||
needs: [decide]
|
needs: [decide]
|
||||||
description: |
|
description: |
|
||||||
Take the decided action for {{polecat_name}}.
|
Take the decided action for {{polecat_name}}.
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ version: 1
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: inbox-check
|
- id: inbox-check
|
||||||
|
title: Check refinery mail
|
||||||
description: |
|
description: |
|
||||||
Check mail for MR submissions, escalations, messages.
|
Check mail for MR submissions, escalations, messages.
|
||||||
|
|
||||||
@@ -26,6 +27,7 @@ steps:
|
|||||||
Handle shutdown requests, escalations, and status queries.
|
Handle shutdown requests, escalations, and status queries.
|
||||||
|
|
||||||
- id: queue-scan
|
- id: queue-scan
|
||||||
|
title: Scan merge queue
|
||||||
needs: [inbox-check]
|
needs: [inbox-check]
|
||||||
description: |
|
description: |
|
||||||
Fetch remote and identify polecat branches waiting.
|
Fetch remote and identify polecat branches waiting.
|
||||||
@@ -40,6 +42,7 @@ steps:
|
|||||||
Track branch list for this cycle.
|
Track branch list for this cycle.
|
||||||
|
|
||||||
- id: process-branch
|
- id: process-branch
|
||||||
|
title: Process next branch
|
||||||
needs: [queue-scan]
|
needs: [queue-scan]
|
||||||
description: |
|
description: |
|
||||||
Pick next branch. Rebase on current main.
|
Pick next branch. Rebase on current main.
|
||||||
@@ -55,6 +58,7 @@ steps:
|
|||||||
- Skip to loop-check for next branch
|
- Skip to loop-check for next branch
|
||||||
|
|
||||||
- id: run-tests
|
- id: run-tests
|
||||||
|
title: Run test suite
|
||||||
needs: [process-branch]
|
needs: [process-branch]
|
||||||
description: |
|
description: |
|
||||||
Run the test suite.
|
Run the test suite.
|
||||||
@@ -66,6 +70,7 @@ steps:
|
|||||||
Track results: pass count, fail count, specific failures.
|
Track results: pass count, fail count, specific failures.
|
||||||
|
|
||||||
- id: handle-failures
|
- id: handle-failures
|
||||||
|
title: Handle test failures
|
||||||
needs: [run-tests]
|
needs: [run-tests]
|
||||||
description: |
|
description: |
|
||||||
**VERIFICATION GATE**: This step enforces the Beads Promise.
|
**VERIFICATION GATE**: This step enforces the Beads Promise.
|
||||||
@@ -90,6 +95,7 @@ steps:
|
|||||||
This is non-negotiable. Never disavow. Never "note and proceed."
|
This is non-negotiable. Never disavow. Never "note and proceed."
|
||||||
|
|
||||||
- id: merge-push
|
- id: merge-push
|
||||||
|
title: Merge and push to main
|
||||||
needs: [handle-failures]
|
needs: [handle-failures]
|
||||||
description: |
|
description: |
|
||||||
Merge to main and push immediately.
|
Merge to main and push immediately.
|
||||||
@@ -105,6 +111,7 @@ steps:
|
|||||||
Main has moved. Any remaining branches need rebasing on new baseline.
|
Main has moved. Any remaining branches need rebasing on new baseline.
|
||||||
|
|
||||||
- id: loop-check
|
- id: loop-check
|
||||||
|
title: Check for more work
|
||||||
needs: [merge-push]
|
needs: [merge-push]
|
||||||
description: |
|
description: |
|
||||||
More branches to process?
|
More branches to process?
|
||||||
@@ -115,6 +122,7 @@ steps:
|
|||||||
Track: branches processed, branches skipped (with reasons).
|
Track: branches processed, branches skipped (with reasons).
|
||||||
|
|
||||||
- id: generate-summary
|
- id: generate-summary
|
||||||
|
title: Generate handoff summary
|
||||||
needs: [loop-check]
|
needs: [loop-check]
|
||||||
description: |
|
description: |
|
||||||
Summarize this patrol cycle.
|
Summarize this patrol cycle.
|
||||||
@@ -129,6 +137,7 @@ steps:
|
|||||||
This becomes the digest when the patrol is squashed.
|
This becomes the digest when the patrol is squashed.
|
||||||
|
|
||||||
- id: context-check
|
- id: context-check
|
||||||
|
title: Check own context limit
|
||||||
needs: [generate-summary]
|
needs: [generate-summary]
|
||||||
description: |
|
description: |
|
||||||
Check own context usage.
|
Check own context usage.
|
||||||
@@ -141,6 +150,7 @@ steps:
|
|||||||
- Can continue processing
|
- Can continue processing
|
||||||
|
|
||||||
- id: burn-or-loop
|
- id: burn-or-loop
|
||||||
|
title: Burn and respawn or loop
|
||||||
needs: [context-check]
|
needs: [context-check]
|
||||||
description: |
|
description: |
|
||||||
End of patrol cycle decision.
|
End of patrol cycle decision.
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ steps:
|
|||||||
# --- PREFLIGHT PHASE ---
|
# --- PREFLIGHT PHASE ---
|
||||||
|
|
||||||
- id: inbox-check
|
- id: inbox-check
|
||||||
|
title: Process witness mail
|
||||||
description: |
|
description: |
|
||||||
Process witness mail: lifecycle requests, help requests.
|
Process witness mail: lifecycle requests, help requests.
|
||||||
|
|
||||||
@@ -53,6 +54,7 @@ steps:
|
|||||||
Mark messages as processed when complete.
|
Mark messages as processed when complete.
|
||||||
|
|
||||||
- id: check-refinery
|
- id: check-refinery
|
||||||
|
title: Ensure refinery is alive
|
||||||
needs: [inbox-check]
|
needs: [inbox-check]
|
||||||
description: |
|
description: |
|
||||||
Ensure the refinery is alive and processing merge requests.
|
Ensure the refinery is alive and processing merge requests.
|
||||||
@@ -78,6 +80,7 @@ steps:
|
|||||||
This ensures polecats don't wait forever for their branches to merge.
|
This ensures polecats don't wait forever for their branches to merge.
|
||||||
|
|
||||||
- id: load-state
|
- id: load-state
|
||||||
|
title: Load persisted patrol state
|
||||||
needs: [check-refinery]
|
needs: [check-refinery]
|
||||||
description: |
|
description: |
|
||||||
Read handoff bead and get nudge counts.
|
Read handoff bead and get nudge counts.
|
||||||
@@ -98,6 +101,7 @@ steps:
|
|||||||
# --- DISCOVERY PHASE (Dynamic Bonding) ---
|
# --- DISCOVERY PHASE (Dynamic Bonding) ---
|
||||||
|
|
||||||
- id: survey-workers
|
- id: survey-workers
|
||||||
|
title: Survey all polecats (fanout)
|
||||||
needs: [load-state]
|
needs: [load-state]
|
||||||
description: |
|
description: |
|
||||||
List polecats and bond mol-polecat-arm for each one.
|
List polecats and bond mol-polecat-arm for each one.
|
||||||
@@ -131,6 +135,7 @@ steps:
|
|||||||
# --- CLEANUP PHASE (Gate + Fixed Steps) ---
|
# --- CLEANUP PHASE (Gate + Fixed Steps) ---
|
||||||
|
|
||||||
- id: aggregate
|
- id: aggregate
|
||||||
|
title: Aggregate arm results
|
||||||
needs: [survey-workers]
|
needs: [survey-workers]
|
||||||
waits_for: all-children
|
waits_for: all-children
|
||||||
description: |
|
description: |
|
||||||
@@ -147,6 +152,7 @@ steps:
|
|||||||
Build the consolidated state for save-state.
|
Build the consolidated state for save-state.
|
||||||
|
|
||||||
- id: save-state
|
- id: save-state
|
||||||
|
title: Persist patrol state
|
||||||
needs: [aggregate]
|
needs: [aggregate]
|
||||||
description: |
|
description: |
|
||||||
Update handoff bead with new states.
|
Update handoff bead with new states.
|
||||||
@@ -165,6 +171,7 @@ steps:
|
|||||||
This state survives wisp burns and session cycles.
|
This state survives wisp burns and session cycles.
|
||||||
|
|
||||||
- id: generate-summary
|
- id: generate-summary
|
||||||
|
title: Generate handoff summary
|
||||||
needs: [save-state]
|
needs: [save-state]
|
||||||
description: |
|
description: |
|
||||||
Summarize this patrol cycle for digest.
|
Summarize this patrol cycle for digest.
|
||||||
@@ -180,6 +187,7 @@ steps:
|
|||||||
This becomes the digest when the patrol wisp is squashed.
|
This becomes the digest when the patrol wisp is squashed.
|
||||||
|
|
||||||
- id: context-check
|
- id: context-check
|
||||||
|
title: Check own context limit
|
||||||
needs: [generate-summary]
|
needs: [generate-summary]
|
||||||
description: |
|
description: |
|
||||||
Check own context usage.
|
Check own context usage.
|
||||||
@@ -192,6 +200,7 @@ steps:
|
|||||||
- Can continue patrolling
|
- Can continue patrolling
|
||||||
|
|
||||||
- id: burn-or-loop
|
- id: burn-or-loop
|
||||||
|
title: Burn and respawn or loop
|
||||||
needs: [context-check]
|
needs: [context-check]
|
||||||
description: |
|
description: |
|
||||||
End of patrol cycle decision.
|
End of patrol cycle decision.
|
||||||
|
|||||||
Reference in New Issue
Block a user