factory-mission
factory-mission
Scope rule: scripts stay skill-local — never source a script from another skill. For another skill's operations, invoke that skill (e.g.
architect-clarify,product-clarify,team-boot) via the Skill tool; for its documents, follow theRequiresline.scripts/andreferences/below are relative to this skill.{REPO_ROOT}denotes the project root (where.adlc/lives).
In a factory run — read this first
When ADLC_RUN_ID is set, the workflow engine runs this skill unattended as its execute step, and the completion gate follows it. Do exactly this:
- The mission is the run's issue. Take it from
--issue <ref>in the arguments; when that is missing or empty, useADLC_ISSUE_REF. With neither, do not ask: write{"conclusion":"blocked: factory run without an issue"}intoADLC_STEP_OUTPUTand return. - Run the mission for that issue end to end (Phases 0–6 below): brief, specify, clarify, plan, test (RED), code (GREEN), verify, converge, then Invoke the
factory-runbookskill to open or reuse the draft code MR/PR in the repository the change belongs to. - Before you return, always: write
mr_url(the code MR/PR you opened or reused) and a one-lineconclusionintoADLC_STEP_OUTPUT— one flat JSON object of string values; keep any keys already in the file. The engine linksmr_urlat the completion gate. Do this whatever the outcome; with no MR, write only theconclusion. - Never ask a question or wait for an answer. The completion gate after this step is the approval; a question here ends the step with nothing implemented.
Requires: the factory-runbook skill (provides the publish procedure and run contracts): adlc-cli skills add tikalk/adlc-team-skills --skill factory-runbook
In a local session — you answer the gates
When ADLC_RUN_ID is not set, a person is in this session, and nothing else will answer a gate. The agentic-container runtime that relays gates to Slack exists only in a runner pod.