AGENT SKILL

长时任务进度契约跟踪

progress-contract

推动长时间运行或委派的任务进展,让人类无需轮询。它会发布带有 ETA 及各自所需证据的里程碑,仅在发生重大变化时发送报告,为每项声明标注证据等级,记录 ETA 准确性,监控距上次合并的时间,并在宣布“完成”之前依据证据对“完成”状态进行审计。适用于任何委派的、耗时数小时或通宵运行的任务,当任务简报设定了报告契约时,或当用户询问“状态如何?”、“预计何时完成?”、“我们进行到哪了?”、“昨晚发生了什么?”、“逐小时汇报”或“你完成了吗?”时。

License 许可
MIT
所属仓库
github/lever
最近更新
2026-11-06
Stars
★ 292
Forks
15

01 前言 Front Matter

name
progress-contract
description
Pushes progress on long-running or delegated work so the human never has to poll. It publishes milestones with ETAs and the evidence each needs, sends reports only when something meaningful changed, labels every claim with an evidence level, logs ETA accuracy, watches time since last merge, and audits "done" against evidence before declaring it. Use for any delegated, multi-hour or overnight run, when a brief sets a report contract, or when the user asks "status?", "ETA?", "where are we?", "what happened overnight?", "hour by hour" or "are you done?".
user-invocable
false

02 资源文件 1

03 SKILL.md 正文

Progress contract

Every "status?" a human types is a polling loop they are running by hand. This skill turns progress into a push. At kickoff it publishes milestones with ETAs and the evidence that will prove each one. After that it reports only when something meaningful changed, in a fixed shape (templates/status-digest.md). It holds itself to its own forecasts, and it watches for stalls. It ends with a done-audit that checks every claimed-done item against evidence.

When to use

  • Work that will run longer than about 30 minutes, run unattended, or be delegated. The brief skill's report contract invokes this skill.
  • The user asks for status or an ETA. Answer it, then fix the contract so they don't need to ask again (step 6).
  • Before any "done", "ready" or "complete" claim (step 8).

Do not use it for short interactive tasks that the user is watching live.

Evidence levels

Use the weakest level that is true. Never round up.

Level Meaning Proof to cite
claimed The agent says it's done Nothing yet. Say "claimed".
pushed Code is on a remote branch or PR Branch or PR link
green Required checks pass on the exact head SHA Check-run link + SHA
merged It is on the default branch Merge commit link
deployed It is running where users are Release or deploy link + version
measured The outcome metric moved on real traffic metric: x → y (Δz%), n, link

A status record counts only after you have read it back. Write the artifact, fetch it, then report. Key artifacts by <lane>/<pr>/<head-sha>, so a re-run on the same head is a no-op by construction.

/lever status with no args

List what lever is running for the user: is:open label:lever assignee:@me in this repo and every repo with a dial in ~/.copilot/lever.yml. Print lever:needs-you items first, each with its one question and a recommended answer. Then one line per issue: outcome, lanes done/total, weakest evidence level, last check, runner. A check older than 2 hours, or a workflow run waiting for approval, is flagged as stalled. Given #issue, print that issue's digest. See docs/tracking.md.

/lever status is read-only. It never merges, rekicks, refills, edits the issue or schedules anything. For a stall, it prints the command that acts on it, usually /lever deliver #<issue>.

When a run is tracked on an issue, the digest goes in the issue's ## Status section, edited in place. Comment only for a milestone, a needs-you question (add the lever:needs-you label) or the final done-audit.

