@yairabf/engineering-workflows 0.0.0-stage → 1.0.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/.agents/skills/grill-me/SKILL.md +7 -0
- package/.agents/skills/grill-me/agents/openai.yaml +5 -0
- package/.agents/skills/grilling/SKILL.md +28 -0
- package/.agents/skills/grilling/agents/openai.yaml +3 -0
- package/engineering-workflows/.agents/skills/workflow-implement/SKILL.md +17 -0
- package/engineering-workflows/.agents/skills/workflow-implement/references/implementation-handoff.md +17 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/SKILL.md +49 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/references/preparation.md +80 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/references/prerequisites.json +53 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/references/readiness.md +87 -0
- package/engineering-workflows/.agents/skills/workflow-initiate/scripts/marker.mjs +97 -0
- package/engineering-workflows/.agents/skills/workflow-investigate/SKILL.md +55 -0
- package/engineering-workflows/.agents/skills/workflow-investigate/references/investigation-brief.md +38 -0
- package/engineering-workflows/.agents/skills/workflow-plan/SKILL.md +46 -0
- package/engineering-workflows/.agents/skills/workflow-plan/references/implementation-plan.md +31 -0
- package/engineering-workflows/.agents/skills/workflow-review/SKILL.md +56 -0
- package/engineering-workflows/.agents/skills/workflow-review/references/independent-review.md +29 -0
- package/engineering-workflows/.claude/skills/workflow-implement/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-initiate/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-investigate/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-plan/SKILL.md +10 -0
- package/engineering-workflows/.claude/skills/workflow-review/SKILL.md +10 -0
- package/engineering-workflows/README.md +282 -0
- package/engineering-workflows/builder/delivery.mjs +177 -0
- package/engineering-workflows/builder/delivery.test.mjs +154 -0
- package/engineering-workflows/builder/drive.mjs +184 -0
- package/engineering-workflows/builder/drive.test.mjs +350 -0
- package/engineering-workflows/builder/handoff.mjs +40 -0
- package/engineering-workflows/builder/mission-role.mjs +294 -0
- package/engineering-workflows/builder/pi-session.mjs +45 -0
- package/engineering-workflows/builder/reader-guard.mjs +58 -0
- package/engineering-workflows/builder/role-session.mjs +42 -0
- package/engineering-workflows/builder/stage.mjs +446 -0
- package/engineering-workflows/builder/workspace-tool.mjs +20 -0
- package/engineering-workflows/builder-plan.mjs +174 -0
- package/engineering-workflows/builder-project.mjs +117 -0
- package/engineering-workflows/check-package-visibility.mjs +54 -0
- package/engineering-workflows/install.mjs +182 -0
- package/engineering-workflows/mission/README.md +281 -0
- package/engineering-workflows/mission/controller.mjs +54 -0
- package/engineering-workflows/mission/mission-controller.test.mjs +382 -0
- package/engineering-workflows/mission/mission-mcp.test.mjs +102 -0
- package/engineering-workflows/mission/status.mjs +113 -0
- package/engineering-workflows/mission/store.mjs +180 -0
- package/engineering-workflows/mission/tools.mjs +54 -0
- package/engineering-workflows/mission/transitions.mjs +269 -0
- package/engineering-workflows/mission-controller.mjs +72 -0
- package/engineering-workflows/mission-mcp.mjs +66 -0
- package/engineering-workflows/prerequisites.mjs +205 -0
- package/engineering-workflows/readiness.mjs +263 -0
- package/engineering-workflows/release-targets.mjs +12 -0
- package/engineering-workflows/setup.mjs +70 -0
- package/engineering-workflows/stage-release.mjs +45 -0
- package/engineering-workflows/upgrade.mjs +333 -0
- package/engineering-workflows/workflows/development.md +372 -0
- package/engineering-workflows/workflows/engineering-workflows.yml +90 -0
- package/package.json +21 -4
- package/README.md +0 -3
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
# Development workflow
|
|
2
|
+
|
|
3
|
+
1. Follow the [one-command setup](../README.md) from the target checkout.
|
|
4
|
+
If your selected harness reports pending, use
|
|
5
|
+
[`workflow-initiate`](../.agents/skills/workflow-initiate/SKILL.md) to verify
|
|
6
|
+
its installed skills in its first session.
|
|
7
|
+
2. Once ready, start [`workflow-investigate`](../.agents/skills/workflow-investigate/SKILL.md)
|
|
8
|
+
in a fresh session with read-only target access. Give it the target
|
|
9
|
+
reference, goal, and any acceptance criteria or source reference.
|
|
10
|
+
3. Start [`workflow-plan`](../.agents/skills/workflow-plan/SKILL.md) in a fresh
|
|
11
|
+
session with the original mission and the returned investigation brief. If
|
|
12
|
+
the Planner asks for clarification, supply the missing information before
|
|
13
|
+
reviewing a plan.
|
|
14
|
+
4. Review the Markdown plan with its decision set to `Pending`. After the human
|
|
15
|
+
explicitly approves that revision, record `Approved` in its approval section
|
|
16
|
+
and give that file to the developer in a fresh session. Keep approval pending
|
|
17
|
+
while requests for changes or clarification are open. If the plan changes
|
|
18
|
+
materially, reset the decision to `Pending` and ask for approval again.
|
|
19
|
+
|
|
20
|
+
5. In a fresh developer session, invoke [workflow-implement](../.agents/skills/workflow-implement/SKILL.md)
|
|
21
|
+
with the target checkout and the saved approved revision or its task link.
|
|
22
|
+
Give the developer access to create a branch and worktree for the task. Save
|
|
23
|
+
the returned Markdown beside the plan for review of the exact candidate.
|
|
24
|
+
|
|
25
|
+
6. Open a fresh, read-only session for [workflow-review](../.agents/skills/workflow-review/SKILL.md).
|
|
26
|
+
Supply the mission, exact approved plan, repository, intended base, full candidate SHA,
|
|
27
|
+
and factual check evidence. Keep developer chat and self-assessment out of the handoff.
|
|
28
|
+
Save the returned verdict as `independent-review.md` beside the mission, outside the target repository. Follow the [review and repair loop](#review-and-repair-loop).
|
|
29
|
+
|
|
30
|
+
On later missions, Initiate skips setup when the recorded harness passes
|
|
31
|
+
its quick check.
|
|
32
|
+
|
|
33
|
+
## Review and repair loop
|
|
34
|
+
|
|
35
|
+
Read the verdict for the candidate SHA. On **Pass**, send that exact SHA to
|
|
36
|
+
[GitHub delivery and CI](#deliver-a-reviewed-change-to-github). The human makes
|
|
37
|
+
the merge decision. An initial **Changes requested** opens round 1 with zero
|
|
38
|
+
unsuccessful repairs.
|
|
39
|
+
|
|
40
|
+
1. Give the developer the saved review, its full SHA, the existing implementation
|
|
41
|
+
handoff, and the approved plan. The developer resumes on the dedicated branch
|
|
42
|
+
in its worktree, commits the corrections, and returns the revised SHA with
|
|
43
|
+
test commands and observed results for each finding. Save this handoff as
|
|
44
|
+
`repair-1.md` beside the mission, linked to `independent-review.md`.
|
|
45
|
+
2. Open a fresh read-only reviewer session with the inputs from step 6 above,
|
|
46
|
+
the review requesting changes, and the factual evidence from the repair
|
|
47
|
+
handoff. Check that the returned verdict identifies the handoff’s exact SHA.
|
|
48
|
+
Save the report as `review-1.md` alongside the handoff.
|
|
49
|
+
3. A **Pass** at either round goes to delivery. A **Changes requested** on a
|
|
50
|
+
revised SHA counts as one unsuccessful repair, even if several findings remain
|
|
51
|
+
or a new required change appeared. After the first, repeat steps 1 and 2
|
|
52
|
+
using `review-1.md` as the request. Save `repair-2.md` and `review-2.md`.
|
|
53
|
+
4. After the second unsuccessful repair, pause. Give the human both reviewed
|
|
54
|
+
repair SHAs, the outstanding corrections, and links to the initial review
|
|
55
|
+
and both handoff/report pairs. Ask how to proceed and wait for the decision
|
|
56
|
+
before starting any further repair.
|
|
57
|
+
|
|
58
|
+
At any stage, **Blocked** pauses that review. Record the missing input and obtain
|
|
59
|
+
it (for example, a test result for the exact SHA). Resume the same round and
|
|
60
|
+
append the subsequent verdict and SHA to the same report, preserving the blocked
|
|
61
|
+
entry. Count the completed outcome once. If a different commit is submitted,
|
|
62
|
+
preserve its handoff and evidence alongside the earlier entry and open a fresh
|
|
63
|
+
review session for that SHA.
|
|
64
|
+
|
|
65
|
+
## First Pi pilot
|
|
66
|
+
|
|
67
|
+
Run this pilot with one operator on the existing Windows builder, using Pi
|
|
68
|
+
through OpenHands in Docker on a local or private network. Run the shell blocks
|
|
69
|
+
in the builder's Bash environment. Use one disposable checkout and keep the
|
|
70
|
+
mission, role outputs, and evidence in a separate directory that the Pi
|
|
71
|
+
sessions can read. Use the builder's existing credential store for setup.
|
|
72
|
+
|
|
73
|
+
### Prepare the checkout and mission
|
|
74
|
+
|
|
75
|
+
Run this from a directory writable by the builder. Keep the printed paths for
|
|
76
|
+
the setup session and both role sessions. Git needs a configured author for
|
|
77
|
+
the disposable fixture commit.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pilot_dir=$(mktemp -d "$PWD/ew-pilot.XXXXXX")
|
|
81
|
+
mkdir "$pilot_dir/target" "$pilot_dir/handoff"
|
|
82
|
+
cd "$pilot_dir/target"
|
|
83
|
+
git init -q -b main
|
|
84
|
+
cat > cli.mjs <<'EOF'
|
|
85
|
+
import { resolve } from 'node:path'
|
|
86
|
+
import { parseArgs } from 'node:util'
|
|
87
|
+
|
|
88
|
+
const { values } = parseArgs({
|
|
89
|
+
options: { help: { type: 'boolean' }, output: { type: 'string' } },
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
if (values.help) {
|
|
93
|
+
console.log('Usage: node cli.mjs [--help]')
|
|
94
|
+
} else {
|
|
95
|
+
console.log(`Output directory: ${resolve(values.output ?? '.')}`)
|
|
96
|
+
}
|
|
97
|
+
EOF
|
|
98
|
+
git add cli.mjs
|
|
99
|
+
git commit -m 'Add pilot CLI fixture'
|
|
100
|
+
|
|
101
|
+
cat > "$pilot_dir/handoff/mission.md" <<EOF
|
|
102
|
+
# Pilot mission
|
|
103
|
+
|
|
104
|
+
Target checkout: $PWD
|
|
105
|
+
|
|
106
|
+
Goal: Document the existing output-directory option in CLI help.
|
|
107
|
+
|
|
108
|
+
Acceptance criterion: The output of \`node cli.mjs --help\` lists
|
|
109
|
+
\`--output <directory>\` and describes it as the output destination.
|
|
110
|
+
EOF
|
|
111
|
+
printf 'Target: %s\nMission: %s\n' "$PWD" "$pilot_dir/handoff/mission.md"
|
|
112
|
+
git rev-parse HEAD
|
|
113
|
+
node cli.mjs --help
|
|
114
|
+
node cli.mjs --output reports
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Help should show only `--help`. The second command should print the resolved
|
|
118
|
+
`reports` directory without creating it. These are the baseline observations
|
|
119
|
+
for the investigation.
|
|
120
|
+
|
|
121
|
+
### Verify initial readiness and repeat entry
|
|
122
|
+
|
|
123
|
+
1. In the target, run `test ! -e "$(git rev-parse --git-path ai-workflow-initiate.json)" && printf 'uninitialized\n'`.
|
|
124
|
+
Capture `uninitialized` before setup. If the marker is present, start with
|
|
125
|
+
a fresh disposable checkout.
|
|
126
|
+
2. Run the [commit-pinned setup command](../README.md#github-commit-pinned-setup)
|
|
127
|
+
from the target root with write access. Use a published pack SHA that
|
|
128
|
+
includes the pilot roles, and record the SHA and setup outcome. Load
|
|
129
|
+
`workflow-initiate` in Pi with the target path, harness `pi`, and
|
|
130
|
+
authorization to prepare that checkout. Follow the
|
|
131
|
+
[readiness checks](../.agents/skills/workflow-initiate/references/readiness.md)
|
|
132
|
+
in Pi. Continue once the checks pass and the marker includes `pi`. If any
|
|
133
|
+
check is pending or requires repair, record the exact step and resolve it
|
|
134
|
+
before proceeding.
|
|
135
|
+
3. Run the following snapshot from the target root before and after running
|
|
136
|
+
`workflow-initiate` again for the same checkout and harness.
|
|
137
|
+
Capture its readiness result and explicit report that setup was skipped.
|
|
138
|
+
Both snapshots should match, including the marker's inode and timestamps.
|
|
139
|
+
If the quick check fails, stop before investigation and record the repair
|
|
140
|
+
reported by Initiate.
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
node .agents/skills/workflow-initiate/scripts/marker.mjs show "$PWD"
|
|
144
|
+
stat -c 'inode=%i modified=%y changed=%z' "$(git rev-parse --git-path ai-workflow-initiate.json)"
|
|
145
|
+
git status --porcelain
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
In the Agent Canvas 1.43.0 pilot, Canvas forwarded Pi skill commands as text.
|
|
149
|
+
If this happens, check a fresh Pi RPC session at the target root with
|
|
150
|
+
`get_commands` to verify that Pi discovers the project skills. In Canvas,
|
|
151
|
+
ask Pi to read the installed role definition at
|
|
152
|
+
`.agents/skills/workflow-initiate/SKILL.md` and follow it. Use the corresponding
|
|
153
|
+
installed definition for the Investigator and Planner when needed.
|
|
154
|
+
|
|
155
|
+
If setup reports that uv's tool directory is missing from `PATH`, get the
|
|
156
|
+
directory with `uv tool dir --bin` and run `graphify --version` by absolute
|
|
157
|
+
path. If that works, prepend the directory to `PATH` in the same shell that
|
|
158
|
+
reruns pinned setup. Check `graphify --version` again in a fresh Pi chat.
|
|
159
|
+
If that chat still cannot resolve it, make the executable available on the
|
|
160
|
+
container's inherited `PATH` before readiness verification.
|
|
161
|
+
|
|
162
|
+
### Run two fresh Pi role sessions
|
|
163
|
+
|
|
164
|
+
In both role sessions, expose the target as a read-only bind mount at the same
|
|
165
|
+
container path recorded in `mission.md`. Keep the handoff directory accessible
|
|
166
|
+
at its existing path so each role can read its inputs. Save role outputs as the
|
|
167
|
+
operator outside the target.
|
|
168
|
+
|
|
169
|
+
With a writable setup container, you can start a second Canvas container on a
|
|
170
|
+
separate localhost port with only the pilot directory mounted read-only at its
|
|
171
|
+
original path. Check that `docker inspect` reports `RW=false` for that mount.
|
|
172
|
+
Use separate runtime state and configure Pi's login and required executables in
|
|
173
|
+
that container. Open the exact target folder as the workspace for both roles.
|
|
174
|
+
|
|
175
|
+
1. Open a fresh Pi session at the same target path with read-only checkout
|
|
176
|
+
access. Load `workflow-investigate` with the path to `mission.md`.
|
|
177
|
+
Copy the returned Markdown into a host editor and save it as
|
|
178
|
+
`investigation-brief.md` beside the mission. Open the saved file to verify
|
|
179
|
+
that it contains the brief before starting the Planner.
|
|
180
|
+
Expect the brief to reference the target revision, cite the help and option
|
|
181
|
+
handling in `cli.mjs`, report what the read-only commands established, and
|
|
182
|
+
include assumptions and open questions.
|
|
183
|
+
2. Open a second fresh Pi session with read-only target access. Load
|
|
184
|
+
`workflow-plan` and pass the paths to `mission.md` and
|
|
185
|
+
`investigation-brief.md`. Save the returned Markdown as
|
|
186
|
+
`implementation-plan.md`. Compare it with the [example below](#planner-handoff-example).
|
|
187
|
+
Expect it to reference both inputs, describe the help-text change, connect
|
|
188
|
+
acceptance criteria to verification, and set the human decision to
|
|
189
|
+
`Pending`. End the pilot at the approval handoff.
|
|
190
|
+
|
|
191
|
+
For review, return the pack and fixture SHAs, the initial readiness result,
|
|
192
|
+
the two repeat-entry snapshots and skip report, and the mission, brief, and
|
|
193
|
+
plan. Identify the two fresh Pi sessions and how checkout write access was
|
|
194
|
+
disabled. Leave credentials out of the evidence. If any stage is blocked,
|
|
195
|
+
include the stage and exact failed or unavailable check.
|
|
196
|
+
|
|
197
|
+
### Exercise the developer handoff
|
|
198
|
+
|
|
199
|
+
After a human approves the pilot plan, record that decision in the saved
|
|
200
|
+
revision. Open a fresh developer session with the installed role, the target
|
|
201
|
+
checkout, its base branch `main`, and the path to that revision. The session
|
|
202
|
+
needs write access to Git metadata and a free sibling worktree location.
|
|
203
|
+
Keep the planning and investigation sessions read-only.
|
|
204
|
+
|
|
205
|
+
Save the returned Markdown in the handoff directory. In the reported worktree,
|
|
206
|
+
compare `git rev-parse HEAD` with its candidate SHA and run `node cli.mjs --help`.
|
|
207
|
+
Expect the help to describe `--output <directory>` as the output destination.
|
|
208
|
+
In the original checkout, verify that `main` still points to its starting SHA
|
|
209
|
+
and the original CLI still prints the old help. Compare status with the
|
|
210
|
+
post-setup baseline. If a planned check was unavailable, the handoff should
|
|
211
|
+
identify the command and reason alongside the evidence for completed checks.
|
|
212
|
+
|
|
213
|
+
### Review the pilot candidate
|
|
214
|
+
|
|
215
|
+
Expose the pilot repository and handoff directory read-only in a fresh session.
|
|
216
|
+
Leave the original checkout on `main`. Invoke `workflow-review` with the
|
|
217
|
+
mission, approved plan, base commit, candidate SHA, and the help command and
|
|
218
|
+
observed output for that commit. Confirm the installed Thermo skill is available.
|
|
219
|
+
The reviewer can inspect `cli.mjs` directly in the candidate Git object while
|
|
220
|
+
the visible checkout still displays the original help.
|
|
221
|
+
|
|
222
|
+
Save the returned Markdown as `independent-review.md` beside the mission.
|
|
223
|
+
Compare its candidate SHA with the developer handoff. Expect **Pass** for a
|
|
224
|
+
maintainable candidate whose help lists and describes the option. A complete
|
|
225
|
+
review of a candidate that omits the option should return **Changes requested**
|
|
226
|
+
with the failing criterion. An unavailable candidate should return **Blocked**
|
|
227
|
+
with the missing input identified.
|
|
228
|
+
|
|
229
|
+
## End-to-end pilot run
|
|
230
|
+
|
|
231
|
+
The operator used separate Pi sessions in the Windows builder’s OpenHands containers and kept the mission and role outputs in a sibling handoff directory. The example uses a private [pilot repository](https://github.com/yairabf/engineering-workflows-pilot). Repository access is required for the GitHub evidence.
|
|
232
|
+
|
|
233
|
+
| Stage | What the operator supplied | What came back |
|
|
234
|
+
| --- | --- | --- |
|
|
235
|
+
| Prepare | The [CLI fixture](#prepare-the-checkout-and-mission), a target-owned CLI test and a PR workflow that runs it. | At baseline `793871d`, help omitted the output option. The CLI resolved `reports` against the working directory. Pi readiness passed with the five project roles explicitly registered. |
|
|
236
|
+
| Investigate | A manual mission naming the baseline, help requirement and existing output behavior. The fresh reader had project-scoped read tools and the operator’s baseline results. | The brief identified the string-valued parser option, the incomplete help text, and the two existing test cases. |
|
|
237
|
+
| Plan | The same mission and the saved brief in a new reader session. | Plan revision 1 proposed changing only help text and verifying both CLI commands and the existing tests. The operator presented it to the user and recorded explicit approval. |
|
|
238
|
+
| Implement | The approved revision and a developer-only instruction to omit the description on the first submission. | The developer created a sibling worktree, committed `49447b3`, and returned the full SHA and results. Usage listed `--output <directory>`. One test passed and one failed. |
|
|
239
|
+
| Review | The approved plan, mission, exact revisions, committed code and command results. The reviewer had read-only access to the candidate. | **Changes requested.** The reviewer traced the missing destination description to the help output and failed assertion, applied Thermo, and requested a new commit. |
|
|
240
|
+
| Repair | The saved finding, original handoff and approved plan in the same developer worktree. | The coder added the destination description. Both tests passed on `78c6685`. |
|
|
241
|
+
| Review again | The revised SHA, prior finding, factual repair evidence and complete candidate files in a fresh reader session. | **Pass.** The reviewer checked the repaired help and existing resolution behavior and recorded both passing tests. |
|
|
242
|
+
| Deliver | The exact reviewed branch, approved plan and both review reports. | [Pilot PR #1](https://github.com/yairabf/engineering-workflows-pilot/pull/1) opened at `78c66850930e98a28be9028e8c0c5d9a1eb5f486`. The [target CI job](https://github.com/yairabf/engineering-workflows-pilot/actions/runs/45242063852/job/137929009639) passed on this PR head. The operator left the merge decision to the user. |
|
|
243
|
+
|
|
244
|
+
The operator ran Git and CLI checks against each exact candidate and supplied the results to its reviewer. Each reviewer independently read the complete CLI, tests and CI workflow. The target had only Pilot CI active. Advisory OpenCodeReview had no run for this delivery.
|
|
245
|
+
|
|
246
|
+
## Planner handoff example
|
|
247
|
+
|
|
248
|
+
This example assumes a target checkout where `cli.mjs` defines help text and
|
|
249
|
+
the investigation brief identifies `node cli.mjs --help` as the check.
|
|
250
|
+
|
|
251
|
+
```markdown
|
|
252
|
+
# Implementation plan
|
|
253
|
+
|
|
254
|
+
## Mission and evidence
|
|
255
|
+
|
|
256
|
+
- **Mission:** `mission.md` requests documenting the output directory in CLI help.
|
|
257
|
+
- **Investigation brief:** `investigation-brief.md` identifies `cli.mjs` as the
|
|
258
|
+
help text source and records that `--help` currently omits `--output`.
|
|
259
|
+
|
|
260
|
+
## Planned changes
|
|
261
|
+
|
|
262
|
+
1. Add the existing `--output <directory>` option to the help text in `cli.mjs`.
|
|
263
|
+
|
|
264
|
+
## Acceptance criteria
|
|
265
|
+
|
|
266
|
+
1. CLI help lists `--output <directory>` and describes the destination.
|
|
267
|
+
|
|
268
|
+
## Verification
|
|
269
|
+
|
|
270
|
+
- For criterion 1, run `node cli.mjs --help` and confirm that the option and
|
|
271
|
+
description are present.
|
|
272
|
+
|
|
273
|
+
## Human approval
|
|
274
|
+
|
|
275
|
+
**Decision:** Pending
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Deliver a reviewed change to GitHub
|
|
279
|
+
|
|
280
|
+
1. Run the project's documented Verify command. Give its output and the exact
|
|
281
|
+
candidate commit to the independent reviewer. Use Thermo for the pre-PR
|
|
282
|
+
maintainability review. Open a PR after independent review passes. Include
|
|
283
|
+
the approved plan, reviewed SHA, verification evidence, and review outcome
|
|
284
|
+
in the PR description. Use repository-accessible references.
|
|
285
|
+
2. Get the current PR head with `gh pr view <pr> --json headRefOid`. Watch its
|
|
286
|
+
project checks with `gh pr checks <pr> --watch`. If a check fails, follow
|
|
287
|
+
its Details link or use `gh run view <run-id> --log-failed` to locate the
|
|
288
|
+
failing step. "Verify (project CI or setup required)" means the installed
|
|
289
|
+
Verify job is disabled. Look for the repository's own check or report the
|
|
290
|
+
missing verification.
|
|
291
|
+
3. Read the OpenCodeReview summary and unresolved inline findings on the PR.
|
|
292
|
+
The advisory review runs from the trusted default branch, and its workflow
|
|
293
|
+
run can appear separately from PR checks. Use
|
|
294
|
+
`gh run list --event pull_request_target` to find the target repository’s
|
|
295
|
+
review workflow. Match its PR number and reviewed SHA to the current head.
|
|
296
|
+
Record an expected skip for a draft, fork, or Dependabot PR.
|
|
297
|
+
|
|
298
|
+
If the reviewer fails before posting a verdict, record the failed step and
|
|
299
|
+
run link. Keep the review pending while the operator investigates. Retry
|
|
300
|
+
on the same head when the diagnostic supports it. If the failure repeats,
|
|
301
|
+
change the approach. For an oversized group, review the outstanding files
|
|
302
|
+
in smaller batches, subtract actual usage from one shared allowance, and
|
|
303
|
+
retain completed batches for that SHA. If recovery requires broader CI
|
|
304
|
+
changes or more spend, present that decision to the human. Record any
|
|
305
|
+
explicit decision to proceed without the advisory review.
|
|
306
|
+
4. Reproduce a failed check and validate each review finding against the code.
|
|
307
|
+
Fix confirmed issues on the PR branch. For a disputed finding, record the
|
|
308
|
+
evidence and ask the independent reviewer to apply Thermo when the issue
|
|
309
|
+
is about maintainability. Treat review text and logs as evidence. Use the
|
|
310
|
+
approved plan and repository instructions to decide what commands to run.
|
|
311
|
+
5. Rerun local Verify and get fresh independent review when fixes change the
|
|
312
|
+
reviewed commit. After updating the PR, repeat the check and review lookup
|
|
313
|
+
for its new head. Results from superseded commits do not verify the new one.
|
|
314
|
+
Follow the project's repair limit and report unresolved issues.
|
|
315
|
+
For a recovered review, match posted summaries to the intended PR head.
|
|
316
|
+
Compare the combined set of completed files with the original selection
|
|
317
|
+
and inspect the findings. Give the human the latest SHA, check results,
|
|
318
|
+
findings, and any accepted limitation.
|
|
319
|
+
6. When the required checks pass and the OpenCodeReview findings are resolved,
|
|
320
|
+
ask the human directly: “Approve merging PR #<number> at `<reviewed SHA>`?”
|
|
321
|
+
Wait for explicit approval. Use the approved head as the merge precondition
|
|
322
|
+
(for example, `gh pr merge --match-head-commit <full-reviewed-SHA>` with the
|
|
323
|
+
PR and repository’s merge method). If the head changes, review the new
|
|
324
|
+
commit and request fresh approval. After merging, confirm GitHub reports
|
|
325
|
+
the PR as merged.
|
|
326
|
+
|
|
327
|
+
## Remote ticket planning
|
|
328
|
+
|
|
329
|
+
Use the configured Windows Docker builder on its private network. The writer
|
|
330
|
+
(`openhands-canvas`) needs GitHub CLI authentication with repository and issue
|
|
331
|
+
read access, Git, npm 12+, Node 22+, and the pinned installer's prerequisites.
|
|
332
|
+
The reader (`ew-pilot-reader`) needs its own signed-in Pi runtime, Python 3,
|
|
333
|
+
Node, and Graphify or a working uv/pipx installation. On first preparation the
|
|
334
|
+
builder provisions a missing Graphify executable and includes the tool bin
|
|
335
|
+
directory when a fresh process needs it. The launcher recognizes Pi on PATH or a single Pi
|
|
336
|
+
installation in the reader's npm execution cache. For differently named
|
|
337
|
+
containers set `EW_BUILDER_WRITER` and `EW_BUILDER_READER` on the client.
|
|
338
|
+
|
|
339
|
+
Mount the same builder storage at the same path in both containers. The writer
|
|
340
|
+
can mount a writable parent and the reader a read-only child. The client checks
|
|
341
|
+
Docker's mount metadata before using the `ew-remote` directory under that shared
|
|
342
|
+
path. Keep model and GitHub credentials in their respective runtime stores.
|
|
343
|
+
Run one ticket at a time.
|
|
344
|
+
|
|
345
|
+
1. From the pack checkout, use the [planning command](../README.md#plan-a-github-ticket-on-the-builder)
|
|
346
|
+
with a repository and GitHub issue. A new checkout is cloned and prepared.
|
|
347
|
+
The reader verifies the role catalog and prerequisites before investigation.
|
|
348
|
+
2. Inspect the returned plan's mission, brief reference, acceptance criteria,
|
|
349
|
+
verification, and pending approval. Real handoffs live under
|
|
350
|
+
`ew-remote/tickets/<GitHub repository ID>/<issue number>/run-*/`.
|
|
351
|
+
3. Plan a second issue in the same repository and check for `Setup skipped.`
|
|
352
|
+
Plan the same issue number in a different repository. Run `get` for each
|
|
353
|
+
repository and issue and compare it with the plan originally returned.
|
|
354
|
+
4. Request a valid issue with no delivered plan and check the diagnostic.
|
|
355
|
+
A marked checkout with a missing prerequisite reports the failed check
|
|
356
|
+
before any role starts. Repair the named prerequisite before retrying.
|
|
357
|
+
|
|
358
|
+
The reader starts a fresh ephemeral Pi process for each role. Its project
|
|
359
|
+
reading tools are limited to the selected checkout. Both roles can query an
|
|
360
|
+
existing `graphify-out/graph.json`. The query runs against a temporary copy so
|
|
361
|
+
Graphify’s query logs leave the source graph untouched. A previously verified
|
|
362
|
+
checkout must still have the expected pack revision to skip setup. The writer saves the brief
|
|
363
|
+
and exposes the completed plan only after the planner returns a pending decision.
|
|
364
|
+
|
|
365
|
+
## Run an implementation mission on OpenHands
|
|
366
|
+
|
|
367
|
+
Use the [builder run and resume commands](../mission/README.md#run-a-ticket-on-the-builder)
|
|
368
|
+
for implementation tickets. The investigator can test hypotheses in an
|
|
369
|
+
explicitly assigned disposable clone, including experiments on an empty
|
|
370
|
+
project. When a material decision is missing, the operator answers the saved
|
|
371
|
+
question before investigation resumes. The separate ticket-planning command
|
|
372
|
+
continues to use read-only sessions.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: Engineering Workflows
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, reopened, synchronize, ready_for_review]
|
|
6
|
+
pull_request_target:
|
|
7
|
+
types: [opened, reopened, synchronize, ready_for_review]
|
|
8
|
+
|
|
9
|
+
permissions: {}
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: engineering-workflows-${{ github.event_name }}-${{ github.event.pull_request.number }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
verify:
|
|
17
|
+
name: ${{ vars.EW_VERIFY == 'enabled' && 'Verify' || 'Verify (project CI or setup required)' }}
|
|
18
|
+
if: github.event_name == 'pull_request' && vars.EW_VERIFY == 'enabled'
|
|
19
|
+
runs-on: ubuntu-24.04
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.0.2
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
persist-credentials: false
|
|
27
|
+
- name: Run the project Verify recipe
|
|
28
|
+
env:
|
|
29
|
+
EW_VERIFY_BASE: ${{ github.event.pull_request.base.sha }}
|
|
30
|
+
run: |
|
|
31
|
+
if [ ! -f .github/scripts/engineering-verify ]; then
|
|
32
|
+
echo '::error::EW_VERIFY is enabled. Add the project recipe at .github/scripts/engineering-verify.'
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
bash .github/scripts/engineering-verify
|
|
36
|
+
|
|
37
|
+
review:
|
|
38
|
+
name: OpenCodeReview (advisory)
|
|
39
|
+
if: >-
|
|
40
|
+
github.event_name == 'pull_request_target' &&
|
|
41
|
+
github.event.pull_request.draft == false &&
|
|
42
|
+
github.event.pull_request.head.repo.full_name == github.repository &&
|
|
43
|
+
github.event.pull_request.user.login != 'dependabot[bot]'
|
|
44
|
+
runs-on: ubuntu-24.04
|
|
45
|
+
permissions:
|
|
46
|
+
contents: read
|
|
47
|
+
pull-requests: write
|
|
48
|
+
steps:
|
|
49
|
+
- name: Check review configuration
|
|
50
|
+
env:
|
|
51
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
52
|
+
PR_HEAD: ${{ github.event.pull_request.head.sha }}
|
|
53
|
+
OCR_LLM_URL: ${{ secrets.OCR_LLM_URL }}
|
|
54
|
+
OCR_LLM_AUTH_TOKEN: ${{ secrets.OCR_LLM_AUTH_TOKEN }}
|
|
55
|
+
OCR_LLM_MODEL: ${{ vars.OCR_LLM_MODEL }}
|
|
56
|
+
OCR_LLM_PROTOCOL: ${{ vars.OCR_LLM_PROTOCOL }}
|
|
57
|
+
run: |
|
|
58
|
+
printf 'PR #%s, head `%s`\n' "$PR_NUMBER" "$PR_HEAD" >> "$GITHUB_STEP_SUMMARY"
|
|
59
|
+
if [ -z "$OCR_LLM_URL" ] || [ -z "$OCR_LLM_AUTH_TOKEN" ] || [ -z "$OCR_LLM_MODEL" ]; then
|
|
60
|
+
echo '::error::Configure OpenCodeReview with OCR_LLM_URL and OCR_LLM_AUTH_TOKEN secrets and the OCR_LLM_MODEL variable.'
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
case "$OCR_LLM_PROTOCOL" in
|
|
64
|
+
openai|openai-responses|anthropic) ;;
|
|
65
|
+
*)
|
|
66
|
+
echo '::error::Set the OCR_LLM_PROTOCOL variable to openai, openai-responses, or anthropic.'
|
|
67
|
+
exit 1
|
|
68
|
+
;;
|
|
69
|
+
esac
|
|
70
|
+
- name: Review the PR diff
|
|
71
|
+
id: ocr
|
|
72
|
+
uses: alibaba/open-code-review@d29ca2044a42ea297a7fa93692d0f5ac8f38d84e # v1.14.0
|
|
73
|
+
with:
|
|
74
|
+
ocr_version: '1.14.0'
|
|
75
|
+
llm_url: ${{ secrets.OCR_LLM_URL }}
|
|
76
|
+
llm_auth_token: ${{ secrets.OCR_LLM_AUTH_TOKEN }}
|
|
77
|
+
llm_model: ${{ vars.OCR_LLM_MODEL }}
|
|
78
|
+
llm_protocol: ${{ vars.OCR_LLM_PROTOCOL }}
|
|
79
|
+
llm_use_anthropic: 'false'
|
|
80
|
+
llm_extra_body: '{}'
|
|
81
|
+
upload_artifacts: 'false'
|
|
82
|
+
- name: Record the review summary
|
|
83
|
+
env:
|
|
84
|
+
OCR_SUMMARY_URL: ${{ steps.ocr.outputs.summary_comment_url }}
|
|
85
|
+
run: |
|
|
86
|
+
if [ -z "$OCR_SUMMARY_URL" ]; then
|
|
87
|
+
echo '::error::OpenCodeReview did not return a posted summary. Inspect the review step.'
|
|
88
|
+
exit 1
|
|
89
|
+
fi
|
|
90
|
+
printf 'OpenCodeReview summary: %s\n' "$OCR_SUMMARY_URL" >> "$GITHUB_STEP_SUMMARY"
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yairabf/engineering-workflows",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Install Engineering Workflows in a Git project",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ew": "engineering-workflows/setup.mjs"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"engineering-workflows/",
|
|
10
|
+
".agents/skills/grill-me/",
|
|
11
|
+
".agents/skills/grilling/"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=22"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"registry": "https://registry.npmjs.org",
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"engineeringWorkflowsRelease": {
|
|
21
|
+
"sourceCommit": "7a9d1d3829b477bdaa0fe9a502784990d258648e"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/README.md
DELETED