Capstone: Software Factory Engineer
Software Factory Engineer · beyond this factoryYour factory and a clean project: control stories go through to main.
Capstone: Software Factory Engineer
I want to prove my factory works on a control change.
The task
Your factory is the project Academy CRM Factory of lessons 14–21. Before you start, it holds: Spec first with the full intake, the set web-change carried by General, the skill release-notes and your MCP server given to General, the custom module with its own commands and an active image, and the automation that reviews every pull request, Active.
- Ask for a release note. In web-change, add a Script — JavaScript check named
release-notewith the source below. In Spec first, add a last line to the task prompt of the build step (copy below). Review & approve. - Control story 1. Create it with the text below, Pipeline for auto-start Spec first → Start. Answer the Question and the three reviews. If Failed verification names only «Only source, tests and docs change», press Accept and continue, as in lesson 18. When the run is Completed, ask the agent to run the Definition of Done and open the pull request (copy below). Keep the pull request open until your automation's run on it has left Queued (it may wait a while) and the reviewer has written what it found: open the run's Review work item → Pipeline tab → its step. Fix what it found with the agent, check in Preview, merge.
- Control story 2. The same, with the second text. It asks for no release note: your check must stop it at Failed verification. Press Stop run.
- Export and import. The gear → Export, every section. Then a new project from scratch, named «Academy CRM Clean — your name», web module only: the gear → Import your file → Import → Review & approve → Approve. Read what the import says it did not bring.
Your factory on two control stories
- Story 1
- Story 2
- Export
- Import
Figure 23.1 · Your factory on two control stories
The check:
// Pass when the change brings a release note: a file under docs/release-notes/
const files = context.vars.gitAffectedFiles || [];
return files.some((f) => /(^|\/)docs\/release-notes\/[^/]+\.md$/.test(f));
The line for the build step:
Last, write the release note of this work item with the skill release-notes, unless the work item says it has none.
Control story 1, title Count the contacts:
Above the Contacts table, a line says how many contacts the table shows, for example «12 contacts». The line follows the search: it counts only the rows shown, and says «No contacts» when none is shown.
The message after the run:
Run the Definition of Done, then open the pull request. Tell me in two sentences what it says.
Control story 2, title Sort the companies by name:
The Companies table lists the companies by name, A to Z, every time it opens.
This is an internal change: do not write a release note for it.
What you send
- The links to both projects: your factory and the clean one.
- The export file.
- A short note, five lines at most: what each control of your factory did on the two stories (caught, passed, or did not run), and anything that differed between the two projects.
Send them to the trainer the way your environment names. Before you send, add the trainer to both projects: the gear → People → Add people → their name → Add people.
What the trainer checks
| # | from lesson | the trainer looks at | passes when |
|---|---|---|---|
| 1 | 18 | story 1 → Pipeline tab; Inbox → All; its status | a Spec first run Completed, every step ran, none Skipped; the Question and three reviews answered by you; Done, the pull request merged |
| 2 | 15, 16 | the gear → Agents, Skills, MCP Servers, Version history | General carries release-notes and your server; the server shows Connected without Draft; nothing waits in a draft; the versions that added them are approved |
| 3 | 17, 20 | story 2 → + → Artifacts → Verification reports; its Pipeline tab; story 1's pull request → Changes | story 2's Verify row Failed with «The change brings its release note failed.», its run Stopped; story 1 brings its file under docs/release-notes/ |
| 4 | 21 | left column Automations → Runs; the Review work item it made → Pipeline tab → its step | a row of your automation for story 1's pull request, «PR opened · Delivered to the run»; the reviewer's findings in its step; your note says what you did with them |
| 5 | 19 | the gear → Modules, Dev environment → Image and Commands | your custom module with its own commands; the image Active, its build Succeeded |
| 6 | 14, 15, 18 | the clean project: Version history, Agents, Pipelines, Verifications, Skills, MCP Servers | an approved version from your import; the same agents, Spec first, web-change with release-note, and release-notes; your note names what the import did not bring: the custom module's commands, the server's approval, the image build |
Grade yourself first
| # | yes / no |
|---|---|
| 1 | Story 1 went through every step of Spec first and is merged. |
| 2 | General carries release-notes and my server, the server is approved, and no draft is left. |
| 3 | Story 2 stopped at Failed verification because of release-note, and story 1 has its release note. |
| 4 | My automation reviewed story 1's pull request without me starting it. |
| 5 | My custom module has its commands, and the image is active. |
| 6 | The clean project, after the import, holds the same factory, and my note names what the import did not bring. |