Steps

  1. Publish the plan at kickoff. List 3–7 milestones with human-friendly labels, not PR numbers or SHAs. For each milestone give an ETA in the operator's timezone (status.timezone in .github/lever.yml, otherwise ask once), the evidence level that counts as done, and a confidence. If there is a deadline, add a checkpoint projection: what will be true at each checkpoint up to the deadline ("hour by hour until midnight").

  2. Choose the triggers. Report on events first: a milestone's evidence level changes, a PR merges, CI goes red, a blocker appears, a human-only question arises. Add a timed sweep only as a backstop (dial). Use the sweep to compute the watchdog and the ETA drift.

  3. Stay silent unless something changed. A report goes out only if at least one of these is true:

    • an evidence level advanced or regressed;
    • an ETA moved by more than the slip tolerance, or a checkpoint passed;
    • a new blocker or human-only question appeared;
    • the watchdog crossed its threshold;
    • the headline metric moved beyond its noise floor.

    A scheduled wake with no changes produces no message. Never let status writing replace delivery.

  4. Report in the fixed shape. Lead with the headline metric: x → y (Δz%) and p50/p90 where relevant. Then give:

    • the merged count (with the change since the last report) and the open and blocked counts;
    • time since the last merge;
    • the ETA alongside the previous forecast;
    • the milestone table with evidence links;
    • Needs you: at most one question, with a recommended answer, or "nothing".

    Every human-only item is surfaced once. Don't repeat it unless something about it changed.

  5. Run the watchdog. Track time since last merge (or since the last evidence advance, for work that doesn't merge). When it passes the stall threshold during active work, the run that owns the work acts before reporting. In a deliver run, that's its sweep (autonomous-delivery step 4), which:

    • resumes or rekicks stalled workers;
    • hands verified-green PRs to pr-shepherd, which lands them if autonomy-dial's may_merge allows it;
    • refills an empty queue;
    • re-plans an outcome stuck past the stuck threshold: a simpler plan, a second-model critique, pick one.

    Then report what it did. Don't report an alarm and wait. A bare /lever status only reports the stall and the command to fix it.

  6. Treat any human status ask as a miss. Answer it plainly in the fixed shape. Then tighten the contract one step: raise the cadence, add the field they asked about, or move the report where they will see it. Log what was missing.

  7. Keep an ETA accuracy log. For each milestone, record the forecast at kickoff, each revision with its reason, and the actual time. Report the error and its direction, early (sandbagging) or late (optimism), at the end of the run and whenever the bias is systematic. Use the log to calibrate the next forecast. If the projection slips more than one checkpoint, re-plan from the objective: cut scope, add parallelism or escalate. Don't silently extend.

  8. Run the done-audit before declaring done. Re-read the original ask (verbatim) and the brief's done-when. For each criterion and milestone:

    • cite evidence at the required level;
    • mark any item without that evidence not done, even if it was claimed;
    • give a 0–100 confidence with one line of reasoning;
    • for anything under the confidence threshold, get an independent check (a second model or a fresh agent), then keep working until it passes or a stop condition fires.

    Report the audit table as the final digest, including the ETA accuracy summary.

Dials

Dial Default Options
Cadence Event-driven, plus a 30-min backstop sweep 15 min; hourly; milestones only; daily digest
Destination The delegator's chat or session Pinned issue; PR comment; discussion; morning brief automation
Silence threshold The change list in step 3 Always report on schedule; headline-only heartbeat
Timezone and labels Operator's timezone; milestone names UTC; include PR numbers
Planning horizon Next milestone + end of run Next 2 h; overnight; hour by hour to a deadline
Slip tolerance 25% of remaining time, or one checkpoint Any minutes value
Watchdog metric Time since last merge Time since last evidence advance; since last release
Stall threshold 2 h during active hours, report only 45 min with auto-rekick; off
Stuck threshold 2 h with no progress on one outcome → re-plan 30 min – 8 h
Done-audit confidence threshold 80 50–100; require a second reviewer always
Verbosity Headline + table + links Headline only; full detail

Outputs

  • A kickoff plan: milestones, ETAs, evidence required, confidence.
  • Digests in the shape of templates/status-digest.md, sent only when something changed.
  • An ETA accuracy log, in the ledger or the run record.
  • A final done-audit table: criterion → evidence link → level → confidence → done or not done.
  • The cloud version is the morning brief / status digest recipe under automations/, on a daily interval trigger.

This skill's own feedback loop

  • Primary: human status asks per day, or as a share of the user's messages. The target is near 0. Each ask is logged as a miss in step 6.
  • Calibration: mean absolute ETA error and its direction across runs.
  • Honesty: how often the done-audit flips "done" to "not done". A high rate means the brief's done-when was vague. Feed it back to brief.
  • Liveness: stall minutes per night, and human rekicks, with a target of 0.

Failure modes it prevents

  • The human as poller ("ETA?", "where are we?") and as watchdog ("nothing merged in 8 hours").
  • Reports that say "done" when the work is only claimed or pushed.
  • Status chatter that replaces delivery, and wake-ups that report nothing new.
  • ETAs nobody checks, and silent schedule slips.
  • Premature "complete" that the user has to audit by hand.

Why this exists

  • In one month, 13% of one developer's typed messages asked for status, ETAs or "hour by hour" plans. In one long-running coordination session it was 266 of 1,164 messages.
  • Once a fixed report shape (done, in progress, next, plus an ETA table) was checked in, status asks fell from 21–26% to 7% of messages.
  • "Time since last merge" was computed by hand every morning for about two weeks ("no merged commits in 19 hours") before it became a 30-minute check. After that, stalls became visible within the hour instead of the next morning.
  • ETA accountability had to be requested explicitly: "how are you tracking against those estimates?" and "I think you are sandbagging." Agents also admitted "marking this complete was wrong", which is why the done-audit exists.
  • 250 scheduled wake prompts had to repeat "continue actual delivery, not recurring planning/status". The silent-unless-changed rule replaces that line.
  • Validation is a number, not a screenshot. Of 112 merged PRs in one stretch, only 5 had demo media, and all had a measured result.

04 同仓库更多 Skills

github
github/lever

重复纠正根因修复

steer-once

将你反复重复的纠正转化为持久性修复:挖掘你的各类纠正并分类,选择能够预防这些纠正的最低成本层级(指令、技能、lint/CI 检查、测试、自动化或产品 bug 报告),提交一个带证据块的 PR,然后在 K 天后重新度量,并决定保留、升级或回滚。由于会创建 PR,因此仅在 `/lever steer` 或明确要求(“挖掘我的纠正”“为什么我总跟你说 X”“我不是给过你一个技能来做这个吗”),或当 prompt-mirror 在 3 个及以上会话中报告同一类纠正且你表示同意时才运行。

AI 工程师智能体开发
★ 292
github
github/lever

自动化运行健康审查

run-health-review

停滞监视器与自动化健康审查。拉取近期运行、合并、无操作率、失败、速率限制命中以及卡住的 PR;对每种停滞进行分类;只提出一项变更或“不变更”;并接管被遗弃的工作。当无人值守交付停滞(“为什么一夜之间就卡住了”“N 小时没有合并”“前几天还很快,现在变慢了”)、某个自动化失败或其产出下降、遭遇速率限制或配额用尽,或在 agent 无人值守运行期间按计划执行时使用。

SRE 工程师运维监控与告警
★ 292
github
github/lever

大规模代码重构流水线

refactor-pipeline

以三个独立通道——生产者(producer)、打包者(packager)和牧羊人(shepherd)——运行大规模的机械式重构(crate 或 package 拆分、模块提取、API 迁移、死代码删除),这些通道仅通过 git 和 PR 栈进行协调。它会推送分支并创建 PR,因此仅在 `/lever refactor` 或明确要求(“拆分此 crate”“拆分这个单体”“这个模块太大了,把它精简一下”“迁移所有调用方”)时运行。

软件开发工程师代码实现
★ 292
github
github/lever

Copilot 提示词习惯分析

prompt-mirror

挖掘本地 Copilot 会话历史,返回一份关于你如何指导智能体的评分卡,并附上三条建议,用你自己的前后对比消息加以说明。由于它读取你的私有历史,因此仅在 `/lever mirror` 或明确请求(“我的提示词水平如何?”、“指导我改进”、“挖掘我的会话”、“我总是在重复什么?”、每周自我复盘)时运行。

软件开发工程师提示词分析与优化
★ 292
github
github/lever

PR 落地合并驱动

pr-shepherd

通过事件驱动循环推动开放的拉取请求直至落地。每次唤醒时执行一次批量读取,修复红色必填检查的根本原因,处理每一条审查讨论线程,并按照自主性拨盘设定的级别执行落地。由于它会推送代码并可能执行合并,因此仅在 `/lever shepherd`、来自 lever 协调器的移交、被标记为 shepherding 的 PR,或明确请求(“监控 CI 直至通过”、“推送修复直到通过”、“解决审查讨论线程”、“通过即合并”、“照看这个 PR”、“shepherd”)时运行。

软件开发工程师代码仓库协作管理
★ 292
github
github/lever

Lever 技能统一入口

lever

统一的 lever 命令。`/lever <verb> [args]` 直接运行某个 lever 技能(loop、arms、review、brief、deliver、refactor、backlog、shepherd、land、status、automate、health、mirror、steer、autonomy、spend、setup、help)。`/lever <plain words>` 会为你挑选合适的动词,用一行说明所选动词,然后执行。该技能还会读取和写入 `~/.copilot/lever.yml` 中用户的个人拨盘设置。当用户键入 /lever、询问“我应该使用哪个 lever 技能?”,或想查看或更改其自主性(autonomy)或支出(spend)拨盘时使用。

软件开发工程师插件与技能管理
★ 292