@garygentry/feature-forge 0.2.8 → 0.2.9

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.
Files changed (67) hide show
  1. package/adapters/claude/.feature-forge-bundle.json +1 -1
  2. package/adapters/claude/references/pipeline-state-schema.json +40 -0
  3. package/adapters/claude/references/stage-exit-protocol.md +32 -2
  4. package/adapters/claude/scripts/epic-manifest.py +26 -0
  5. package/adapters/claude/scripts/forge-session.py +89 -9
  6. package/adapters/claude/skills/forge/SKILL.md +3 -1
  7. package/adapters/claude/skills/forge-0-epic/references/edit-mode.md +42 -0
  8. package/adapters/claude/skills/forge-1-prd/SKILL.md +2 -0
  9. package/adapters/claude/skills/forge-2-tech/SKILL.md +2 -0
  10. package/adapters/claude/skills/forge-5-loop/SKILL.md +7 -5
  11. package/adapters/claude/skills/forge-5-loop/references/result-reporting.md +5 -1
  12. package/adapters/claude/skills/forge-verify/SKILL.md +2 -2
  13. package/adapters/claude/skills/forge-verify/references/verification-checklists.md +12 -0
  14. package/adapters/codex/.feature-forge-bundle.json +1 -1
  15. package/adapters/codex/references/pipeline-state-schema.json +40 -0
  16. package/adapters/codex/references/stage-exit-protocol.md +32 -2
  17. package/adapters/codex/scripts/epic-manifest.py +26 -0
  18. package/adapters/codex/scripts/forge-session.py +89 -9
  19. package/adapters/codex/skills/forge/SKILL.md +3 -1
  20. package/adapters/codex/skills/forge-0-epic/references/edit-mode.md +42 -0
  21. package/adapters/codex/skills/forge-1-prd/SKILL.md +2 -0
  22. package/adapters/codex/skills/forge-2-tech/SKILL.md +2 -0
  23. package/adapters/codex/skills/forge-5-loop/SKILL.md +7 -5
  24. package/adapters/codex/skills/forge-5-loop/references/result-reporting.md +5 -1
  25. package/adapters/codex/skills/forge-verify/SKILL.md +2 -2
  26. package/adapters/codex/skills/forge-verify/references/verification-checklists.md +12 -0
  27. package/adapters/copilot/.feature-forge-bundle.json +1 -1
  28. package/adapters/copilot/references/pipeline-state-schema.json +40 -0
  29. package/adapters/copilot/references/stage-exit-protocol.md +32 -2
  30. package/adapters/copilot/scripts/epic-manifest.py +26 -0
  31. package/adapters/copilot/scripts/forge-session.py +89 -9
  32. package/adapters/copilot/skills/forge/forge.md +3 -1
  33. package/adapters/copilot/skills/forge-0-epic/references/edit-mode.md +42 -0
  34. package/adapters/copilot/skills/forge-1-prd/forge-1-prd.md +2 -0
  35. package/adapters/copilot/skills/forge-2-tech/forge-2-tech.md +2 -0
  36. package/adapters/copilot/skills/forge-5-loop/forge-5-loop.md +7 -5
  37. package/adapters/copilot/skills/forge-5-loop/references/result-reporting.md +5 -1
  38. package/adapters/copilot/skills/forge-verify/forge-verify.md +2 -2
  39. package/adapters/copilot/skills/forge-verify/references/verification-checklists.md +12 -0
  40. package/adapters/cursor/.feature-forge-bundle.json +1 -1
  41. package/adapters/cursor/references/pipeline-state-schema.json +40 -0
  42. package/adapters/cursor/references/stage-exit-protocol.md +32 -2
  43. package/adapters/cursor/scripts/epic-manifest.py +26 -0
  44. package/adapters/cursor/scripts/forge-session.py +89 -9
  45. package/adapters/cursor/skills/forge/forge.mdc +3 -1
  46. package/adapters/cursor/skills/forge-0-epic/references/edit-mode.md +42 -0
  47. package/adapters/cursor/skills/forge-1-prd/forge-1-prd.mdc +2 -0
  48. package/adapters/cursor/skills/forge-2-tech/forge-2-tech.mdc +2 -0
  49. package/adapters/cursor/skills/forge-5-loop/forge-5-loop.mdc +7 -5
  50. package/adapters/cursor/skills/forge-5-loop/references/result-reporting.md +5 -1
  51. package/adapters/cursor/skills/forge-verify/forge-verify.mdc +2 -2
  52. package/adapters/cursor/skills/forge-verify/references/verification-checklists.md +12 -0
  53. package/adapters/gemini/.feature-forge-bundle.json +1 -1
  54. package/adapters/gemini/gemini-extension.json +1 -1
  55. package/adapters/gemini/references/pipeline-state-schema.json +40 -0
  56. package/adapters/gemini/references/stage-exit-protocol.md +32 -2
  57. package/adapters/gemini/scripts/epic-manifest.py +26 -0
  58. package/adapters/gemini/scripts/forge-session.py +89 -9
  59. package/adapters/gemini/skills/forge/forge.md +3 -1
  60. package/adapters/gemini/skills/forge-0-epic/references/edit-mode.md +42 -0
  61. package/adapters/gemini/skills/forge-1-prd/forge-1-prd.md +2 -0
  62. package/adapters/gemini/skills/forge-2-tech/forge-2-tech.md +2 -0
  63. package/adapters/gemini/skills/forge-5-loop/forge-5-loop.md +7 -5
  64. package/adapters/gemini/skills/forge-5-loop/references/result-reporting.md +5 -1
  65. package/adapters/gemini/skills/forge-verify/forge-verify.md +2 -2
  66. package/adapters/gemini/skills/forge-verify/references/verification-checklists.md +12 -0
  67. package/package.json +1 -1
