Updated hats

This commit is contained in:
2026-02-16 11:39:13 +00:00
parent c3a72d0bee
commit 18d2704677
2 changed files with 16 additions and 0 deletions
@@ -20,6 +20,7 @@ event_loop:
hats: hats:
hat_name: hat_name:
name: "Human-Readable Name" name: "Human-Readable Name"
description: "Short purpose of this hat"
triggers: ["event.that.activates.this.hat"] triggers: ["event.that.activates.this.hat"]
publishes: ["event.this.hat.emits.when.done"] publishes: ["event.this.hat.emits.when.done"]
instructions: | instructions: |
@@ -33,6 +34,7 @@ hats:
- **triggers**: List of events that activate this hat. A hat runs when ANY of its trigger events fire. - **triggers**: List of events that activate this hat. A hat runs when ANY of its trigger events fire.
- **publishes**: List of events this hat emits when it completes its work. - **publishes**: List of events this hat emits when it completes its work.
- **description**: Required short summary of the hat's purpose.
- **instructions**: The prompt for this hat. Must be specific to the hat's role. - **instructions**: The prompt for this hat. Must be specific to the hat's role.
- Events flow forward through the pipeline. Avoid circular event chains. - Events flow forward through the pipeline. Avoid circular event chains.
- The last hat in the pipeline should print LOOP_COMPLETE when the overall task is done. - The last hat in the pipeline should print LOOP_COMPLETE when the overall task is done.
@@ -54,6 +56,7 @@ event_loop:
hats: hats:
planner: planner:
name: "Planner" name: "Planner"
description: "Analyses requirements and writes an implementation plan."
triggers: ["task.start"] triggers: ["task.start"]
publishes: ["plan.ready"] publishes: ["plan.ready"]
instructions: | instructions: |
@@ -71,6 +74,7 @@ hats:
builder: builder:
name: "Builder" name: "Builder"
description: "Implements the plan and delivers working code."
triggers: ["plan.ready"] triggers: ["plan.ready"]
publishes: ["task.done"] publishes: ["task.done"]
instructions: | instructions: |
@@ -102,6 +106,7 @@ event_loop:
hats: hats:
planner: planner:
name: "Planner" name: "Planner"
description: "Creates/updates implementation plans based on task and review feedback."
triggers: ["task.start", "review.changes_requested"] triggers: ["task.start", "review.changes_requested"]
publishes: ["plan.ready"] publishes: ["plan.ready"]
instructions: | instructions: |
@@ -115,6 +120,7 @@ hats:
builder: builder:
name: "Builder" name: "Builder"
description: "Implements planned changes and prepares them for review."
triggers: ["plan.ready"] triggers: ["plan.ready"]
publishes: ["build.done"] publishes: ["build.done"]
instructions: | instructions: |
@@ -127,6 +133,7 @@ hats:
reviewer: reviewer:
name: "Reviewer" name: "Reviewer"
description: "Validates quality and requirements, approving or requesting changes."
triggers: ["build.done"] triggers: ["build.done"]
publishes: ["review.approved", "review.changes_requested"] publishes: ["review.approved", "review.changes_requested"]
instructions: | instructions: |
@@ -160,6 +167,7 @@ event_loop:
hats: hats:
spec_writer: spec_writer:
name: "Spec Writer" name: "Spec Writer"
description: "Writes and updates the technical specification."
triggers: ["task.start", "verify.gaps_found"] triggers: ["task.start", "verify.gaps_found"]
publishes: ["spec.ready"] publishes: ["spec.ready"]
instructions: | instructions: |
@@ -178,6 +186,7 @@ hats:
implementer: implementer:
name: "Implementer" name: "Implementer"
description: "Builds the solution from the specification."
triggers: ["spec.ready"] triggers: ["spec.ready"]
publishes: ["implementation.done"] publishes: ["implementation.done"]
instructions: | instructions: |
@@ -190,6 +199,7 @@ hats:
verifier: verifier:
name: "Verifier" name: "Verifier"
description: "Checks implementation against the spec and success criteria."
triggers: ["implementation.done"] triggers: ["implementation.done"]
publishes: ["verify.passed", "verify.gaps_found"] publishes: ["verify.passed", "verify.gaps_found"]
instructions: | instructions: |
@@ -221,6 +231,7 @@ event_loop:
hats: hats:
test_writer: test_writer:
name: "Test Writer" name: "Test Writer"
description: "Creates failing tests that define expected behaviour."
triggers: ["task.start", "verify.tests_needed"] triggers: ["task.start", "verify.tests_needed"]
publishes: ["tests.ready"] publishes: ["tests.ready"]
instructions: | instructions: |
@@ -237,6 +248,7 @@ hats:
implementer: implementer:
name: "Implementer" name: "Implementer"
description: "Implements code to satisfy tests."
triggers: ["tests.ready"] triggers: ["tests.ready"]
publishes: ["implementation.done"] publishes: ["implementation.done"]
instructions: | instructions: |
@@ -250,6 +262,7 @@ hats:
verifier: verifier:
name: "Verifier" name: "Verifier"
description: "Confirms tests, coverage, and requirement completeness."
triggers: ["implementation.done"] triggers: ["implementation.done"]
publishes: ["verify.passed", "verify.tests_needed"] publishes: ["verify.passed", "verify.tests_needed"]
instructions: | instructions: |
+3
View File
@@ -22,6 +22,7 @@ backpressure:
hats: hats:
planner: planner:
name: "Sidebar Workflow Planner" name: "Sidebar Workflow Planner"
description: "Plans the sidebar-first refactor and writes actionable implementation steps."
triggers: ["task.start", "review.changes_requested"] triggers: ["task.start", "review.changes_requested"]
publishes: ["plan.ready"] publishes: ["plan.ready"]
instructions: | instructions: |
@@ -38,6 +39,7 @@ hats:
builder: builder:
name: "Sidebar Workflow Builder" name: "Sidebar Workflow Builder"
description: "Implements the sidebar, navigation, and responsive behavior changes."
triggers: ["plan.ready"] triggers: ["plan.ready"]
publishes: ["build.done"] publishes: ["build.done"]
instructions: | instructions: |
@@ -55,6 +57,7 @@ hats:
reviewer: reviewer:
name: "Sidebar Workflow Reviewer" name: "Sidebar Workflow Reviewer"
description: "Reviews implementation quality and validates all success criteria."
triggers: ["build.done"] triggers: ["build.done"]
publishes: ["review.approved", "review.changes_requested"] publishes: ["review.approved", "review.changes_requested"]
instructions: | instructions: |