forge-orkes 0.9.5 → 0.9.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-orkes",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "Set up the Forge meta-prompting framework for Claude Code in your project",
5
5
  "bin": {
6
6
  "create-forge": "./bin/create-forge.js"
@@ -60,6 +60,7 @@ Run: {n} | Passed: {n} | Failed: {n} | Coverage: {if available}
60
60
  Read: .forge/phases/m{M}-{N}-{name}/plan.md → extract must_haves
61
61
  Read: .forge/state/milestone-{id}.yml → reported progress
62
62
  Read: .forge/context.md → locked decisions
63
+ Read: .forge/deferred-issues.md → known pre-existing failures (if exists; treat as advisory)
63
64
  ```
64
65
 
65
66
  ### 2. Truths
@@ -90,6 +91,10 @@ npm run build 2>&1
90
91
  npm run lint 2>&1
91
92
  ```
92
93
 
94
+ Cross-reference failures against `deferred-issues.md`:
95
+ - Match on test name or summary → advisory; label "Pre-existing (deferred: DI-{N})"
96
+ - No match → regression; include in Issues (Critical) and gaps
97
+
93
98
  ### 6. Anti-Pattern Scan
94
99
 
95
100
  | Pattern | Command | Severity |
@@ -10,6 +10,18 @@ description: "Build to plan with atomic commits, deviation rules, and context en
10
10
  - [ ] Context.md locked decisions noted
11
11
  - [ ] Constitution.md gates satisfied
12
12
  - [ ] Milestone state updated to `status: executing`
13
+ - [ ] Baseline snapshot captured (see below)
14
+
15
+ ## Baseline Snapshot
16
+
17
+ Run **before the first task begins**. Makes failure causality mechanical — no self-assessment.
18
+
19
+ 1. Run all non-advisory verification commands
20
+ 2. Record which tests/checks pass and which fail — this is the baseline
21
+ 3. After each commit: failures **not in baseline** = introduced by this task = **must fix under Rule 3**
22
+ 4. Failures **present in baseline** = pre-existing → append to `.forge/deferred-issues.md`, mark `status: pending`
23
+
24
+ Skip only if re-entering an in-progress execution and `deferred-issues.md` already documents all current failures.
13
25
 
14
26
  ## Deviation Rules
15
27
 
@@ -116,9 +128,9 @@ For each command, in order:
116
128
  ```
117
129
  Attempt 1:
118
130
  1. Read error output
119
- 2. Caused by current task?
120
- - YES → fix code, stage fixes, amend commit
121
- - NO mark advisory for this session; append to .forge/deferred-issues.md; continue
131
+ 2. In baseline snapshot?
132
+ - YES (pre-existing) mark advisory for this session; append to .forge/deferred-issues.md; continue
133
+ - NO (introduced by this task) fix code, stage fixes, amend commit
122
134
  3. Re-run command
123
135
  4. Pass → next command
124
136
  5. Fail → next attempt (up to max_retries)
@@ -133,7 +145,7 @@ After max_retries exhausted:
133
145
  Verification retries count toward the task's 3-strike limit. 2 strikes used = 1 verification retry max.
134
146
 
135
147
  ### Do NOT Fix
136
- - **Pre-existing failures** not from current task → mark advisory; append to `.forge/deferred-issues.md`
148
+ - **Pre-existing failures** present in baseline snapshot → mark advisory; append to `.forge/deferred-issues.md`
137
149
  - **Flaky tests** passing on re-run without changes → note in summary, no strike
138
150
  - **Unrelated warnings** (deprecation, non-blocking lint) → ignore
139
151
 
@@ -190,7 +202,8 @@ After completing all tasks in a plan:
190
202
  - src/components/Login.tsx (created)
191
203
 
192
204
  ## Notes
193
- [Anything the verifier should know]
205
+ [Genuine handoff context only: environment requirements, seed data, external services needed (e.g. "Redis must be running for auth tests").
206
+ Do NOT list test failures here — pre-existing failures belong in deferred-issues.md; task-introduced failures must be fixed before committing.]
194
207
  ```
195
208
 
196
209
  ## State Updates
@@ -21,8 +21,33 @@ Read: .forge/project.yml → tech stack (for running tests)
21
21
  Read: .forge/phases/m{M}-{N}-{name}/plan-{NN}.md → must_haves (truths, artifacts, key_links)
22
22
  Read: .forge/context.md → locked decisions
23
23
  Read: .forge/requirements.yml → requirement IDs for coverage check
24
+ Read: .forge/deferred-issues.md → known pre-existing failures (if exists; treat as advisory)
24
25
  ```
25
26
 
27
+ ## Deferred Issues
28
+
29
+ If `.forge/deferred-issues.md` exists, load it before running any tests.
30
+
31
+ When test results come in, cross-reference failures against known deferred issue IDs:
32
+
33
+ - **Failure matches a deferred ID** → advisory only — note as "Pre-existing (deferred: DI-{N})", do NOT fail verification for this
34
+ - **Failure not in deferred-issues.md** → regression introduced after the baseline — **FAIL** and include in gaps
35
+
36
+ In the Test Results section of the report, split accordingly:
37
+
38
+ ```markdown
39
+ ## Test Results
40
+ Run: {n} | Passed: {n} | Failed: {n}
41
+
42
+ ### Regressions (block release)
43
+ - {test name}: {error}
44
+
45
+ ### Pre-existing / Deferred (advisory)
46
+ - DI-{N}: {test name} — {summary from deferred-issues.md}
47
+ ```
48
+
49
+ Verdict: FAIL only triggers for regressions. Known deferred failures do not block a PASSED verdict — they are tracked separately and must be worked off via the refactor backlog or a dedicated fix phase.
50
+
26
51
  ## Interface Testing Gate
27
52
 
28
53
  Read `interface` from `.forge/project.yml`. If absent, `[]`, or `[none]` → skip gate, proceed to 3-level verification.