@@ -288,17 +288,19 @@ Update `{resolvedFeatureDir}/.pipeline-state.json`:
288
288
 
289
289
  **Host / clean-room fallback (not a user-selectable option):** if the question mechanism, the host's subagent mechanism, or the `forge-verifier` subagent is unavailable, do **not** run clean-room — degrade to printing `/feature-forge:forge-verify {feature} impl` for the user to run inline/manually (mirroring `autoInvokeNextStage`), and offer the auto-verify enable as plain text only if a config write is possible.
290
290
  2. **Then clear your session / start a fresh session.** Recommended **unconditionally** at this boundary for a clean start — independent of how full the context window is. Every artifact is on disk, so the work survives the clear. **I can't clear your session / start a fresh session for you — you have to run it yourself.**
291
- 3. **Then run `/feature-forge:forge-1-prd {chosen}`** in the fresh session — or re-run `/feature-forge:forge` to let the navigator resume from disk.
291
+ 3. **Then run the next command** in the fresh session — or re-run `/feature-forge:forge` to let the navigator resume from disk:
292
+
293
+ ```
294
+ /feature-forge:forge-1-prd {chosen}
295
+ ```
292
296
 
293
297
  ## Gotchas
294
298
 
295
299
  - **Plugin-root discovery (1b-epic helper) covers installed paths, not workspace-dev checkouts.** The `forge-root.sh` search in 1b-epic probes `~/.claude/skills/feature-forge`, `~/.claude/plugins/cache/*/feature-forge/*` (marketplace-cache installs), `~/.claude/plugins/*/feature-forge`, and `./.agents/skills/feature-forge` — the locations of an **installed** plugin. A feature-forge **source checkout** (e.g. `~/workspace/feature-forge`) is not on that list, so the helper exits "cannot locate plugin root." That is expected in a dev environment, not a bug; run the epic-manifest script from the checkout directly (`python3 <checkout>/scripts/epic-manifest.py …`). The bootstrap prelude wraps its candidate loop in `bash -c` so the `~/.claude/plugins/*/feature-forge` glob is zsh-safe: an empty expansion no longer aborts the loop under zsh's `nomatch`.
296
300
  - `{backlogDir}` is a **directory path**, not a file path. Pass `specs/auth`, not `specs/auth/backlog.json`.
