[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J9RYZNEYP7135M1PQ108M0":3,"skill-same:01M6J9RYZNEYP7135M1PQ108M0":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6J9RYZNEYP7135M1PQ108M0","harn-orchestration",null,"Design one Harn execution substrate with bounded work and thin host projections.","burin-labs\u002Fharn","burin-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F270508823?v=4","01M6J9MTN4TKZ12YF6BAX0DARN","Burin Labs","01M6J9MTSTW6RRQ2TWKYV1A3X1",31,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fcrates\u002Fharn-skills\u002Fsrc\u002Fcorpus\u002Fharn-orchestration\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"harn orchestration","orchestration","use","bounded","for","with","ownership","projections","host","triggers","workers","design","work","loop","Composition","lifecycle","execution","workflows","substrate","2026-11-10 10:12:30",false,"---\nname: harn-orchestration\nshort: Workflows, triggers, workers, handoffs, and lifecycle ownership.\ndescription: Design one Harn execution substrate with bounded work and thin host projections.\nwhen_to_use: Use for workflows, agent_loop composition, triggers, workers, handoffs, parallelism, or durable execution.\n---\n\n# Harn orchestration\n\nUse this skill for workflows, triggers, workers, handoffs, parallelism, durable\nexecution, and `agent_loop` composition.\n\nPair it with [[harn-agent]] for loop behavior, [[harn-testing]] for\ndeterministic verification, and [[harn-product-quality]] for product projections.\n\n## One execution substrate\n\n- Harn owns scheduling, lifecycle, transcript, replay, lineage, and audit.\n- A host adapts Harn state into native UI and concrete capabilities.\n- Harn Cloud durably runs the same semantics; it does not fork them.\n- CLI, TUI, IDE, headless, and cloud should consume one execution contract.\n- Do not add a second scheduler, retry engine, or completion model to a host.\n- Repair drift at the owner or projection interface.\n- Keep provider-specific behavior behind provider adapters.\n\n## Workflow design\n\n- Model a workflow around a durable outcome and typed stages.\n- Give every stage explicit input, output, failure, and compensation behavior.\n- Keep the external interface small; hide composition inside a deep module.\n- Use existing stdlib primitives before adding runtime mechanics.\n- Keep pure decisions separate from host effects.\n- Route effects through `harness.*`.\n- Make idempotency and resume semantics explicit.\n- Persist checkpoints before expensive or irreversible stages.\n\n## Agent loops\n\n- Use `agent_loop` as the one agent entry point; use `harness.llm.call` or\n  `harness.llm.completion` for one model request and leave interactive input\n  and editor state to the host.\n- Build the flat `AgentSpec` with `agent_options` or `agent_preset`; accept its\n  six named component records when a boundary needs only part of the contract.\n- Bound iterations, tool duration, concurrency, tokens, and cost.\n- Prefer structural progress and lifecycle events over prompt conventions.\n- Define completion against observable artifacts or receipts.\n- Use deterministic gates before model judges.\n- Put resilience in a composable `llm_caller`.\n- Keep a stable session id for durable work.\n- Use `harness.agent` for open, snapshot, fork, compact, inject, and lifecycle\n  operations. Do not add a parallel ambient session API.\n- Treat stop, wait, stand-down, and pivot as lifecycle events.\n- Return `AgentResult` and project its producer-owned `terminal.kind`; hosts do\n  not derive lifecycle state from text or transport stop reasons.\n\n## Triggers\n\n- Register typed trigger manifests with stable ids.\n- Make match scope, deduplication, concurrency, and budget explicit.\n- Store durable delivery and replay metadata.\n- Use channels for publish\u002Fsubscribe facts and handoffs for one recipient.\n- Bound batching windows and partition keys.\n- Make expiration behavior explicit.\n- Verify replay produces the same decisions.\n- Do not rely on host-local timers for durable semantics.\n\n## Workers and handoffs\n\n- Delegate a bounded outcome, not a vague role.\n- Include scope, capability ceiling, budget, evidence, and return contract.\n- Preserve parent\u002Fchild lineage.\n- Keep the parent responsible for integration.\n- Suspend cooperatively at a bounded turn or tool seam.\n- Graceful stop returns a typed handoff.\n- Resume from durable state with continuity context.\n- Use a session bundle for cross-compute handoff. Import rewrites local snapshot\n  paths while preserving transcript, reasoning, usage, and outcome facts.\n- Do not widen authority through delegation.\n\n## Parallelism\n\n- Use `parallel each` for fail-fast independent work.\n- Use `parallel settle` when all outcomes matter.\n- Always set `max_concurrent` for broad fan-out.\n- Bound queue size, retries, time, tokens, and monetary spend.\n- Make ordering requirements explicit.\n- Use idempotency keys for externally visible work.\n- Preserve partial-success evidence.\n- Avoid polling loops and real-time sleeps.\n\n## Recovery\n\n- Classify retryable and terminal errors with closed types.\n- Cap retries and use explicit deadlines.\n- Preserve the last accepted checkpoint.\n- Make compensation or takeover behavior observable.\n- Test process restart, reconnect, duplicate delivery, and stale resume.\n- Keep recovery in the harness or runtime, not in a lucky system prompt.\n- Emit terminal state when recovery is exhausted.\n- Preserve enough evidence for an operator to continue.\n\n## Host interface\n\n- Expose typed state and commands, not internal orchestration details.\n- Keep approvals native to the host but scoped by Harn policy.\n- Keep mutations and undo\u002Fredo native to the host.\n- Project progress, waiting, blocked, stopped, failed, and complete consistently.\n- Avoid parsing logs or prose into product state.\n- Make controls acknowledge their accepted state.\n- Keep traces available for diagnosis without making them the primary interface.\n- Test production and in-memory adapters through the same seam.\n\n## Ownership questions\n\nBefore adding a mechanism, ask:\n\n- Which module owns this semantic decision?\n- Is this a new behavior or another projection?\n- Can an existing event, registry, or state machine express it?\n- Would deleting the new module spread useful complexity or remove indirection?\n- Are there two real adapters that justify a seam?\n- Can one typed contract replace copied policy?\n- What current-source guard prevents drift?\n- What evidence would falsify the design?\n\n## Verify\n\n- Check, lint, and format the script.\n- Test the workflow through its public interface.\n- Verify trigger deduplication and replay.\n- Verify bounded fan-out and resource ceilings.\n- Interrupt active work with stop, wait, stand-down, and pivot.\n- Restart and resume from durable state.\n- Inject provider, tool, approval, and network failures.\n- Compare lifecycle states across every supported host projection.\n- Run the canonical product path end to end.\n","# Harn orchestration\n\nUse this skill for workflows, triggers, workers, handoffs, parallelism, durable\nexecution, and `agent_loop` composition.\n\nPair it with [[harn-agent]] for loop behavior, [[harn-testing]] for\ndeterministic verification, and [[harn-product-quality]] for product projections.\n\n## One execution substrate\n\n- Harn owns scheduling, lifecycle, transcript, replay, lineage, and audit.\n- A host adapts Harn state into native UI and concrete capabilities.\n- Harn Cloud durably runs the same semantics; it does not fork them.\n- CLI, TUI, IDE, headless, and cloud should consume one execution contract.\n- Do not add a second scheduler, retry engine, or completion model to a host.\n- Repair drift at the owner or projection interface.\n- Keep provider-specific behavior behind provider adapters.\n\n## Workflow design\n\n- Model a workflow around a durable outcome and typed stages.\n- Give every stage explicit input, output, failure, and compensation behavior.\n- Keep the external interface small; hide composition inside a deep module.\n- Use existing stdlib primitives before adding runtime mechanics.\n- Keep pure decisions separate from host effects.\n- Route effects through `harness.*`.\n- Make idempotency and resume semantics explicit.\n- Persist checkpoints before expensive or irreversible stages.\n\n## Agent loops\n\n- Use `agent_loop` as the one agent entry point; use `harness.llm.call` or\n  `harness.llm.completion` for one model request and leave interactive input\n  and editor state to the host.\n- Build the flat `AgentSpec` with `agent_options` or `agent_preset`; accept its\n  six named component records when a boundary needs only part of the contract.\n- Bound iterations, tool duration, concurrency, tokens, and cost.\n- Prefer structural progress and lifecycle events over prompt conventions.\n- Define completion against observable artifacts or receipts.\n- Use deterministic gates before model judges.\n- Put resilience in a composable `llm_caller`.\n- Keep a stable session id for durable work.\n- Use `harness.agent` for open, snapshot, fork, compact, inject, and lifecycle\n  operations. Do not add a parallel ambient session API.\n- Treat stop, wait, stand-down, and pivot as lifecycle events.\n- Return `AgentResult` and project its producer-owned `terminal.kind`; hosts do\n  not derive lifecycle state from text or transport stop reasons.\n\n## Triggers\n\n- Register typed trigger manifests with stable ids.\n- Make match scope, deduplication, concurrency, and budget explicit.\n- Store durable delivery and replay metadata.\n- Use channels for publish\u002Fsubscribe facts and handoffs for one recipient.\n- Bound batching windows and partition keys.\n- Make expiration behavior explicit.\n- Verify replay produces the same decisions.\n- Do not rely on host-local timers for durable semantics.\n\n## Workers and handoffs\n\n- Delegate a bounded outcome, not a vague role.\n- Include scope, capability ceiling, budget, evidence, and return contract.\n- Preserve parent\u002Fchild lineage.\n- Keep the parent responsible for integration.\n- Suspend cooperatively at a bounded turn or tool seam.\n- Graceful stop returns a typed handoff.\n- Resume from durable state with continuity context.\n- Use a session bundle for cross-compute handoff. Import rewrites local snapshot\n  paths while preserving transcript, reasoning, usage, and outcome facts.\n- Do not widen authority through delegation.\n\n## Parallelism\n\n- Use `parallel each` for fail-fast independent work.\n- Use `parallel settle` when all outcomes matter.\n- Always set `max_concurrent` for broad fan-out.\n- Bound queue size, retries, time, tokens, and monetary spend.\n- Make ordering requirements explicit.\n- Use idempotency keys for externally visible work.\n- Preserve partial-success evidence.\n- Avoid polling loops and real-time sleeps.\n\n## Recovery\n\n- Classify retryable and terminal errors with closed types.\n- Cap retries and use explicit deadlines.\n- Preserve the last accepted checkpoint.\n- Make compensation or takeover behavior observable.\n- Test process restart, reconnect, duplicate delivery, and stale resume.\n- Keep recovery in the harness or runtime, not in a lucky system prompt.\n- Emit terminal state when recovery is exhausted.\n- Preserve enough evidence for an operator to continue.\n\n## Host interface\n\n- Expose typed state and commands, not internal orchestration details.\n- Keep approvals native to the host but scoped by Harn policy.\n- Keep mutations and undo\u002Fredo native to the host.\n- Project progress, waiting, blocked, stopped, failed, and complete consistently.\n- Avoid parsing logs or prose into product state.\n- Make controls acknowledge their accepted state.\n- Keep traces available for diagnosis without making them the primary interface.\n- Test production and in-memory adapters through the same seam.\n\n## Ownership questions\n\nBefore adding a mechanism, ask:\n\n- Which module owns this semantic decision?\n- Is this a new behavior or another projection?\n- Can an existing event, registry, or state machine express it?\n- Would deleting the new module spread useful complexity or remove indirection?\n- Are there two real adapters that justify a seam?\n- Can one typed contract replace copied policy?\n- What current-source guard prevents drift?\n- What evidence would falsify the design?\n\n## Verify\n\n- Check, lint, and format the script.\n- Test the workflow through its public interface.\n- Verify trigger deduplication and replay.\n- Verify bounded fan-out and resource ceilings.\n- Interrupt active work with stop, wait, stand-down, and pivot.\n- Restart and resume from durable state.\n- Inject provider, tool, approval, and network failures.\n- Compare lifecycle states across every supported host projection.\n- Run the canonical product path end to end.\n",{"name":5,"short":43,"description":7,"when_to_use":44},"Workflows, triggers, workers, handoffs, and lifecycle ownership.","Use for workflows, agent_loop composition, triggers, workers, handoffs, parallelism, or durable execution.","main","a52b7979c25b6be41bc82c4a6e583959a048f618","crates\u002Fharn-skills\u002Fsrc\u002Fcorpus\u002Fharn-orchestration",6,"https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn","https:\u002F\u002Fharnlang.com","https:\u002F\u002Fgithub.com\u002Fburin-labs","2026-11-15 03:42:47",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add burin-labs\u002Fharn --skill harn-orchestration",{"tool":59,"command":60},"bunx","bunx skills add burin-labs\u002Fharn --skill harn-orchestration",{"tool":62,"command":63},"pnpm","pnpm dlx skills add burin-labs\u002Fharn --skill harn-orchestration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fcrates\u002Fharn-skills\u002Fsrc\u002Fcorpus\u002Fharn-orchestration\u002FSKILL.md",true,[],[68,86,107,121,137,148],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":38},"01M6J9Y4B3NZ9C24GN47159AEQ","stream-fan-in","Stream trigger example for routing or grouping event batches.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fstream-fan-in\u002FSKILL.md",[],[75,76,77,78,79,80,23,81,82,83,84,85,21],"stream","stream fan in","routing","customize","trigger","pipeline","batches","event","events","grouping","example",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":38},"01M6J9WNJHJV0K3CBZJFG8GD1R","github-stale-pr-nudger","Cron recipe for scanning repositories and nudging old pull requests.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fgithub-stale-pr-nudger\u002FSKILL.md",[],[93,94,95,96,97,23,98,99,100,101,102,21,103,104,105,78,106],"github stale pr nudger","stale","github","pr","requests","scheduled","follow-up","recipe","up","scanning","cron","pull","pull request","pull requests",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":38},"01M6J9Y7X1D3ZSWWAG1GXFTWWY","webhook-generic-hmac","Generic webhook recipe with signed inbound requests.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fwebhook-generic-hmac\u002FSKILL.md",[],[114,115,116,78,117,97,24,100,79,118,119,120,21],"generic","webhook","webhook generic hmac","when","webhook trigger","provider","webhooks",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":38},"01M6J9Y10NVP86YMXCD9FQ2XZV","slack-thread-summarizer","Slack webhook recipe with a local summarize predicate.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fslack-thread-summarizer\u002FSKILL.md",[],[128,129,130,131,132,133,117,134,135,24,115,100,79,78,136,21],"slack thread","slack thread summarizer","thread","summarizer","slack","local","summaries","threads","summarize",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":38},"01M6J9XWKSBQJ881KBP2TGMN3Z","slack-reaction-action","Slack Events API recipe for reaction_added workflows.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fslack-reaction-action\u002FSKILL.md",[],[132,144,145,23,21,117,99,83,100,79,146,101,31,147,78,36],"action","slack reaction action","reactions","api",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":38},"01M6J9XRE6PD3J99VKA1TYWS9Y","slack-keyword-router","Slack webhook recipe for routing messages by keyword.","https:\u002F\u002Fgithub.com\u002Fburin-labs\u002Fharn\u002Fblob\u002Fmain\u002Fexamples\u002Ftriggers\u002Fslack-keyword-router\u002FSKILL.md",[],[155,156,132,157,21,80,158,77,78,115,117,159,23,100],"slack keyword router","router","simple","messages","slack messages"]