@warpgogol/forge 0.8.0 → 0.9.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.
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warpgogol/forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "Framework for documenting and implementing ideas — RFC/ADR governance, skills, and project bootstrapping.",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"rfc",
|
|
10
|
-
"adr",
|
|
11
|
-
"governance",
|
|
12
|
-
"skills",
|
|
13
|
-
"ai-agent",
|
|
14
|
-
"documentation",
|
|
15
|
-
"framework"
|
|
16
|
-
],
|
|
8
|
+
"keywords": ["rfc", "adr", "governance", "skills", "ai-agent", "documentation", "framework"],
|
|
17
9
|
"homepage": "https://warpgogol.com",
|
|
18
10
|
"main": "./src/index.ts",
|
|
19
11
|
"types": "./src/index.ts",
|
|
@@ -117,3 +117,68 @@ After completing implementation work, the operator may run a three-step session-
|
|
|
117
117
|
3. **`fo-handoff`** — what does the next agent need? (continuity document)
|
|
118
118
|
|
|
119
119
|
Most sessions need only `fo-doc-audit`. `fo-session-retro` is valuable after debugging sessions, exploratory work, or when non-obvious behaviors were discovered. `fo-handoff` is needed when work is incomplete and another agent will continue.
|
|
120
|
+
|
|
121
|
+
## Context checkpoint between batch items
|
|
122
|
+
|
|
123
|
+
When the orchestrator skill processes multiple documents (>=2), perform a context checkpoint after completing one document and before starting the next:
|
|
124
|
+
|
|
125
|
+
1. **Emit checkpoint block** — output a YAML-formatted block in conversation output with the following fields:
|
|
126
|
+
- `completed`: RFC/ADR id of the completed document
|
|
127
|
+
- `status`: final status (implemented, accepted, draft, failed)
|
|
128
|
+
- `commits`: list of commit SHAs produced for this document
|
|
129
|
+
- `lessons`: 1-3 short freeform sentences capturing key errors, root causes, patterns discovered, or validator quirks encountered during this document's pipeline run
|
|
130
|
+
- `dependencies`: cross-RFC dependency notes (e.g., "RFC-YYYY depends on RFC-XXXX for schema field Z") — empty if none
|
|
131
|
+
- `next`: id of the next document to process, or `null` if this was the last
|
|
132
|
+
2. **Release context** — explicitly treat all detailed context from the completed document as no longer actionable: file contents, search results, edit operations, intermediate reasoning. Retain only the checkpoint block. Release means treat as no longer actionable for reasoning, not delete or undo.
|
|
133
|
+
3. **Fresh start** — begin the next document with a fresh read phase: re-read the RFC file and all related documents (amends, supersedes, related RFCs, DNA invariants, AGENTS.md sections).
|
|
134
|
+
|
|
135
|
+
The checkpoint block doubles as a resume marker: when resuming an interrupted batch, scan conversation output for the last checkpoint block, extract completed ids and statuses, and continue with the next uncompleted item. If no checkpoint markers are found, fall back to the existing resume logic (git log, file inspection, frontmatter status).
|
|
136
|
+
|
|
137
|
+
**Only applies to batch processing (>=2 documents).** Single-document invocations do not need a checkpoint — the context is already fresh at the start.
|
|
138
|
+
|
|
139
|
+
## Step-level context checkpoint during implementation
|
|
140
|
+
|
|
141
|
+
When the orchestrator skill implements a single RFC with >=5 plan steps, perform a step checkpoint after completing each plan step and committing:
|
|
142
|
+
|
|
143
|
+
1. **Emit step-checkpoint block** — output a YAML-formatted block in conversation output with the following fields:
|
|
144
|
+
- `rfc`: RFC id being implemented
|
|
145
|
+
- `step`: plan step number (e.g., 3)
|
|
146
|
+
- `title`: plan step title
|
|
147
|
+
- `commit`: SHA of the commit produced by this step
|
|
148
|
+
- `decisions`: 1-3 short freeform sentences capturing key micro-decisions made during this step (e.g., "used flag instead of new command", "skipped validator X because it's in package Y, not in scope")
|
|
149
|
+
- `errors`: list of errors encountered and fixed during this step — empty if none
|
|
150
|
+
- `nextStep`: number of the next plan step, or `null` if this was the last
|
|
151
|
+
2. **Release step context** — treat all detailed context from the completed step as no longer actionable: codebase search results, file reads, edit operations, validation output. Retain only the step-checkpoint block and the RFC's plan file.
|
|
152
|
+
3. **Fresh start** — begin the next plan step with a fresh read of the plan file and the specific files the next step touches.
|
|
153
|
+
|
|
154
|
+
The step checkpoint doubles as a resume marker: when resuming an interrupted implementation, scan conversation output for the last step-checkpoint block, extract the completed step number, and resume from the next step.
|
|
155
|
+
|
|
156
|
+
**Only applies to plans with >=5 steps.** Small plans (4 or fewer steps) do not need step checkpoints — the context is manageable without them.
|
|
157
|
+
|
|
158
|
+
## Progress beacon
|
|
159
|
+
|
|
160
|
+
The orchestrator skill emits a one-line progress beacon after completing each pipeline step (audit, enhance, plan, implement, review, fix) for each RFC. The beacon is informational only — it does not pause the pipeline, does not request operator input, and does not release context.
|
|
161
|
+
|
|
162
|
+
Format: `[beacon] RFC-XXXX | <step> ✓ | next: <next-step>`
|
|
163
|
+
|
|
164
|
+
For failed steps being fixed: `[beacon] RFC-XXXX | <step> ✗ (fixing...) | next: <next-step>`
|
|
165
|
+
|
|
166
|
+
The beacon text must use `aiLanguage` per the language policy.
|
|
167
|
+
|
|
168
|
+
## Error checkpoint for pipeline step failures
|
|
169
|
+
|
|
170
|
+
When a pipeline step fails and cannot be auto-fixed within 2 attempts (per §Command execution timeout discipline), emit a structured error checkpoint block in conversation output:
|
|
171
|
+
|
|
172
|
+
1. **Emit error checkpoint** — output a YAML block with: rfc, step, planStep (if within implement phase), error (command, exitCode, summary, attempts), partialState (filesModified, commits, rfcStatus), resumePoint.
|
|
173
|
+
2. **Stop the pipeline** — do not continue to the next pipeline step. The error is not auto-fixable; continuing would compound the problem. This is an **explicit exception** to the orchestrator's "no pauses between pipeline steps" constraint. The "no pauses" directive assumes the pipeline can proceed; when an error is unfixable after 2 attempts, continuing is impossible and the exception is justified. The pause is for error reporting, not for optional operator input.
|
|
174
|
+
3. **Report to operator** — present the error checkpoint in `aiLanguage` and ask the operator how to proceed: fix manually, skip the step, or abort the RFC.
|
|
175
|
+
|
|
176
|
+
The error checkpoint doubles as a resume marker: when resuming an interrupted session, scan for the last error checkpoint. If found, resume from the failed step using the partialState and resumePoint fields.
|
|
177
|
+
|
|
178
|
+
## Batch plan preview
|
|
179
|
+
|
|
180
|
+
When the orchestrator skill processes multiple documents (>=2), emit a batch plan preview before starting the first document. The preview is a table showing: processing order, document id, type, complexity estimate, dependencies, and notes.
|
|
181
|
+
|
|
182
|
+
The preview is informational — it does not pause for operator approval unless the operator explicitly requests confirmation. The operator's invocation of the orchestrator is the instruction to proceed.
|
|
183
|
+
|
|
184
|
+
The preview text must use `aiLanguage` per the language policy.
|
|
@@ -54,6 +54,12 @@ Record the document id(s) and type(s) (RFC or ADR). If multiple documents were c
|
|
|
54
54
|
|
|
55
55
|
For each document, run the full pipeline inline. The pipeline differs for RFCs and ADRs.
|
|
56
56
|
|
|
57
|
+
**Between batch items:** After completing one document's pipeline and before starting the next, perform a context checkpoint per `_shared/fo-pipeline-conventions.md` §Context checkpoint between batch items. Emit the checkpoint block, release completed-item context, and start the next item with a fresh read phase. This does not pause for operator input — the checkpoint is an agent-internal context management step, not a user interaction.
|
|
58
|
+
|
|
59
|
+
**Batch plan preview:** When processing >=2 documents, emit a batch plan preview per `_shared/fo-pipeline-conventions.md` §Batch plan preview before starting the first document.
|
|
60
|
+
|
|
61
|
+
**Progress beacon:** After completing each pipeline step, emit a one-line progress beacon per `_shared/fo-pipeline-conventions.md` §Progress beacon. The beacon is informational — it does not pause the pipeline.
|
|
62
|
+
|
|
57
63
|
#### RFC pipeline
|
|
58
64
|
|
|
59
65
|
Execute these steps **in order**, invoking each skill inline via the `skill` tool. Do not stop between steps. Do not ask the operator "shall I proceed?" between steps — the operator's invocation of this skill IS the instruction to proceed through the entire pipeline.
|
|
@@ -80,6 +86,10 @@ Invoke `fo-idea-implement` on the RFC. Pass the RFC id. Wait for it to complete.
|
|
|
80
86
|
|
|
81
87
|
Do not invoke `fo-review` or `fo-fix` separately — they are built into `fo-idea-implement`.
|
|
82
88
|
|
|
89
|
+
**Step-level checkpoints:** When implementing an RFC with >=5 plan steps, perform a step checkpoint after each plan step per `_shared/fo-pipeline-conventions.md` §Step-level context checkpoint during implementation. Emit the step-checkpoint block, release completed-step context, and start the next step with a fresh plan read.
|
|
90
|
+
|
|
91
|
+
**Error checkpoint:** If a pipeline step fails after 2 auto-fix attempts, emit a structured error checkpoint per `_shared/fo-pipeline-conventions.md` §Error checkpoint for pipeline step failures. Stop the pipeline and report to the operator.
|
|
92
|
+
|
|
83
93
|
**Fallback verification (MANDATORY).** After `fo-idea-implement` returns, verify that review and fix were actually executed:
|
|
84
94
|
|
|
85
95
|
1. Check for a review report in `docs/reviews/code/` dated today or with a `diffRange` covering this session's commits.
|