handoff-risk-review
Agent-led review of one Flow/Node handoff or one skill boundary for handoff risk. Walk the full writer-to-reader path, cite pattern-library ids when they fit, and emit a plain Markdown report with locator/tier/severity plus bounded batch defaults. Use when stress-testing parser-sensitive or machine-routed handoffs that may break, thrash, or hide the real failure mode (OI-0029).
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- handoff-risk-review
- description
- Agent-led review of one Flow/Node handoff or one skill boundary for handoff risk. Walk the full writer-to-reader path, cite pattern-library ids when they fit, and emit a plain Markdown report with locator/tier/severity plus bounded batch defaults. Use when stress-testing parser-sensitive or machine-routed handoffs that may break, thrash, or hide the real failure mode (OI-0029).
02 资源文件 24
- 参考文档resources/guidelines.md7.4 KB
- 参考文档resources/pattern-library/accepted-patterns/pattern.contract.recovery-aware-canonical-handoff.md3.0 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.contract.family-drift.md1.3 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.contract.handoff-target-drift.md2.1 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.contract.machine-readable-bundle-under-specified.md1.5 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.contract.semantic-success-mechanical-failure.md1.3 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.contract.unparseable-counted-as-empty.md2.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.flow.lineage-shape-drift.md1.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.flow.partial-artifact-surface-invalid.md1.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.flow.reference-only-artifact-assumption.md1.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.flow.repo-modifying-node-without-contract-format-boundary.md1.5 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.parse.fenced-json.md1.0 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.ralph.fallback-happy-path-result-assumption.md1.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.shape.binding-runtime-policy-leak.md1.4 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.shape.handoff-contract-obscured-by-local-orchestration.md1.4 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.shape.local-node-concern-mixing.md1.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.shape.run-scope-artifact-leak.md1.1 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.skill.partial-required-artifact-publication.md2.5 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.skill.required-artifact-missing-hard-crash.md1.2 KB
- 参考文档resources/pattern-library/anti-patterns/fragility.skill.transport-success-zero-contract-output.md2.5 KB
- 参考文档resources/pattern-library/INDEX.md361 B
- 参考文档resources/pattern-library/README.md2.9 KB
- 参考文档resources/pattern-library/tier-1-mechanical.md3.3 KB
- 参考文档resources/pattern-library/tier-2-semantic.md1.1 KB
03 SKILL.md 正文
Handoff risk review
Review a handoff surface where upstream output must satisfy downstream expectations. That includes:
- orchestration handoffs between published runtime units
- artifact-shaped or envelope-shaped boundaries inside a Flow run, Node run, or queue work item
- skill boundaries where a skill bundle and its binding together define the real contract
Grade the full writer-to-reader path, not one file in isolation. The point is to find places where output may look semantically fine to a human but still break the next consumer.
Repo language: repo-root CONTEXT.md and UBIQUITOUS_LANGUAGE.md.
Preconditions
- Operator names exactly one target:
- Flow/Node mode: one published Flow or Node handoff under
src/core/with its README/tests/bindings, or - Skill mode: one skill boundary — usually
SKILL.mdplus the binding(s) that declare what that skill reads, writes, and how downstream code parses it.
- Flow/Node mode: one published Flow or Node handoff under
- Read
.current-oswhen suggesting shell paths or opening files.
Defaults (overrideable)
| Parameter | Default | Meaning |
|---|---|---|
N |
4 | Max findings emitted this pass (after ranking). |
| Severity floor | major |
Include blocker and major only; omit minor / note unless the operator lowers the floor. |
Ranking before cap
- Severity first:
blockerbeforemajor. - Within the same severity: control-flow / graph order (upstream → downstream).
Stop after N findings that meet the floor. End with an explicit early-stop banner saying the review stopped early and more issues may remain.
Procedure
- Orient
- Open the target graph,
README.md, and the code that stages artifacts, names outputs, and parses downstream handoffs.
- Open the target graph,
- List the relevant handoff edges
- Tier 1 — mechanical: parseability, fences, JSON/Markdown drift, schema/version gates, recovery posture, run-scoping, and artifact-ownership mistakes.
- Tier 2 — semantic: ambiguous goals, contradictory signals, weak exit criteria, subject drift, or local concern-mixing that hides the true handoff.
- Inspect the full boundary
- Review prompt/skill text + binding + output plan + downstream parser together.
- When a first-party local bundle exists, inspect
SKILL.md,contracts.md,input.md, andoutput.md. - If the boundary uses an explicit translator / linker / normalization seam, review the full writer -> linker -> reader chain rather than grading only the writer or only the final reader.
- If the writer can modify repo state, inspect whether repo mutation is separated from read-only contract closing/publication.
- Check shape-driven risk around the boundary
- Is too much local policy, staging, retry handling, or post-processing packed into one workflow-local module?
- Does that make the actual contract hard to review or easy to drift?
- Check local bundle quality when a skill boundary is in scope
- Does
SKILL.mdpoint to the local contract docs? - Do
input.mdandoutput.mdmatch the binding? - Are machine-readable outputs specified clearly enough that the writer/reader agreement is visible without reading TypeScript?
- Would a thin machine-readable sidecar reduce parser-sensitive breakage?
- For parser-sensitive but read-only boundaries, should there be an explicit translator / linker / normalization handoff that preserves raw-to-canonical mapping and emits validation telemetry before critique or routing?
- If such a linker exists, does it classify continuation posture explicitly (for example
clean, degraded-but-usable, and semantically-insufficient) instead of collapsing all drift into one hard failure? - If the boundary is repo-modifying, does the bundle explicitly report changed files and forbid silent success without publishable handoff artifacts?
- If the boundary is repo-modifying, is there a required read-only contract-format / publication-closing Node or seam before downstream critique or routing?
- Does
- Check family-level consistency
- Are sibling bundles repeating the same contract language and due for extraction?
- Are sibling bundles drifting in recovery posture, observability, or field precision?
- Emit findings
- Use the finding envelope below.
- Add
pattern_idswhen the pattern library already has a matching entry. - Keep novel issues freeform instead of forcing a bad pattern match.
- Apply the cap and early-stop banner unless the operator overrides the defaults.
Finding envelope (plain Markdown only)
Each finding should be a readable Markdown subsection. Do not emit JSON/YAML interchange blobs inside the operator-facing report.
Include:
- Locator (structured):
kind(flow-edge|node-artifact|skill-binding|orchestration-handoff), plusflowId/nodeId/queueIdwhen relevant, plusfrom/toids. Add one short prose note when the edge is awkward to key. - Tier:
mechanicalorsemantic - Severity:
blocker|major|minor|note pattern_ids: optional list (for examplefragility.parse.fenced-json)- Freeform: evidence paths, quotes, why the handoff is risky, and what kind of fix would likely reduce that risk
Definitions and examples live in resources/guidelines.md. Catalog entrypoint: resources/pattern-library/INDEX.md.
Pattern library
- Pattern ids stay stable even if the skill wording gets simpler.
- Tier 1 mechanical patterns are listed first in the library index.
- Add new entries when the same failure mode repeats in real runs.
Related open item
- OI-0029 — tracked implementation and pilot notes under
.agents/open-items/items/OI-0029.md.
04 同仓库更多 Skills
structured-output-repair
暂无简介
version-release
Use when the user asks to bump/increment the package version, prepare a release, produce changelog/release notes, or decide whether a change should be called out in the changelog.
ubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
todo-monitor
Create and advance a per-open-item agent todo list using the `npm run todos --` CLI without pausing after each task. Follows todo-contract (strict CLI-only mutation) and todo-enforcer rules.
todo-hard-stop
Execute a per-open-item todo list via the `npm run todos --` CLI under the canonical todo contract, pausing after each completed task for operator feedback.
todo-enforcer
Enforce the per-open-item todo contract (strict CLI-only mutation via `npm run todos --`; no hand-edits to `*.todo.json`) so tracked agent work stays focused, isolated, and linked to an open item.