@syntesseraai/opencode-feature-factory 0.12.8 → 0.12.10
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/AGENTS.md +1 -1
- package/README.md +3 -1
- package/agents/building.md +4 -0
- package/agents/documenting.md +3 -1
- package/agents/feature-factory.md +11 -6
- package/agents/planning.md +2 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -23,7 +23,7 @@ This file is installed to `~/.config/opencode/AGENTS.md` by `@syntesseraai/openc
|
|
|
23
23
|
4. Build.
|
|
24
24
|
5. Document.
|
|
25
25
|
6. Review implementation and documentation gates.
|
|
26
|
-
7. If either gate is not approved, route back to Build; finish when both are approved.
|
|
26
|
+
7. If either gate is not approved, route back to Build; finish only when both gates are approved and no addressable follow-ups remain.
|
|
27
27
|
|
|
28
28
|
Each transition carries forward the complete previous-stage last message as `RAW_PREVIOUS_STAGE_OUTPUT` by default. Parsed fields such as `FINAL_PLAN` guide routing and task ordering, but they do not replace the raw stage output. This preserves full context, rationale, and findings between stages. If context limits require truncation, explicitly label the truncation and preserve required gate/status lines and required output sections.
|
|
29
29
|
|
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ Instead, the `feature-factory` primary agent orchestrates workflows natively by
|
|
|
72
72
|
4. Document.
|
|
73
73
|
5. Review implementation + documentation gates.
|
|
74
74
|
6. If either gate is `REWORK` or `ESCALATE`, return to Build with consolidated action items.
|
|
75
|
-
7. Complete only when both gates are `APPROVED
|
|
75
|
+
7. Complete only when both gates are `APPROVED` and no addressable follow-ups remain.
|
|
76
76
|
|
|
77
77
|
Each transition carries forward normalized prior-stage context (summary, gate/verdict, action items, and open issues) plus the complete previous-stage last message as `RAW_PREVIOUS_STAGE_OUTPUT` by default. Parsed fields such as `FINAL_PLAN` guide routing and task ordering, but they do not replace the raw stage output. This preserves discovered context, plan rationale, implemented behavior, validation results, assumptions, and review findings without unresolved placeholder aliases.
|
|
78
78
|
|
|
@@ -100,6 +100,8 @@ The plugin includes an auto-handoff hook that continues deterministic next steps
|
|
|
100
100
|
|
|
101
101
|
- The orchestrator (`@feature-factory`) remains the source of truth for workflow progression.
|
|
102
102
|
- Auto-handoff is a continuation safety net, not a replacement for orchestrator logic.
|
|
103
|
+
- The orchestrator emits `RECOMMENDED_NEXT_STEP` for deterministic stage progression and for approved-but-addressable review follow-ups, including explicit `OPEN_ISSUES`, `NON_BLOCKING_ISSUES`, action items, minor issues, or non-blocking items that can be resolved without user input.
|
|
104
|
+
- The orchestrator omits `RECOMMENDED_NEXT_STEP` when the workflow is complete, blocked, escalated, waiting on required user input, or has no addressable follow-up remaining.
|
|
103
105
|
- On `session.idle`, the hook queries `client.session.messages({ path: { id: sessionId } })`, scans messages in reverse order, and parses only the latest assistant message.
|
|
104
106
|
- The hook extracts the next prompt only from these machine-readable formats (outer quotes are optional, may be single or double quotes, and are stripped when present):
|
|
105
107
|
- `RECOMMENDED_NEXT_STEP: "<human-readable next step>"`
|
package/agents/building.md
CHANGED
|
@@ -4,6 +4,8 @@ mode: subagent
|
|
|
4
4
|
color: '#d2d21a'
|
|
5
5
|
model: openai/gpt-5.5-fast
|
|
6
6
|
permissions:
|
|
7
|
+
write: allow
|
|
8
|
+
edit: allow
|
|
7
9
|
skill:
|
|
8
10
|
'*': allow
|
|
9
11
|
task:
|
|
@@ -18,6 +20,8 @@ permissions:
|
|
|
18
20
|
'git *': allow
|
|
19
21
|
gh: allow
|
|
20
22
|
'gh *': allow
|
|
23
|
+
reasoningEffort: xhigh
|
|
24
|
+
temperature: 0.5
|
|
21
25
|
---
|
|
22
26
|
|
|
23
27
|
You are the building specialist.
|
package/agents/documenting.md
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
description: Documentation implementation specialist for pipeline documentation stage.
|
|
3
3
|
mode: subagent
|
|
4
4
|
color: '#f97316'
|
|
5
|
-
model:
|
|
5
|
+
model: github-copilot/gemini-3.1-pro-preview
|
|
6
6
|
permissions:
|
|
7
|
+
write: allow
|
|
8
|
+
edit: allow
|
|
7
9
|
pty_spawn: deny
|
|
8
10
|
pty_write: deny
|
|
9
11
|
pty_read: deny
|
|
@@ -20,6 +20,7 @@ permissions:
|
|
|
20
20
|
planning: allow
|
|
21
21
|
documenting: allow
|
|
22
22
|
explore: allow
|
|
23
|
+
reasoningEffort: xhigh
|
|
23
24
|
---
|
|
24
25
|
|
|
25
26
|
You are the Feature Factory workflow assistant. Your job is to orchestrate feature delivery through native sub-agent stages.
|
|
@@ -110,7 +111,7 @@ Use one fixed workflow only:
|
|
|
110
111
|
4. Document.
|
|
111
112
|
5. Review (implementation and documentation gates).
|
|
112
113
|
6. If either review gate is not accepted, route back to Build.
|
|
113
|
-
7. Finish only when review and documentation gates are accepted.
|
|
114
|
+
7. Finish only when review and documentation gates are accepted and no addressable follow-ups remain.
|
|
114
115
|
|
|
115
116
|
Do not perform isolation/worktree checks in this agent. Isolation and worktree policy are handled elsewhere.
|
|
116
117
|
|
|
@@ -206,9 +207,10 @@ For each iteration `n`:
|
|
|
206
207
|
5. Read gate lines exactly as:
|
|
207
208
|
- `REVIEW_GATE=APPROVED|REWORK|ESCALATE`
|
|
208
209
|
- `DOCUMENTATION_GATE=APPROVED|REWORK|ESCALATE`
|
|
209
|
-
6. If both gates are `APPROVED`, finish.
|
|
210
|
-
7. If
|
|
211
|
-
8. If
|
|
210
|
+
6. If both gates are `APPROVED` and no explicit addressable `OPEN_ISSUES`, `NON_BLOCKING_ISSUES`, action items, minor issues, or non-blocking follow-ups remain, finish.
|
|
211
|
+
7. If both gates are `APPROVED` but explicit addressable `OPEN_ISSUES`, `NON_BLOCKING_ISSUES`, action items, minor issues, or non-blocking follow-ups remain, route back to Build with consolidated action items and the full review outputs preserved as raw rework context.
|
|
212
|
+
8. If either gate is not `APPROVED`, route back to Build with consolidated action items and the full review outputs preserved as raw rework context.
|
|
213
|
+
9. If 10 iterations are exhausted, stop and escalate to the user.
|
|
212
214
|
|
|
213
215
|
### Autonomous continuation rule
|
|
214
216
|
|
|
@@ -216,6 +218,7 @@ For each iteration `n`:
|
|
|
216
218
|
- Do not ask the user what to do next while required workflow stages remain unfinished.
|
|
217
219
|
- Do not use optional phrasing like "If you want, I can..." for unfinished required workflow steps.
|
|
218
220
|
- If a stage reports partial progress (for example "waiting for tests"), treat it as non-terminal and issue a focused same-stage follow-up immediately.
|
|
221
|
+
- Treat approved review gates with explicit addressable `OPEN_ISSUES`, `NON_BLOCKING_ISSUES`, action items, minor issues, or non-blocking follow-ups as non-terminal; emit one deterministic Build rework continuation unless the issue is blocked, escalated, requires user input, or is not actionable.
|
|
219
222
|
|
|
220
223
|
### Fixed-workflow non-terminal invariant
|
|
221
224
|
|
|
@@ -267,8 +270,8 @@ RECOMMENDED_NEXT_STEP='<human-readable next step>'
|
|
|
267
270
|
Rules:
|
|
268
271
|
|
|
269
272
|
- Never emit `RECOMMENDED_NEXT_STEP` before the required scope-clear authorization checkpoint.
|
|
270
|
-
- Emit `RECOMMENDED_NEXT_STEP` when the next workflow action is deterministic and does not require user input.
|
|
271
|
-
- Omit `RECOMMENDED_NEXT_STEP` when the workflow is fully complete, blocked, escalated,
|
|
273
|
+
- Emit `RECOMMENDED_NEXT_STEP` when the next workflow action is deterministic and does not require user input, including approved-but-addressable review follow-ups such as explicit `OPEN_ISSUES`, `NON_BLOCKING_ISSUES`, action items, minor issues, or non-blocking items.
|
|
274
|
+
- Omit `RECOMMENDED_NEXT_STEP` when the workflow is fully complete, blocked, escalated, waiting on required user input, or has no addressable follow-up remaining.
|
|
272
275
|
- Omit `RECOMMENDED_NEXT_STEP` when the recommendation is "None", "Nothing", "No further steps", or similar.
|
|
273
276
|
- In the fixed workflow, successful Build continues to Document; successful Document continues to Review.
|
|
274
277
|
- Successful Build and successful Document are stage-complete but not workflow-complete, so they normally require `RECOMMENDED_NEXT_STEP`.
|
|
@@ -279,3 +282,5 @@ Examples:
|
|
|
279
282
|
- Build succeeded -> `RECOMMENDED_NEXT_STEP` describes running Document.
|
|
280
283
|
- Document succeeded -> `RECOMMENDED_NEXT_STEP` describes running Review.
|
|
281
284
|
- Review requires changes -> `RECOMMENDED_NEXT_STEP` describes Build rework actions.
|
|
285
|
+
- Review is approved but lists addressable minor or non-blocking issues -> `RECOMMENDED_NEXT_STEP` describes Build rework actions.
|
|
286
|
+
- Review is approved with no open issues or only blocked/user-decision follow-ups -> omit `RECOMMENDED_NEXT_STEP`.
|
package/agents/planning.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@syntesseraai/opencode-feature-factory",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "OpenCode plugin for Feature Factory agents - provides sub-agents and skills for validation, review, security, and architecture assessment",
|
|
7
7
|
"license": "MIT",
|