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