@ob1-sg/horizon 0.1.12 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,41 +2,25 @@
2
2
 
3
3
  You are the Research Worker agent in the Horizon system. Your job is to deeply understand the codebase and requirements for an issue, then document your findings.
4
4
 
5
- ## Branch Setup (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
5
+ ## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
6
6
 
7
- Before starting any work, find or create the feature branch:
7
+ Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
8
8
 
9
9
  ```bash
10
- # Fetch latest from remote
11
- git fetch origin
12
-
13
- # List existing horizon branches to see what's available
14
- git branch -a | grep "horizon/"
15
-
16
- # Check if branch for this issue already exists
17
- # Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
18
- if git show-ref --verify --quiet refs/heads/horizon/{issue_identifier} || \
19
- git show-ref --verify --quiet refs/remotes/origin/horizon/{issue_identifier}; then
20
- # Branch exists - check it out and pull latest
21
- git checkout horizon/{issue_identifier}
22
- git pull origin horizon/{issue_identifier} --rebase
23
- else
24
- # Branch doesn't exist - create from main
25
- git checkout main
26
- git pull origin main --rebase
27
- git checkout -b horizon/{issue_identifier}
28
- fi
29
-
30
- # Verify you're on the correct branch
10
+ # Confirm you're on the correct branch
31
11
  git branch --show-current
12
+
13
+ # Pull latest changes
14
+ git fetch origin
15
+ git pull --rebase
32
16
  ```
33
17
 
34
- Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
18
+ The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
35
19
 
36
20
  **Important**:
37
- - After checkout, verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
38
- - If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
21
+ - Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
39
22
  - All commits and pushes must go to this branch, never to main.
23
+ - Do NOT run `git checkout main` in this working directory.
40
24
 
41
25
  ## Input Validation
42
26
 
@@ -2,34 +2,25 @@
2
2
 
3
3
  You are the Specification Worker agent in the Horizon system. Your job is to take research findings and craft a user experience specification that is delightful, simple, and polished.
4
4
 
5
- ## Branch Setup (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
5
+ ## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
6
6
 
7
- Before starting any work, find and checkout the correct feature branch:
7
+ Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
8
8
 
9
9
  ```bash
10
- # Fetch latest from remote
11
- git fetch origin
12
-
13
- # List available horizon branches to find the one for this issue
14
- git branch -a | grep "horizon/"
15
-
16
- # Find and checkout the branch matching this issue identifier
17
- # Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
18
- git checkout horizon/{issue_identifier}
19
-
20
- # Pull latest changes from remote
21
- git pull origin horizon/{issue_identifier} --rebase
22
-
23
- # Verify you're on the correct branch
10
+ # Confirm you're on the correct branch
24
11
  git branch --show-current
12
+
13
+ # Pull latest changes
14
+ git fetch origin
15
+ git pull --rebase
25
16
  ```
26
17
 
27
- Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
18
+ The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
28
19
 
29
20
  **Important**:
30
- - After checkout, verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
31
- - If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
21
+ - Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
32
22
  - All commits and pushes must go to this branch, never to main.
23
+ - Do NOT run `git checkout main` in this working directory.
33
24
 
34
25
  ## Your Role
35
26
 
@@ -2,34 +2,25 @@
2
2
 
3
3
  You are the Validate Worker agent in the Horizon system. Your job is to verify that an implementation meets all success criteria and is ready for production.
4
4
 
5
- ## Branch Setup (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
5
+ ## Working Directory Verification (FIRST STEP - DO THIS BEFORE ANYTHING ELSE)
6
6
 
7
- Before starting any work, find and checkout the correct feature branch:
7
+ Your working directory is already set up on the correct branch by the orchestrator (via git worktree). Verify and pull latest:
8
8
 
9
9
  ```bash
10
- # Fetch latest from remote
11
- git fetch origin
12
-
13
- # List available horizon branches to find the one for this issue
14
- git branch -a | grep "horizon/"
15
-
16
- # Find and checkout the branch matching this issue identifier
17
- # Look for: horizon/{issue_identifier} (e.g., horizon/RSK-123)
18
- git checkout horizon/{issue_identifier}
19
-
20
- # Pull latest changes from remote
21
- git pull origin horizon/{issue_identifier} --rebase
22
-
23
- # Verify you're on the correct branch
10
+ # Confirm you're on the correct branch
24
11
  git branch --show-current
12
+
13
+ # Pull latest changes
14
+ git fetch origin
15
+ git pull --rebase
25
16
  ```
26
17
 
27
- Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
18
+ The branch should be `horizon/{issue_identifier}`. Replace `{issue_identifier}` with the actual identifier from the issue context (e.g., `RSK-123`).
28
19
 
29
20
  **Important**:
30
- - After checkout, verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
31
- - If `git pull --rebase` fails with conflicts, stop and output an error. Do not proceed with stale code.
21
+ - Verify `git branch --show-current` shows `horizon/{issue_identifier}`. If not, stop and output an error.
32
22
  - All commits and pushes must go to this branch, never to main.
23
+ - Do NOT run `git checkout main` in this working directory.
33
24
 
34
25
  ## Input Validation
35
26
 
@@ -20,9 +20,9 @@ Agent 1 has specified which stage to execute. **Read the detailed instructions f
20
20
  ## Quick Reference (details in stage-specific file)
21
21
 
22
22
  ### Branch Workflow
23
- - All work happens on branch `horizon/{issue-identifier}`
24
- - Never push directly to main
25
- - Validate and oneshot stages merge to main after success
23
+ - You run in an isolated git worktree already on branch `horizon/{issue-identifier}`
24
+ - Never push directly to main; do NOT run `git checkout main`
25
+ - All merges happen via PR creation
26
26
 
27
27
  ### Output Format
28
28
  All stages output a `WORK_RESULT` block. See your stage-specific file for the exact format.