ai-foreman 1.0.11 → 1.0.12

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.
package/README.md CHANGED
@@ -124,6 +124,32 @@ ai-foreman start ./my-project --steps 3 --create-pr --pr-ready --agent codex
124
124
  ai-foreman start ./my-project --steps 1 --branch-per-ticket --continue --ticket T001
125
125
  ```
126
126
 
127
+ ### GitHub PR Failure Recovery
128
+
129
+ When `--create-pr` cannot prepare GitHub, push a branch, or create a PR, Foreman records a structured failure and blocks the affected ticket cleanly. Blocked worktrees are retained automatically so you can repair the environment and retry without losing the ticket session.
130
+
131
+ `ai-foreman status ./my-project` shows the latest GitHub failure code, repair commands, last command output, and a retry command when a resumable ticket session exists.
132
+
133
+ Common failure codes:
134
+
135
+ | Code | Meaning |
136
+ | --- | --- |
137
+ | `gh_missing` | GitHub CLI is not installed or not on `PATH`. |
138
+ | `gh_not_authenticated` | `gh` is installed but not authenticated for the remote host. |
139
+ | `repo_unreachable` | `gh repo view` cannot access the target repository. |
140
+ | `git_remote_unreachable` | `git ls-remote` cannot access the configured remote. |
141
+ | `network_or_timeout` | A GitHub or git command timed out or hit a network error. |
142
+ | `push_failed` | The ticket branch could not be pushed. |
143
+ | `pr_create_failed` | The branch pushed, but PR creation or PR body writing failed. |
144
+
145
+ For GitHub Enterprise remotes, repair commands include the remote host:
146
+
147
+ ```bash
148
+ gh auth login --hostname <host>
149
+ gh auth status --hostname <host>
150
+ gh repo view <host>/<owner>/<repo>
151
+ ```
152
+
127
153
  ### `ai-foreman tickets populate`
128
154
 
129
155
  | Option | Common values | Default | Notes |
@@ -541,4 +567,3 @@ Package output:
541
567
  - **`special-agents`** — library (rules + skills + agents + composition)
542
568
  - **`ai-foreman`** — this runtime
543
569
  - **`@rafi-ai/cli`** — CLI for `rafi create` and `rafi compile`
544
-
package/dist/config.js CHANGED
@@ -24,6 +24,7 @@ export const DEFAULT_CONFIG = {
24
24
  "ls",
25
25
  "cat ",
26
26
  "mkdir ",
27
+ "ai-foreman tickets",
27
28
  "foreman tickets",
28
29
  "pytest",
29
30
  "python ",
package/foreman.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # Foreman configuration. Any field omitted here falls back to the built-in
2
2
  # defaults in src/config.ts. This file is read from the *project* directory
3
- # passed to `foreman start`, so each project can tune its own policy.
3
+ # passed to `ai-foreman start`, so each project can tune its own policy.
4
4
 
5
5
  permissions:
6
6
  # Bash commands are auto-approved only when EVERY segment (split on && || ; |)
@@ -26,6 +26,8 @@ permissions:
26
26
  - ls
27
27
  - "cat "
28
28
  - "mkdir "
29
+ - ai-foreman tickets
30
+ # Legacy-compatible prefix for older generated docs and logs.
29
31
  - foreman tickets
30
32
  - pytest
31
33
  - "python "
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-foreman",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "An orchestrator that keeps Codex CLI / Claude Code builders moving through their step list unattended. Part of Rafi.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",