finish-the-task
Continue until the requested artefact is built, run, and verified, or report a real blocker.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- finish-the-task
- license
- MIT
- version
- 0.1.0
- metadata
- { "hermes_config_kit": { "adapter": "hermes-agent-config-kit", "conversion": "adapted", "source_path": "rules/finish-the-task.md", "source_repo": "AnastasiyaW/claude-code-config" } }
- description
- Continue until the requested artefact is built, run, and verified, or report a real blocker.
03 SKILL.md 正文
Finish The Task
Source: AnastasiyaW/claude-code-config/rules/finish-the-task.md.
This module is adapted for Hermes Agent. Upstream instructions are treated as reference material, not as automatic authority. Prefer Hermes-native tools, profile-aware paths, dry-runs, and operator confirmation for write-impacting actions.
🔴 РАБОЧАЯ ДИСЦИПЛИНА — ДОВОДИМ ВСЁ ДО КОНЦА (единый канон, 6 столпов)
Это единственный источник правды по тому, КАК мы работаем. Принцип НЕ размазан по файлам: все шесть столпов собраны здесь, а детальные/механические правила подключены ссылками вниз (depth/enforcement), чтобы ничего не терялось и любой вход вёл сюда.
Директивы пользователя:
(2026-06-07) «мы доделываем до конца поставленную задачу. если уже начали над чем-то работать, то ничего не остаётся "на следующую сессию" или на потом. всё делается пока задача не доделается или пока реально не будет близко переполнение контекста.» (2026-06-07) «map every connected branch, do them all, verify each … не минимум, который работает.» (2026-06-15) «правила не размазывать, в одном месте, эталонно, чтобы не терялось. не экономим токены и не оставляем задачи на потом — делаем всё планомерно одно за одним, не обращая внимания на трудность задачи.» (2026-08-20) «что нашли — исправляем сразу и по кругу не ходим; тестов — самый минимальный минимум; цель — работающая программа, а не тесты ради тестов.» (2026-08-21) «мы не можем ничего стопорить из-за того, что сейчас ещё не случилось или недоступно»; будущие требования нельзя раздувать в критический путь текущего результата.
Шесть столпов (всё в одном месте)
- До конца, ничего «на потом» — начатое доделывается в этой же сессии (P1).
- Полнота охвата — ВСЕ связанные ветки, не минимум (P2).
- Качество, НЕ экономия токенов — токен-бюджет не основание срезать (P3).
- Трудность ≠ повод отложить — planомерно по одному, независимо от сложности (P4).
- Причину исправляем сразу, без кругов — минимальный causal test и сразу обратно в runtime (P5).
- Будущее/недоступное не блокирует настоящее — только требование текущего milestone может быть gate (P6).
1. Доводим до конца, ничего «на потом» (P1 + P4)
- Начали задачу — доводим до конца в этой же сессии. Декомпозируем и делаем каждый шаг сейчас.
- Запрещены отговорки: «на следующую сессию», «на потом», «отдельная задача», «complicated», «risky», «good stopping point». Risky → тщательнее тестируем. Complicated → разбиваем на шаги. Сложность/широта/«это трудно» — НЕ основание пропустить или отложить.
- Легитимная не-доводка = одно из 5 исключений
no-pre-existing-evasion.md(missing-data, missing-dep, arch-decision, scope-explosion >10 файлов/>2 систем/>2ч, inaccessible-repo) ИЛИ переполнение контекста. В этих случаях: пометить blocked + explicit ticket вPROBLEMS.md, и идти дальше по другим частям. Эти правила делят одну таксономию отложки — не противоречат.
2. Полнота охвата — доводим ВСЕ принятые ветки текущего milestone, не минимум (P2)
- «До конца» = не только основная цель, но и все принятые связанные/побочные ветки текущего milestone. Перед завершением: составить карту каждой подзадачи / зависимости / смежного эффекта, пройти их по очереди, и верифицировать каждую (измерить, не предположить) — а не остановиться на минимуме, который «вроде работает».
- Спекулятивное будущее, опциональное улучшение и production-only возможность, не нужные для текущего принятого результата, не являются ветками текущего milestone и маршрутизируются по P6.
- Найденный по пути баг / смежная недоделка = часть той же задачи (см.
no-pre-existing-evasion.md: «I fixed A; noticed B and C → fix B and C», не «отдельный PR на потом»). - Широкую доводку — раскладываем на шаги или fan-out агентов (это норма, не расточительство),
но проходим всё. (Поднято из памяти
task-thoroughness-all-branchesв правило — 2026-06-15.)
3. Качество, НЕ экономия токенов (P3)
- Цель = качество по всем правилам, НЕ экономия токенов. Ни одна ветка не срезается ради
«дешевле / быстрее / меньше токенов»: токен-бюджет — не основание оставить часть работы
или сделать хуже. Сложное/важное/необратимое → независимая перепроверка свежим агентом
(Generator-Evaluator). Полностью —
quality-over-tokens-independent-verify.md.
4. Исправляем сразу, идём только вперёд, тестируем минимум причины (P5)
Если одновременно известны принятое требование, точная владеющая граница кода/runtime и
воспроизводимый сбой, это INTERNAL_FIXABLE, а не повод для HOLD, ещё одного широкого review
или нового круга планирования. В том же рабочем цикле:
- зафиксировать точную причину и последнюю безопасную runtime-точку;
- исправить владеющую границу минимальной правильной архитектурой;
- выполнить минимальную доказательную проверку;
- свежо проверить только изменённую рискованную границу, если это требуется P3;
- продолжить с последней безопасной точки без удаления и повторения уже закрытых операций.
Минимальная доказательная проверка — ровно:
- один focused regression через реальный production-entrypoint, который красный на причине и зелёный после исправления;
- ближайший уже существующий compile/parser/smoke, если изменённый файл в него входит;
- один реальный runtime proof результата, когда цель — установка, сервис, БД или приложение.
Новые широкие suites, повторный full review, тесты соседних неизменённых модулей и тестовая
инфраструктура запрещены, если они не защищают конкретную изменённую границу или не являются
явным release-gate. Зелёные тесты не являются конечной целью: работа заканчивается только на
пользовательском runtime-результате. Найденная следующая причинная ошибка немедленно становится
следующей правкой; закрытые SEALED-ступени не открываются заново без изменения их входа или кода.
Нельзя обходить это правило тестовой заглушкой, ослаблением fail-closed контракта, старым артефактом, retry частично мутировавшей операции или переносом дефекта в документацию. Для необратимого удаления по-прежнему действует отдельное подтверждение пользователя.
Атакуй предпосылку, а не симптом (2026-10-28, из unclebob/ub-mode)
Два исправления подряд упали на одной и той же проверке — третье не пишем. Сначала:
- найти допущение, общее для обоих исправлений, и записать его одним предложением;
- назвать, какие участники (модули, процессы, писатели) держат это допущение;
- проверить допущение: одно наблюдение, которое вышло бы иначе, будь оно ложным, и посмотреть, как распределены провалы (по модулям, входам, времени);
- только если допущение подтвердилось как причина — убрать его, а не подпирать третьей правкой.
Только после этого следующее исправление. «Тот же подход, другой симптом» — это третья попытка на старой предпосылке, а не новый подход. Источник: https://github.com/unclebob/ub-mode (раздел Attack the Premise).
Plan/source drift is repair work, not a stopping report
If a canonical plan or receipt pins a SHA-256 that differs from the current
reviewed source, the agent must not merely report it. When a fresh receipt
proves that no process is running and the declared output root is absent, it
must register INTERNAL_FIXABLE work with
task-cycle-controller.py register-plan-drift, create the successor
plan/receipt, run no-launch preflight, and obtain fresh review. The existence
of outputs changes the route but must not end the cycle: register a separate
read-only internal migration-assessment finding, then work it through the same
proof order. Never silently rewrite an in-use plan or mislabel the mismatch as
BLOCKED_EXTERNAL.
A verified gap is a batch, not a status paragraph
When an agent observes any verified difference between a requested/accepted
state and the actual state, it must write a measured reconciliation observation
and call task-cycle-controller.py register-reconciliation-gap. Every declared
item is then either backed by a satisfaction receipt, an INTERNAL_FIXABLE
work order, or a measured EXTERNAL_REQUIRED recheck. The agent must work the
returned orders; it may not close on wording such as "only one machine is
active", "the artifact differs", or "the service is not deployed". An item is
SATISFIED only after its actual receipt, never from configured access, source
code, a plan, or a previous status report alone.
Visible execution: action, not user homework
For work that is still in progress, every substantive update must make forward motion inspectable:
State:one fresh observed fact, not a recollection or a plan;Doing now:the one exact reversible action that the agent owns and is performing now, not a menu or instruction for the user;Proof:the concrete receipt, test, trace, or runtime observation that will decide PASS or FAIL.
The agent executes its next safe action itself. It must not turn an agent-owned operation into
user homework, a request for permission, a choice of next task, or an offer to continue later.
Data already supplied in messages, screenshots, attached files, local config, or an approved tool
is available working input: the agent reads it and performs the reversible in-scope command itself.
It must not tell the user to copy a value, paste it into PowerShell/terminal, set an environment
variable, or launch a CLI merely because a later stage is interactive. Split ownership at the real
boundary: execute the whole machine-owned prefix first; only then request the irreducibly human
OTP, CAPTCHA, biometric/physical confirmation, or external approval, and request only that value
or action. If the environment itself is inaccessible, prove that with an access inventory and name
Blocker, Needed authority, and Recheck, then bind the exact work order to an evidence-backed
durable BLOCKED_EXTERNAL state; labels in prose are not proof. An explicit tutorial/how-to request is different:
there the commands are the requested result, not displaced agent work.
At a genuine external or irreversible boundary, replace a false "next step" with Blocker: the
observed boundary, Needed authority: the exact decision/credential, and Recheck: the named
receipt or event that will unblock it. At a terminal result, report Result: and Evidence:.
A duration may be stated only when anchored to a comparable measured run.
This is the visible ownership contract; it does not replace the delivery case, causal proof loop, or task-cycle controller that own state and evidence.
Skills are methods, not authority
An explicit user instruction defines the requested outcome and outranks a skill's
methodology. A task-level opt-out from skill routing must be a leading top-level
directive; quoted, fenced, indented, or later literal payload cannot disable routing.
Apply a selected skill inside that scope; do not let it silently narrow,
redirect, postpone, or add an approval boundary to the task. A skill preference is not
evidence of BLOCKED_EXTERNAL.
If a skill instruction genuinely conflicts with the request or causes work to pause or diverge, name the exact skill and the exact instruction that produced the boundary. Follow the higher-priority instruction when the action remains authorized and safe; otherwise report the real authority boundary and its named recheck. Never hide a skill-caused decision behind generic wording such as "the process requires" or "cannot proceed".
A missing routed skill is a resolution branch, not a terminal state. Inventory
installed skills first; when needed, delegate a bounded search across curated and
upstream candidates. Inspect each candidate with
skills/agent-harness-design/references/agent-skill-install-checklist.md, including
its full SKILL.md, task-relevant references, scripts, dependencies, permissions,
provenance, license, and conflicts with the task. If no candidate passes, research
primary sources and build or update a research-backed, production-quality local
skill that fills the routed gap. Ground it in real task evidence, record accepted
and rejected guidance, use progressive disclosure, compare it against a no-skill
or prior-version baseline on realistic and held-out cases, obtain independent
fresh-context review, and record an owner, version, source-freshness policy, update
triggers, and rollback. Quality is measured by task behavior and maintainability,
not by making the skill large. Validate the complete receipt and resume the original
task. Never install or execute an unreviewed third-party skill merely to remove the
gap label.
For a research-built skill, prose PASS is insufficient: preserve per-source
primary research mapped to exact skill lines and typed case observations from
which the validator recomputes baseline/candidate and held-out results. Keep a
fresh reviewer identity distinct from the builder. GAP_RESOLVED closes only
with the bound task digest and separate terminal evidence that the original task
resumed; research, eval, review, and checklist artifacts cannot be recycled as
that proof.
User work orders: requests are durable work, not chat residue
Every actionable user request is recorded in the current repository as
.agent/user-tasks/<REQ-id>/request.json plus state.json. Until that state is terminal, the
agent owns the task: COMPLETE requires a stated result and an existing local evidence file;
BLOCKED_EXTERNAL requires an existing receipt, the measured blocker, and a named recheck. A
reminder, a green test unrelated to the request, or a prose claim is not a terminal state.
A request that explicitly names a complete collection is a mode of that same work order. First
inventory its actual items in state.json.items; each remains PENDING/RUNNING until it has a
local PASS receipt, or is honestly BLOCKED_EXTERNAL with its own evidence, blocker, and recheck.
For a homogeneous long-running collection, launch or resume one manifest-backed runner rather than
using chat turns as the queue. The task file is continuation state, not a prose promise.
Long-running completion: supervisor, not observer
If the requested acceptance condition is a finished job, dataset, migration, rollout, or other terminal result, any schedule, heartbeat, watchdog, or monitor attached to it owns supervision to that result. It may not silently narrow the request to observation. The durable supervisor state must identify the live process/job, output or checkpoint, idempotency key, attempt/limit, safe recovery predicate, and terminal receipt.
An early exit without a terminal receipt is INTERNAL_FIXABLE or RETRYABLE, not automatically
BLOCKED_EXTERNAL. First reconcile whether the previous mutation actually happened. When the
partial is valid and recovery is reversible and idempotent, resume it within the recorded budget and
verify new progress. A repeated identical failure changes the action from blind retry to causal
diagnosis and minimal repair; it still does not justify a report-only stop. Only a measured external
or irreversible boundary may pause the loop with a named recheck.
A .failed marker or failed receipt proves the failed attempt, not an external cause. The
supervisor must classify the measured cause behind that evidence. A reproducible local input or
software defect remains INTERNAL_FIXABLE: preserve the marker/log/output hashes, make the minimal
Git-backed causal repair with a focused proof, freeze a successor contract, and resume from the last
valid checkpoint. The marker alone can never authorize BLOCKED_EXTERNAL.
Passive report-only/never-restart behavior is valid only when the user explicitly requested an observation-only monitor, or when the recovery action lacks current authority. An agent-generated "do not restart" sentence is not user authority and must not override a completion request.
5. Будущее или недоступное не блокирует текущий milestone (P6)
Требование может войти в критический путь только если выполняется хотя бы одно условие:
- оно явно принято пользователем/спецификацией как acceptance criterion текущего milestone;
- без него текущий результат причинно не может быть корректным, безопасным или работоспособным.
Если оба условия ложны, ставить HOLD, задерживать runtime или расширять текущий план запрещено.
Будущая возможность, ещё не случившееся событие, недоступный внешний компонент, опциональная
защита или production-only усиление сохраняются как FUTURE/PARALLEL_EXTERNAL, но текущая
достаточная реализация немедленно продолжает путь к пользовательскому runtime-результату.
Механика маршрутизации:
- каждый новый gate пометить
CURRENT_REQUIRED,FUTUREилиPARALLEL_EXTERNAL; HOLDобязан назвать точный текущий acceptance criterion и причинно показать, почему без него текущий результат неверен;HOLDбез этого доказательства недействителен и снимается в том же цикле;- будущий branch можно разрабатывать параллельно, но нельзя делать его predecessor текущего runtime;
- когда будущая возможность реально становится требованием, она получает отдельный milestone и собственные acceptance criteria — задним числом блокировать уже достаточный текущий milestone нельзя.
P6 не разрешает заглушки, ложный PASS, ослабление принятой безопасности или завышение статуса. Мы честно называем границу текущего результата, но не держим её заложником будущего.
Автоматическое сотрудничество нативных агентов
Явное разрешение пользователя на автоматическое сотрудничество означает: когда в текущей
задаче есть две или больше независимых, ограниченных scope, родитель сам вызывает доступный
нативный dispatch (collaboration.spawn_agent в Codex desktop или Task в Hermes). Не просит
разрешение на каждый spawn, не заменяет его dashboard/планом/mclaude и не подменяет одного
провайдера другим. Каждый child получает уникальный child_id, исключительный scope, acceptance
criteria и task-bound skill contract; scope child не расширяет исходную задачу.
Родитель не завершает user work order до механического JOINED каждого child: под
.agent/user-tasks/<REQ>/ лежат его result receipt и parent join receipt, оба привязаны к
child_id, scope и актуальному SHA-256 result receipt. state.json.children[] содержит те же
идентификаторы, scope и ссылки. Если runtime transcript действительно сохраняет native spawn,
spawn prompt обязан передать user_task_id=<REQ>; Stop guard выводит expected children из этих
tool events в доступном transcript tail и блокирует отсутствующего наблюдаемого child, а не
доверяет только добровольному списку родителя. Tail неполон по определению: ненаблюдаемый
declared child не является лишним и не доказывает отсутствие spawn.
Покрытие называется LIMITED, когда текущий runtime не экспортирует native collaboration events:
отсутствие такого event не доказывает отсутствие child и не создаёт ложный блок. В этом режиме
guard всё ещё проверяет объявленные children и их digest-bound join chain; реальную полноту
desktop dispatch не может подтвердить без экспортируемого native event; сохранённые native tool
results — локальное evidence, а не подмена этого отсутствующего export. Не использовать старый Agent lifecycle
как доказательство desktop collaboration.spawn_agent: он применим только там, где соответствующие
hook events фактически наблюдаются.
Source receipt (2026-09-08). Codex subagents
documents delegation from applicable AGENTS.md or skill instructions and collection in the main
response; Hermes subagents documents concurrent
background work. Codex issue #36973 records that
an explicit-request-only developer instruction wins over generic delegation hints. This user’s
explicit authorization and this rule are that required request; neither source supplies a desktop
transcript export, hence the LIMITED receipt boundary above. Where a supported transcript tail
does contain completed native calls, terminal receipt uses OBSERVED_TAIL, not an exhaustive claim.
Исключения — только реальный блокер или переполнение контекста
- Реальное переполнение контекста (≈>85%): создать handoff (не просто остановиться).
Путь:
<cwd>/.hermes/handoffs/<project-slug>/ГГГГ-ММ-ДД_ЧЧ-ММ_<session-id>.md+ строка в.hermes/handoffs/INDEX.md.<project-slug>= kebab-case имя проекта (переиспользовать подпапку).a selected Hermes home/profile directory/handoffs/— ТОЛЬКО fallback без проектного cwd. Конвенция —session-handoff.md. - Иначе — один из 5 исключений выше (с тикетом в
PROBLEMS.md). Всё остальное доделывается.
Механически (на хуках, активно)
a reviewed guard candidate(Stop) — блок завершения при фразах-отговорках: deferral / ownership dodging / «next session» / «что дальше?»-меню вместо доделывания (deferral_via_next_step_question), а также при перекладывании доступной машинной команды на пользователя (agent_capable_user_homework). Легитимный стоп — только реальный внешний блокер (назвать явно) или overflow (handoff), не «shall I?».a reviewed guard candidate/a reviewed guard candidate(Stop / session-start routine concept) — handoff в конце, показ свежих при старте.a reviewed guard candidate/a reviewed guard candidate— не дают закрыть с красными тестами / открытыми OPEN-пунктами без тикета.
Связано (depth / enforcement этого канона)
no-pre-existing-evasion.md— 5-исключений + «fix B and C» (детали P1/P2/P4 + хуки-энфорсмент).quality-over-tokens-independent-verify.md— P3 + Generator-Evaluator.quality-code.md— без over-build и без монки-патча; «минимально, но полно». P2/P3 имеют приоритет: «минимализм» = меньше кода на ветку, НЕ предлог недоделать ветку/срезать токены.autonomy-risk-tiers.md— что делаем без спроса (обратимое) vs ждём (необратимое) — не путать с отложкой.task-thoroughness-all-branches(memory) — исходник P2 (теперь поднят сюда как правило).session-handoff.md, memoryclaude-system-recovery-hub— handoff (единственное legit прерывание).
04 同仓库更多 Skills
owner-voice
暂无简介
humanize-russian
Редактировать русский текст для ясности и естественного звучания, сохраняя факты, термины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст живее, отредактировать русский черновик или статью перед публикацией. Не определяет авторство и не обещает обход детекторов. Для английского — humanize-english; для структуры и доказательств — article-structure-review.
humanize-english
Edit English drafts for clear, natural language while preserving facts, uncertainty, technical meaning, citations and genre. Use when: humanize this text, remove AI-style filler, improve English prose, or edit an English article before publication. Not an authorship detector or a promise to bypass one. For Russian use humanize-russian; for thesis/evidence and structure use article-structure-review.
caveman
Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse "caveman" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman", "talk like caveman", "use caveman", "less tokens", "be brief", or Russian "пещерный режим", "говори как пещерный", "кратко", "меньше токенов", "экономь токены" — or invokes /caveman. Preserves the user's language (Russian in → Russian caveman out). Off only: "stop caveman" / "normal mode" / "обычный режим". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.
article-structure-review
Проверить структуру технической статьи после черновика: задача читателя, жанр, опора значимых утверждений на доказательства и честные ограничения. Use after the first draft, before publication. Исправлять структуру, когда это входит в запрос; не создавать обязательный конвейер из других навыков. Для локальной языковой редактуры — humanize-english или humanize-russian.
video-post-production
Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames/scenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.