autopilot-issue-delivery-worker
Use this skill to implement ONE microsoft/apm issue already selected by autopilot-issue-delivery-scheduler. Queue signal is `status/accepted` or a named bounded accept; that is not permission. Requires a current record-present scope comment from scripts/governance before any mutate. May reproduce a bug, implement the accepted change, and open a fix PR. Not a queue manager and not a triage scheduler. Works in the scheduler's session, a child session, Cloud Agent, Remote Agent, or Agentic Workflow.
- License 许可
- Apache-2.0
- 所属仓库
- microsoft/apm
- 最近更新
- 2026-11-14
- Stars
- ★ 4.4k
- Forks
- 426
01 前言 Front Matter
- name
- autopilot-issue-delivery-worker
- description
- Use this skill to implement ONE microsoft/apm issue already selected by autopilot-issue-delivery-scheduler. Queue signal is `status/accepted` or a named bounded accept; that is not permission. Requires a current record-present scope comment from scripts/governance before any mutate. May reproduce a bug, implement the accepted change, and open a fix PR. Not a queue manager and not a triage scheduler. Works in the scheduler's session, a child session, Cloud Agent, Remote Agent, or Agentic Workflow.
- activation_card
- true
02 资源文件 22
- 资产文件assets/acceptance-observer.md3.8 KB
- 资产文件assets/autopilot-triage-schema.json2.7 KB
- 资产文件assets/confidence-gate-rubric.md4.4 KB
- 资产文件assets/final-report-template.md1.6 KB
- 资产文件assets/fix-prompt.md4.1 KB
- 资产文件assets/ground-truth-table.md3.8 KB
- 资产文件assets/ideate-prompt.md3.1 KB
- 资产文件assets/implement-bug.md943 B
- 资产文件assets/implement-docs.md1.1 KB
- 资产文件assets/implement-feature.md1.1 KB
- 资产文件assets/implement-refactor.md1.4 KB
- 资产文件assets/model-routing.md15.8 KB
- 资产文件assets/plan-panel-prompt.md5.6 KB
- 资产文件assets/plan-schema.json6.2 KB
- 资产文件assets/solution-pipeline-prompt.md11.1 KB
- 资产文件assets/strategic-alignment-prompt.md4.6 KB
- 资产文件assets/task-implement-prompt.md3.4 KB
- 资产文件assets/triage-digest-template.md1.9 KB
- 资产文件assets/triage-prompt.md1.8 KB
- 资产文件assets/verdict-schema.json3.4 KB
- 资产文件assets/wave-gate-rubric.md7.7 KB
- 参考文档references/strategic-alignment-gate.md7.8 KB
03 SKILL.md 正文
autopilot-issue-delivery-worker
Per-issue implementation worker. The parent
autopilot-issue-delivery-scheduler owns the queue and the
fan-out pool. You own exactly one ISSUE_NUMBER.
Do not pick more issues. Do not fill other slots.
Activation card
activation_card: on. Before any issue read or GitHub write, emit
this Enter card with every field filled. Missing field -> stop.
skill: autopilot-issue-delivery-worker
skill_path: <resolved directory of this SKILL.md>
mode: run
subject: microsoft/apm#<issue-number>
path: delivery
intent: implement one already-selected issue
origin: unattended | actor-session
write: on | off
repo: microsoft/apm
issue: <positive integer>
invocation: agentic-workflow | actor-session
Rules:
writedefaults toonwhen the caller omitted it.write: offreturns the filled template only. Do not assign, comment, label, edit, or open a PR.write: onmay assign@me(actor-session only) and implement inside the accepted scope. Unattended never assigns. Unattended may implement only when eligibility isrecord-present.originfail-closed unknown ->unattended.- One issue. Do not nest a scheduler path.
After the run, emit this Exit receipt:
skill: autopilot-issue-delivery-worker
subject: microsoft/apm#<issue-number>
path: delivery
write: on | off
assigned: yes | no | skipped
pushed: yes | no
approved: n/a
Inputs
ISSUE_NUMBER-- requiredSELECTOR--all(default) orbugsREPO_ROOT-- requiredORIGIN-- if the parent passed it, honor it; else resolveTRUSTED_GOVERNANCE_ROOT-- trusted default-branch copyAPPROVAL_URL-- nominated scope-comment URL; discovered when absent (see Gate)HUMAN_SCOPE_RECEIPT-- nominated scope-comment evidence, not a second grant
ORIGIN and assignment
Resolve ORIGIN before any GitHub write:
- Caller ORIGIN / INVOCATION_MODE
GH_AW_*orGITHUB_ACTIONS->unattendedgh api user --jq .loginsucceeds ->actor-session- Else
unattended(fail closed)
INTENT is implement.
When ORIGIN is actor-session, assignment is a hard gate. It
is the public signal of which user is working this issue.
GitHub allows multiple assignees, so a read-then-add is not
a claim. Before reproduce, edits, or a PR:
- Read current assignees. Ignore bot logins (
github-actions,dependabot,copilot,web-flow). - If another human is assigned, escalate. Do not steal.
- If unassigned,
gh issue edit --add-assignee @me. - Re-read assignees immediately. Continue only if
@meis the sole human assignee. Being listed among several humans is not a claim. - If another human appeared (lost race),
gh issue edit --remove-assignee @meand STOP asblocked. Do not implement. - If already assigned to
@mealone, continue. - Re-check sole human ownership immediately before any implementation write and before opening a PR.
Do not start implementation while the issue is unassigned or
assigned to someone else. If a PR exists or is opened, assign
it the same way (gh pr edit --add-assignee @me), then apply
the same sole-human re-check. Do not request that actor as a
reviewer. Never alter CODEOWNERS reviewRequests. If ORIGIN
is unattended or unknown, skip assignee writes. A failed
required assignee write is blocked.
Never write human decision labels. Existing status/shepherding
may be added only if that processing label already exists in the
repo. Do not apply status/accepted.
Do not implement if explicit human approval or review capacity is missing.
Gate (both selectors)
Refuse unless the issue already has status/accepted or the
parent recorded a bounded accept. That is the queue signal,
not permission. triage/recommended and status/triaged are
not authorization. Escalate; do not implement.
Selector bugs also requires type/bug. Selector all accepts
any type.
Then re-check human-scope evidence. Do not create another
parser or roster; authority.cjs alone interprets the record.
If the caller did not pass APPROVAL_URL, discover it from the
complete comment history. Take the latest comment (by
created_at) by a User whose body starts with
<!-- apm-scope:v1 --> (leading whitespace allowed, as the parser
allows) and has the line Decision: approve. This is a locator
only; scripts/governance/authority.cjs owns the record format, so
update this filter if its marker changes:
gh api --paginate --slurp repos/microsoft/apm/issues/N/comments \
| jq -r 'add | map(select(.user.type == "User"
and (.body | test("^\\s*<!-- apm-scope:v1 -->"))
and (.body | test("(?m)^Decision: approve\\r?$"))))
| sort_by(.created_at, .id) | last | .html_url // empty'
No candidate or a failed read -- STOP (needs-evidence). Do not
fall back to an older record when the latest one fails; the tool
below judges roster, edits, and withdrawals.
From TRUSTED_GOVERNANCE_ROOT (trusted default-branch copy,
never the issue worktree):
node scripts/governance/eligibility.cjs --help
node scripts/governance/eligibility.cjs --repo microsoft/apm --issue N --approval-url URL
Require state: record-present with
authorizes_implementation: false and
contact_confirmation_needed: false. The report stays neutral.
A current unedited responsible-human scope record is the worker
grant, including for ORIGIN unattended. When
contact_confirmation_needed is true, the named review contact
has not agreed: ORIGIN unattended STOPs (blocked); ORIGIN
actor-session continues only if gh api user is that review
contact and confirms review capacity in this session. Do not reuse a stored
receipt as fresh permission; re-read eligibility before mutate
and again before the PR. Current snapshots cannot detect deleted withdrawals,
so a record that later disappears still stops.
ORIGIN unattended never claims a missing record is approval.
Do not ask for a second in-session confirmation when eligibility
is record-present. Any other state (withdrawn,
needs-evidence, error, missing tool) -- STOP.
Procedure
- Do not run the triage scheduler. Triage belongs to
autopilot-issue-triage-scheduler. You may read an existing advisory receipt and the complete comment history. - If ORIGIN is
actor-session, pass the assignment hard gate first. - If a PR exists, return its number so the caller may run
autopilot-pr-review-scheduler. Do not request yourself as reviewer. Do not start PR review from this worker. - If
type/bug(or selectorbugs): reproduce on HEAD using assets/triage-prompt.md (LEGIT / UNCLEAR / FIXED-AT-HEAD). If LEGIT, run PRINCIPLES alignment via assets/strategic-alignment-prompt.md. If greenfield and aligned: assets/fix-prompt.md (TDD + mutation-break), then open one PR. - Otherwise follow
assets/solution-pipeline-prompt.md
and type-specific
assets/implement-*.md. Open at most one PR. Author the body with pr-description-skill.
Return
JSON with issue, status (done / escalate / blocked /
pr-opened / pr-in-flight), optional pr, and a one-line note.
inspect status before reading pr or branch.
On blocked, persist the row's blocked status and returned
reason, exclude it from driver inputs, and continue.
Malformed or wrong-issue returns also block.
Only pr-opened returns are handed to
autopilot-pr-review-scheduler. Then persist its status and
reason in the row and proceed_manifest; do not read PR fields
or dispatch Phase 5/6 on blocked.
Do not auto-merge.
ASCII only.
04 同仓库更多 Skills
autopilot-issue-accept
Use this skill to accept ONE microsoft/apm issue with a declared scope. The canvas Accept button, or a maintainer asking to accept an issue, starts it. Draft only from the latest triage proposed scope, get exact-text approval in this chat from a GOVERNANCE roster human, post that comment as that human, then add status/accepted. Do not invent scope, do not accept pull requests, and do not implement the issue.
autopilot-issue-accept
Use this skill to accept ONE microsoft/apm issue with a declared scope. The canvas Accept button, or a maintainer asking to accept an issue, starts it. Draft only from the latest triage proposed scope, get exact-text approval in this chat from a GOVERNANCE roster human, post that comment as that human, then add status/accepted. Do not invent scope, do not accept pull requests, and do not implement the issue.
hello
暂无简介
placeholder
暂无简介
placeholder
暂无简介
placeholder
暂无简介