297
- - rauf resolves `RAUF.md` with fallback: checks `{backlogDir}/.rauf/RAUF.md` first, then the project's `.rauf/RAUF.md`. As long as the runner is installed in the project, the prompt template will be found.
298
- - State files (state.json, {loopRunner.logFile}, etc.) are created at `{backlogDir}/{loopRunner.stateDir}/` — this is within the feature's spec directory and is expected. State is isolated per backlog dir, so concurrent features don't collide.
299
- - If the session disconnects during a long-running loop, the runner process continues independently. The user can check results later with the status / list commands.
301
+ - rauf resolves `RAUF.md` with fallback (`{backlogDir}/.rauf/RAUF.md` first, then the project's `.rauf/RAUF.md`) — found as long as the runner is installed in the project. State files (state.json, {loopRunner.logFile}, etc.) are created at `{backlogDir}/{loopRunner.stateDir}/`, within the feature's spec directory (expected) and isolated per backlog dir, so concurrent features don't collide.
302
+ - If the session disconnects during a long-running loop, the runner process continues independently — the user can check results later with the status / list commands. If a previous run left a stale lock, the user may need to pass `--force` to clear it (rauf reports this error clearly).
300
303
  - Never run the run command in the foreground (without the host's background-execution mechanism) — it blocks and will hit the Bash tool timeout for any non-trivial backlog. "Don't block the foreground" is NOT "stay silent": supervise via the host's monitoring mechanism (3d), never `sleep`/poll in the foreground. The host's monitoring mechanism must use `persistent: true` (not a bounded `timeout_ms`), watch the **structured** surface (`events.ndjson`), and never filter on raw `RAUF_*` tokens — they appear in agent prose and false-match. A `needs_human`/`blocked`/`review` signal does **not** pause the loop — the runner sets the item aside and keeps going; surface it live but don't tell the user the loop is waiting. See `references/runner-contract.md` for the full monitoring rules.
301
- - If a previous loop run left a stale lock, the user may need to pass `--force` to clear it. rauf will report this error clearly.
302
304
  - The version gate (1c) uses the `--json` form on purpose; never parse `rauf version`'s human output.
303
305
  - **Implementation artifacts must not cite specs.** The loop should **read** the specs and `backlog.json` freely — they are the source of truth for what to build, and the backlog rightly references specs for provenance. But the artifacts the loop **writes into the target repo** (source code, generated `SKILL.md`/agent files, configs, code comments) must be **self-contained**: they must NOT reference feature-forge spec files (no `See specs/{feature}/NN-*.md`, no "source spec" provenance notes in shipped output). Specs are pre-implementation inputs that may be archived or deleted once the feature ships; the implementation must stand on its own. This applies only to shipped implementation output — never to the backlog or spec documents, which should keep citing specs.
304
306
 
@@ -16,7 +16,11 @@ Loop completed for {feature}. All {N} items implemented successfully.
16
16
 
17
17
  1. **Verify is already offered above.** Impl-verify is offered interactively right after this report (Step 5b for a standalone feature, Step 6.1 for an epic member) — run it there rather than as a second gate. It runs clean-room, so it needs no fresh session.
18
18
  2. **Clearing is optional here — warm is fine.** `forge-6-docs` benefits from the still-warm context of what the loop actually did, so continuing in this same session is the easy default. A cold start also works — every artifact is on disk — but there is no need to force it.
19
- 3. **Then run `/feature-forge:forge-6-docs {feature}`** — in this warm session, or a fresh one if you prefer.
19
+ 3. **Then run the next command** — in this warm session, or a fresh one if you prefer:
20
+
21
+ ```
22
+ /feature-forge:forge-6-docs {feature}
23
+ ```
20
24
 
21
25
  **Runner review pass.** A review flag (e.g. rauf's `--review`) makes the runner run
22
26
  a post-loop review that **auto-creates and implements fix items** rather than handing
@@ -161,9 +161,9 @@ Load into context ALL artifacts for this feature based on mode:
161
161
 
162
162
  Read `references/verification-checklists.md` for the detailed checklists per mode. Execute every check. Do not skip checks because things "look fine." That same reference also holds the relocated **Findings Document Template (Step 4)**, the worked **Example Findings (Step 4)**, and the **Epic Mode State Write Detail (Step 6)** sections used later in this skill.
163
163
 
164
- Each check in `verification-checklists.md` has a unique ID (CHECK-P01, CHECK-T01, CHECK-S01, CHECK-B01, etc.). As you execute each check, record its ID and result (pass/fail/not-applicable). After completing all checks, report the total: "Executed N of M checks. Results: X pass, Y fail, Z not-applicable." If your count is significantly below the expected total for the mode (prd: ~15 checks, tech: ~15 checks, specs: ~38 checks, backlog: ~25 checks, impl: ~20 checks, epic: ~8 checks), you likely skipped checks — go back and complete them.
164
+ Each check in `verification-checklists.md` has a unique ID (CHECK-P01, CHECK-T01, CHECK-S01, CHECK-B01, etc.). As you execute each check, record its ID and result (pass/fail/not-applicable). After completing all checks, report the total: "Executed N of M checks. Results: X pass, Y fail, Z not-applicable." If your count is significantly below the expected total for the mode (prd: ~15 checks, tech: ~15 checks, specs: ~38 checks, backlog: ~25 checks, impl: ~20 checks, epic: ~9 checks), you likely skipped checks — go back and complete them.
165
165
 
166
- **Epic mode dispatch.** Epic mode is a small (~8-check) checklist, so per the single-vs-parallel rule above, dispatch a **single `forge-verifier`** via the host's subagent mechanism, passing the epic name and `mode=epic`. The verifier runs CHECK-E01..E08 from the `## Epic Mode Checklist` in `references/verification-checklists.md` (E01/E02/E03/E08 are delegated to `epic-manifest.py validate`/`check-name`; E04–E07 are verifier judgment) and returns its findings.
166
+ **Epic mode dispatch.** Epic mode is a small (~9-check) checklist, so per the single-vs-parallel rule above, dispatch a **single `forge-verifier`** via the host's subagent mechanism, passing the epic name and `mode=epic`. The verifier runs CHECK-E01..E09 from the `## Epic Mode Checklist` in `references/verification-checklists.md` (E01/E02/E03/E08 are delegated to `epic-manifest.py validate`/`check-name`; E04–E07 and E09 are verifier judgment) and returns its findings.
167
167
 
168
168
  ### Important: Be Specific, Not General
169
169
 
@@ -223,6 +223,18 @@ python3 "$R/scripts/epic-manifest.py" validate "{epic}" --specs-dir "{specsDir}"
223
223
  `.pipeline-state.json` `epic` value names this epic, and every `features[]` entry has a
224
224
  matching member directory. On conflict the **manifest wins** (REQ-STATE-01); report, do
225
225
  not auto-repair.
226
+ - [ ] **CHECK-E09**: **open epic change requests** — any member whose `.pipeline-state.json`
227
+ carries `epicChangeRequests[]` entries with `status: "open"` is surfaced as a **non-fatal**
228
+ finding (one per open request). Severity keys off `blocksCurrent`: a **blocking** request →
229
+ `inconsistency` (the epic decomposition and an in-flight member disagree; specs written now
230
+ would build on a soon-invalid premise), a **non-blocking** request → `improvement` (a
231
+ peer/downstream change to reconcile when convenient). Name the request's `kind`, `target`,
232
+ and `rationale`, and point at `/feature-forge:forge-0-epic {epic}` to reconcile. **Report, do
233
+ not repair** (same posture as CHECK-E07). Which members have open requests comes from the
234
+ same `render-status --json` counts the navigator uses (`features[].openEpicChangeRequests` /
235
+ `.blockingEpicChangeRequests`); the per-request `kind`/`target`/`rationale` detail is read
236
+ from the member `.pipeline-state.json` already loaded in Step 2. This is the pre-emptive
237
+ surface for the divergence class CHECK-E06/E07 otherwise catch only after the fact.
226
238
 
227
239
  ## Findings Document Template (Step 4)
228
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@garygentry/feature-forge",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Cross-agent installer for the feature-forge skill suite — installs the canonical forge pipeline into Claude, Codex, Copilot, Cursor, or Gemini.",
5
5
  "license": "MIT",
6
6
  "type": "module",