[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CF55W4G50CKAGKK9TYXJQ0":3,"skill-same:01M6CF55W4G50CKAGKK9TYXJQ0":57},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6CF55W4G50CKAGKK9TYXJQ0","wake-provider",null,"usurobor\u002Fcnos","usurobor","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182342826?v=4","01M6CEXJCRMYD8HB2315FGB1Q8","Peter Lisovin","01M6CEXJH2RW04GQ2SNXY40F5S",9,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.core\u002Fskills\u002Fagent\u002Fwake-provider\u002FSKILL.md",[],[18,19],"provider","wake provider","2026-11-10 10:12:30",false,"---\nname: wake-provider\ndescription: The wake contract a cnos package declares to provide a wake. A wake is a typed `SKILL.md` module (`artifact_class: wake`) whose frontmatter `wake:` block carries the contract (identity, role, input\u002Foutput, surfaces, defer-path, selector) and whose body is the prompt. Defines what the block MUST contain, the split between what the package declares (the wake skill) and what the substrate renderer materializes (the workflow), and the split between what CUE validates (`#Wake` \u002F I5) and what the renderer enforces at run time. The agent-admin wake (cnos.core, `orchestrators\u002Fagent-admin\u002FSKILL.md`) is the reference instance.\nartifact_class: skill\nkata_surface: none\ngoverning_question: What does a cnos package declare to provide a wake, and which parts of the declaration are the package's authority vs the substrate renderer's authority?\nvisibility: public\nparent: agent\ntriggers:\n  - wake provider\n  - wake declaration\n  - wake skill\n  - cn install-wake\n  - package-owned wake\nscope: task-local\ninputs:\n  - none (contract reference)\noutputs:\n  - the wake contract (the `wake:` frontmatter block + body-as-prompt)\n  - the substrate-rendering boundary (package authority vs renderer authority)\n  - the typed-validation split (`#Wake` in `schemas\u002Fskill.cue` \u002F I5 vs the renderer's runtime refusals)\nrequires:\n  - none (foundational; consumed by `cn install-wake` and by every package-owned wake `SKILL.md`)\n---\n\n# Wake contract\n\nA cnos package declares a **wake** to ship a long-form work shape that an external substrate (today: GitHub Actions) materializes into a real workflow file. A wake is a **typed `SKILL.md` module** (`artifact_class: wake`, `scope: global`): its frontmatter `wake:` block is the machine-consumable contract, and its body is the prompt the agent runs. The package authors the *abstract* declaration (identity, role, surfaces, prompt); the renderer authors the *substrate-specific* artifact (today: YAML; tomorrow possibly other schedulers).\n\nThis skill is the contract: what a wake `SKILL.md` MUST carry, what it MAY carry, where the `#Wake` CUE definition draws the line, and where the boundary lies between the package's authority and the renderer's authority.\n\n## Core Principle\n\n**A wake is substrate-agnostic data (the `wake:` frontmatter block) + a substrate-agnostic prompt (the body). The substrate is the renderer's authority, not the package's.**\n\nTwo coupled invariants govern the contract:\n\n1. **Package authority.** The package declares *what the wake is*: identity, role, allowed\u002Fdisallowed surfaces, defer-path, the prompt the agent runs. These are fixed per the package's design — changing the substrate does not change them.\n2. **Renderer authority.** The renderer materializes the declaration into the current substrate (today: GitHub Actions YAML in `.github\u002Fworkflows\u002F`). Permission allowlist *shape*, secret-name *binding*, trigger *encoding*, run identity *binding*, concurrency *encoding* — these are substrate-specific and the renderer owns them.\n\nA package that emits substrate-specific YAML in its `wake:` block or its body has confused the boundary; a renderer that decides what responsibilities the wake's prompt enumerates has confused the boundary in the other direction. The two errors compound: package-side substrate emission locks the package to one scheduler; renderer-side responsibility decision means the package's role is defined by the renderer's defaults, not the package's design.\n\nThe failure modes this contract structurally prevents are listed in §6.\n\n## Algorithm\n\nA wake is **one typed `SKILL.md` module**: the frontmatter `wake:` block is the contract; the body is the prompt. Both live in a single file the package nominates under a content class. The renderer:\n\n1. **Discovers** the wake by resolving the wake name to `orchestrators\u002F{wake-name}\u002FSKILL.md` under the installed package's content classes (`commands\u002F`, `orchestrators\u002F`, or any future class declared in `cn.package.json`).\n2. **Reads** the frontmatter `wake:` block — the typed contract the `#Wake` definition validates at I5 time — and projects it into the internal `cn.wake-provider.v1` shape the renderer queries via `jq`; validates that required fields are present and well-typed.\n3. **Inlines** the body (the prompt) into the rendered substrate artifact's `prompt:` field (or the substrate-specific equivalent).\n4. **Materializes** the substrate artifact at the substrate's canonical path (today: `.github\u002Fworkflows\u002Fcnos-{wake-name}.yml`); the committed golden (`orchestrators\u002F{wake-name}\u002Fcnos-{wake-name}.golden.yml`) is the reviewed copy of that same output.\n5. **Reports** render idempotently — a repeated render is a no-op when the materialized artifact already matches (the `install-wake golden` byte-identity oracle: re-render diff clean + `sha256(golden)==sha256(live)` + idempotence).\n\nThe contract is what the renderer reads. The package declares; the renderer materializes. This skill defines what the renderer is allowed to expect from the declaration and what the package is allowed to expect from the renderer.\n\n---\n\n## 1. Define\n\n### 1.1. Identify the parts\n\nA wake declaration is **one `SKILL.md` module** (`artifact_class: wake`) with two parts:\n\n- **The `wake:` frontmatter block** — the typed, machine-consumable contract (identity, role, input\u002Foutput, surfaces, defer-path, selector). Validated by the `#Wake` definition in `schemas\u002Fskill.cue` at I5 time. Machine-consumable.\n- **The body** — the prompt the renderer inlines into the rendered substrate artifact's prompt field. Substrate-agnostic prose. Verbose reference material (responsibilities narrative, cross-references, doctrine) lives here — after the prompt, appended below a `## …` boundary heading — not in the frontmatter.\n\nA substrate-rendered artifact (the renderer's output) is **not** authored by the package. The declaration is what the package writes by hand; the renderer emits both the live workflow (`.github\u002Fworkflows\u002Fcnos-{wake}.yml`) and its committed golden (`orchestrators\u002F{wake}\u002Fcnos-{wake}.golden.yml`) at install time. The live workflow MUST NOT be hand-edited; the golden is the renderer-emitted, reviewed compiled artifact that CI diffs against on every change.\n\n- ❌ Package hand-edits `.github\u002Fworkflows\u002Fcnos-{wake}.yml` (the substrate is rendered, not authored)\n- ✅ Package ships `orchestrators\u002F{wake}\u002FSKILL.md` (frontmatter `wake:` + body); the renderer emits `.github\u002Fworkflows\u002Fcnos-{wake}.yml` and the committed `cnos-{wake}.golden.yml` at install time\n\n### 1.2. Articulate how they fit\n\nThe `wake:` block is **the schema-bound data** the renderer can dispatch on. The body is **the prompt** the renderer inlines into the substrate's prompt-receiving field. Together, in one typed `SKILL.md`, they are *the wake* — a package-owned, substrate-agnostic declaration validated by the same CUE \u002F I5 pipeline as every other skill.\n\nThe package authority \u002F renderer authority split (§Core Principle) makes the split concrete:\n\n| Lives in the declaration (package authority) | Lives in the renderer (substrate authority) |\n|---|---|\n| Wake name, role, target agent variable | Workflow `name:` field encoding |\n| Responsibilities (in the body — what the agent does) | Permission allowlist syntax (e.g. GitHub Actions `permissions:` block) |\n| Allowed \u002F disallowed surfaces (`wake.surfaces`) | Secret name binding (e.g. `${{ secrets.X }}`) |\n| Input contract (`wake.input`: logical trigger taxonomy) | Substrate trigger encoding (e.g. `on: { schedule: [...], issues: { types: [opened] } }`) |\n| Output contract (`wake.output`: channel-log\u002Fcursor for admin; cell-artifact for dispatch) | Run-identity binding (e.g. `bot_name` \u002F `bot_id` in claude-code-action) |\n| Defer-path for off-role directives (`wake.defer_path`) | Concurrency \u002F serialization encoding |\n| The body (prompt) | Inlining the body into the substrate's prompt field |\n| Cross-references (in the body: skills the wake invokes; doctrine it cites) | (none — references are package authority) |\n\nThe contract is the rule that makes the split machine-checkable: if a field belongs in the right column above, it MUST NOT appear in the `wake:` block; if a field belongs in the left column, it MUST appear in the declaration.\n\n- ❌ `wake:` block carries a `permissions:` field with GitHub Actions YAML keys\n- ✅ `wake:` block carries a `permission_intent:` field that names the *logical* permission (e.g. `contents.write`, `issues.write`); the renderer maps to the substrate's encoding\n\n### 1.3. Name the failure mode\n\nThe wake contract fails through **substrate leakage**: the package declares substrate-specific content in its `wake:` block or body (GitHub Actions YAML, runner names, secret names with `${{ }}` interpolation, hard-coded workflow paths). When the substrate changes (a future scheduler; a different runner; a different secret manager), every package's declaration must be edited. The package no longer owns its wake — the substrate owns the package.\n\nThe opposite failure is **renderer overreach**: the renderer decides what responsibilities the wake enumerates, what defer-path applies, what the prompt body says. The package's intent is reduced to a thin declaration of \"just install the wake\" and the renderer fills in defaults. Two packages get the same wake regardless of their distinct design.\n\nBoth failures are observable:\n\n- **F1 — Substrate leakage.** _Symptom:_ `grep -ciE 'github|workflow|yaml|GITHUB_TOKEN|runs-on|claude-code-action' {wake SKILL.md}` returns non-zero (except in an explicit \"relationship to existing substrate-bound wake\" section, if one exists). _Fix:_ remove substrate-specific tokens; replace with logical equivalents the renderer maps.\n- **F2 — Renderer overreach.** _Symptom:_ The `wake:` block omits one of the required fields below (§2.1) and the renderer inserts a default. _Fix:_ the renderer's contract rejects declarations with missing required fields rather than defaulting silently; the package must declare.\n- **F3 — Contract drift.** _Symptom:_ A field changes meaning without the `#Wake` definition changing; older renderers misparse newer declarations. _Fix:_ the typed contract is `#Wake` in `schemas\u002Fskill.cue` (the I5 gate); the renderer queries a versioned internal shape (`cn.wake-provider.v1`); breaking changes are made to both.\n- **F4 — Hand-edited substrate artifact.** _Symptom:_ The live workflow under `.github\u002Fworkflows\u002F` is edited by hand and diverges from the golden. _Fix:_ §3.4 — the renderer emits the workflow and its golden; the `install-wake golden` oracle fails on any drift.\n\n---\n\n## 2. Unfold\n\n### 2.1. Required `wake:` block fields\n\nEvery wake `SKILL.md` carries the standard skill frontmatter (`name`, `description`, `governing_question`, `artifact_class: wake`, `scope: global`, `kata_surface`, `triggers`, `inputs`, `outputs`) plus a `wake:` block. The `#Wake` definition in `schemas\u002Fskill.cue` validates the block's shape at I5; `cn-install-wake` enforces the cross-field refusals at render time. Every `wake:` block MUST declare these fields:\n\n| Field | Type | Purpose |\n|---|---|---|\n| `role` | string, enum: `admin` \\| `dispatch` | The wake's role class. `admin` = channel sync + admin-only directive handling, never executes cells. `dispatch` = claims cells matching its protocol selector and runs the protocol's runtime. Drives the role-shaped `output` disjunction. (There is no `observer` role.) |\n| `package` | string | The owning package (e.g. `cnos.core` for the agent-admin wake; `cnos.cds` for the CDS dispatch wake). Authoritative for ownership; the renderer verifies the `SKILL.md` lives under the named package's directory tree. Dispatch wakes belong to concrete protocol packages (cds\u002Fcdr\u002Fcdw); `cnos.cdd` is the generic cell-runtime framework and owns no dispatch wake. |\n| `admin_only` | bool | When `true`, the wake MUST NOT execute cells. The body enforces this; the renderer surfaces it. `role: admin` implies `admin_only: true`; `role: dispatch` implies `admin_only: false`. |\n| `activation_log_writer` | bool | Writer-ownership of the activation channel log (`AGENT-ACTIVATION-LOG-v0` §0.1). Admin wakes are the sole writers (`true`); package-dispatch wakes are non-writers (`false`) and MUST declare it explicitly. The renderer refuses a `role: dispatch + admin_only: false` wake that declares (or defaults to) `activation_log_writer: true` with exit 4 (cycle\u002F496). |\n| `input` | object | Logical trigger taxonomy. Required key: `triggers` (array; recognized values today: `schedule`, `issues_opened_title_match`, `issues_labeled_selector_match`). Optional key: `issues_opened_title_pattern` (the literal title substring the `issues_opened_title_match` trigger matches; defaults to the wake `name`). The renderer maps to substrate-specific trigger encoding; unknown trigger values are rejected per §3.5. |\n| `output` | object, **role-shaped** | Validated by a role disjunction (`#WakeOutputAdmin` \\| `#WakeOutputDispatch`). For `role: admin`: `channel_log_convention` (canonical doc path), `writer_surface` (the log path the wake writes), `class_taxonomy` (allowed channel-entry `class:` values), `cursor_advance` (bool), `cursor_field` (how the cursor is recorded). For `role: dispatch`: `cycle_artifact_root` (path under which cell artifacts land, e.g. `.cdd\u002Funreleased\u002F{N}\u002F`), `artifact_class_taxonomy` (canonical artifact class names the wake's cells emit), `cell_runtime` (the cell framework the wake invokes, e.g. `cnos.cdd`). |\n| `permission_intent` | array of strings | Logical permissions the wake needs (e.g. `contents.write`, `issues.write`, `pull_requests.write`, `id_token.write`). The renderer maps to substrate-specific permission encoding. |\n| `concurrency` | object | Keys: `serialize` (bool; when true the substrate is asked to serialize firings to prevent surface races), `group` (logical concurrency-group name; the renderer maps to substrate syntax). |\n| `agent_variable` | object | The per-install agent identity binding. Keys: `name` (the variable the body\u002Fsubstitution uses; today `agent`), `default` (`string \\| null`; `null` means operator-required — the admin-wake pattern; a string means operator-defaultable — the dispatch-wake pattern). |\n\n### 2.2. Optional `wake:` block fields\n\nThese fields MAY appear; the dispatch-shaped ones are **required when `role: dispatch`**.\n\n| Field | Type | Applies | Purpose |\n|---|---|---|---|\n| `activation_state` | enum: `live` \\| `declaration-only` | dispatch (default `live`) | Names whether the wake is runnable. `declaration-only`: shipped as a contract specimen — the renderer refuses to render (or renders with a never-fire guard) per §3.10. `live`: the renderer-emitted workflow is the production wake. |\n| `protocol` | string, kebab-case | **required when `role: dispatch`** | The concrete protocol qualifier the wake claims cells for (e.g. `cds`, `cdr`, `cdw`); matches the `protocol:{id}` label on claimed cells. Owned by the declaring package (cnos#468 §2). |\n| `selector` | object `{ include: [...], exclude: [...] }` | **required when `role: dispatch`** | The claim selector — the label-set filter applied when claiming cells (§3.9). |\n| `surfaces` | object `{ allowed: [...], disallowed: [...] }` | any | What the wake MAY \u002F MUST NOT write. Patterns use `{agent}` for the per-install agent name. `disallowed` MUST name `.github\u002Fworkflows\u002F`, and (for admin wakes) `cell_execution` (§3.8). |\n| `defer_path` | object | any | Routing doctrine: `cell_shaped_directive`, `off_role_directive`, `ambiguous_directive` — what the wake does when a directive is cell-shaped, off-role, or ambiguous. |\n\nThe `#Wake` block is **open** (per `LANGUAGE-SPEC §11`): renderer fields not yet named in `#Wake` pass through validation rather than failing it, so a renderer feature can land ahead of a schema amendment.\n\n### 2.3. Body (prompt) requirements\n\nThe body of the wake `SKILL.md` is the prompt the renderer inlines verbatim into the substrate artifact's prompt-receiving field (e.g. claude-code-action's `prompt:`). The body MUST:\n\n1. **Be substrate-agnostic.** No GitHub Actions YAML, no `${{ }}` interpolation, no hard-coded runner names, no `.github\u002Fworkflows\u002F` paths (except in a documented \"relationship to existing substrate-bound wake\" section when the wake supersedes one — and even there, the reference is descriptive, not interpolative).\n2. **Enumerate the responsibilities.** The body is the agent's view; the `wake:` block is the renderer's view; the two MUST agree.\n3. **Enumerate the defer-path** named in `wake.defer_path`. The wake's behavior when a directive falls outside its role is the most important behavioral commitment; it must be explicit where the agent reads it.\n4. **For admin wakes (`role: admin`, `admin_only: true`):** explicitly forbid cell execution in unambiguous language (e.g. \"MUST NOT execute cells under any circumstance\"). This is what makes the admin\u002Fdispatch boundary observable in the prompt.\n5. **Cite the consumed skills + conventions.** The agent reading the prompt should be able to load every skill the prompt expects without consulting another document.\n6. **Substitute the `agent_variable`** (or its default) where the prompt names the agent identity (e.g. \"Activate and attach as https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcn-{agent}\"). The renderer performs this substitution at install time using the value the operator passed (e.g. `--agent sigma` → `cn-sigma`).\n\nThe renderer does NOT rewrite the body. It substitutes named variables (today: `{agent}`); it inlines the result; it does not edit prose. The prompt portion is the body up to the reference-appendix boundary heading; verbose reference material after that heading is not inlined.\n\n### 2.4. Substrate-rendering target\n\nToday's substrate is **GitHub Actions** with `anthropics\u002Fclaude-code-action@v1` as the agent-execution carrier. Specifically:\n\n- **Substrate artifact path:** `.github\u002Fworkflows\u002Fcnos-{wake-name}.yml` (live) + `orchestrators\u002F{wake-name}\u002Fcnos-{wake-name}.golden.yml` (committed golden)\n- **Substrate trigger encoding:** YAML `on:` block (e.g. `on: { schedule: [...], issues: { types: [opened] } }`)\n- **Substrate permission encoding:** YAML `permissions:` block at workflow level\n- **Substrate run-identity binding:** `bot_name` + `bot_id` inputs to `claude-code-action`\n- **Substrate secret binding:** `${{ secrets.* }}` interpolations\n- **Substrate prompt-receiving field:** `prompt:` input to `claude-code-action`\n\nTomorrow's substrate may be different. The package's declaration does not change when the substrate changes — only the renderer changes. This is the contract's leverage: future substrate migrations are renderer-local, not package-tree-wide.\n\nThe mapping from `wake:` fields to substrate-specific encoding is the renderer's responsibility; this skill names what the declaration MUST provide so the renderer can produce a working substrate artifact without operator-side improvisation.\n\n### 2.5. The package-declares-vs-renderer-materializes split (canonical table)\n\nThis split is the contract's core invariant. The table makes it grep-able. The left column is the wake `SKILL.md` (its `wake:` block or body); the right column is renderer \u002F substrate authority.\n\n| Declared in the wake `SKILL.md` (package authority) | Emitted by the renderer (substrate authority) |\n|---|---|\n| `wake.role`, `wake.package`, `wake.admin_only`, `wake.activation_log_writer` | `name:` field of the substrate artifact |\n| `wake.protocol` (dispatch-required) | (n\u002Fa — runtime gating; the body uses it to verify cell ownership; the selector encodes it as a label filter) |\n| `wake.selector.include` \u002F `.exclude` (label-set filter, dispatch-required) | substrate event filter and\u002For runtime claim gate (`if:` on `labeled` events; runtime label-presence checks at claim time) |\n| Responsibilities (enumerated in the body) | (n\u002Fa — responsibilities are prose for the agent) |\n| `wake.input.triggers` (logical taxonomy) | `on:` block (substrate trigger encoding) |\n| `wake.input.issues_opened_title_pattern` (literal title substring) | substituted into the job-level `if:` for the `issues_opened_title_match` trigger |\n| `wake.output.channel_log_convention` \u002F `.writer_surface` \u002F `.class_taxonomy` \u002F `.cursor_*` (admin-shape) | (n\u002Fa — the agent reads\u002Fwrites per the cited convention) |\n| `wake.output.cycle_artifact_root` \u002F `.artifact_class_taxonomy` \u002F `.cell_runtime` (dispatch-shape) | (n\u002Fa — the agent writes per the cell framework's contract) |\n| `wake.surfaces.allowed` \u002F `.disallowed` | (n\u002Fa — declaration only; the agent enforces via the body) |\n| `wake.defer_path` | (n\u002Fa — declaration only; the agent enforces via the body) |\n| `wake.permission_intent` (logical permissions) | `permissions:` block (substrate permission encoding) |\n| `wake.concurrency` | `concurrency:` block (substrate concurrency encoding) |\n| `wake.agent_variable` | (substituted by the renderer at install time using `--agent`) |\n| The body (prompt) | inlined into the substrate's prompt field |\n| Cross-references (in the body) | (n\u002Fa — declaration only; for traceability) |\n| (nothing) | substrate-bound secret names, runner names, action versions, `${{ }}` interpolations, default-branch policy, OIDC permission encoding |\n\nThe right column is the renderer's territory. A wake `SKILL.md` that declares any of the right column has confused the boundary.\n\n### 2.6. Authoring a new wake\n\nTo declare a new wake in package `{pkg}`:\n\n1. **Pick a directory under the package's content classes.** `orchestrators\u002F{wake-name}\u002F` is the standard surface today (per cnos#467 active design constraint — no new `wakes\u002F` class until `commands\u002F` + `orchestrators\u002F` prove insufficient).\n2. **Create `SKILL.md`** with the standard skill frontmatter, `artifact_class: wake`, `scope: global`, and a `wake:` block populating every required field from §2.1 (plus the dispatch-shaped fields from §2.2 when `role: dispatch`).\n3. **Author the body as the prompt** per §2.3. Move verbose responsibilities, `*_notes`, and cross-references into the body's reference appendix (after the prompt-boundary heading), not the frontmatter — the frontmatter is the typed contract; the body is prompt + doctrine.\n4. **Do NOT touch the substrate.** No hand-edits under `.github\u002Fworkflows\u002F`. The renderer emits the live workflow and its committed golden at `cn install-wake` time.\n5. **Verify:** `cue vet` (I5) validates the `wake:` block; the substrate-agnostic check (§4.3) passes; `cn install-wake {wake}` renders a golden byte-identical to the committed one (§4.6).\n\nThe agent-admin wake (cnos.core, `orchestrators\u002Fagent-admin\u002FSKILL.md`) is the reference instance of this contract. The cnos.cds dispatch wake (`orchestrators\u002Fcds-dispatch\u002FSKILL.md`) is the reference `role: dispatch` instance — same shape, declaring `role: dispatch` with `protocol`, `selector`, and a dispatch-shaped `output`. (cnos.cds is the concrete software protocol; cnos.cdd is the generic cell-runtime framework that cds and the other concrete protocol packages — cnos.cdr, cnos.cdw — use under the hood. Dispatch wakes belong to concrete protocols, not to the framework.)\n\n---\n\n## 3. Rules\n\n### 3.1. The typed contract is CUE-validated; the renderer enforces runtime refusals\n\nThe `#Wake` definition in `schemas\u002Fskill.cue` is the typed contract surface (the I5 gate): it validates the `wake:` block's shape — field types, enums, the role-shaped `output` disjunction, dispatch-required fields. The renderer (`cn install-wake`) owns the *runtime* refusals CUE cannot express statically (activation-state gating, `activation_log_writer` mis-declaration, body resolution, install-time substitution, exit codes) and queries a versioned internal shape (`cn.wake-provider.v1`) synthesized from the frontmatter. A breaking change to the contract is made in both surfaces together; the open `#Wake` block (`…`) lets a renderer field land ahead of its schema amendment.\n\n- ❌ Add a required field to the renderer's expectations without adding it to `#Wake`; I5 cannot catch a declaration that omits it\n- ✅ Add the required field to `#Wake` (I5 rejects declarations that omit it) and to the renderer (which enforces any cross-field rule)\n\n### 3.2. The `wake:` block is data; the body is prose\n\nThe `wake:` block is machine-consumable structured data. The body is human-readable prose for the agent to read. Do not put prose in the `wake:` block (a free-form `description` in the standard frontmatter is the exception); do not put structured contract data in the body (use named variables only at the `{agent}`-placeholder positions).\n\n- ❌ `wake:` block carries a paragraph of explanation in a `notes` field\n- ✅ `wake:` block carries fielded data; prose lives in the body or a `README.md`\n\n### 3.3. Substrate-specific content does not appear in the declaration\n\nThe declaration (the `wake:` block and the body) is substrate-agnostic by contract. Substrate-specific content (GitHub Actions YAML, runner names, secret names with `${{ }}`, hard-coded workflow paths, action versions) belongs in the renderer.\n\nThe single carve-out: a \"relationship to existing substrate-bound wake\" prose section MAY name a substrate-bound artifact this wake supersedes — a *descriptive* reference, not substrate emission. The grep gate (§4.3) excludes this carve-out by the surrounding section header.\n\n- ❌ `wake.permission_intent` carries GitHub Actions permission keys\n- ❌ The body inlines `${{ secrets.GITHUB_TOKEN }}`\n- ✅ `wake.permission_intent` lists logical permissions; the renderer maps to the substrate\n- ✅ The body names the agent's behavioral commitments; the renderer handles secret binding\n\n### 3.4. The package does not hand-edit rendered artifacts\n\nThe package's source tree carries the declaration (the wake `SKILL.md`). The renderer emits the substrate artifact — the live workflow at `.github\u002Fworkflows\u002Fcnos-{wake}.yml` and its committed golden `orchestrators\u002F{wake}\u002Fcnos-{wake}.golden.yml`. The golden is renderer-output committed for review and as the byte-identity oracle; it is regenerated by re-running the renderer, never hand-edited. The live workflow is never hand-edited.\n\n- ❌ Someone edits `.github\u002Fworkflows\u002Fcnos-agent-admin.yml` (or the golden) by hand; it drifts from a fresh render\n- ✅ `cn install-wake agent-admin --agent sigma` regenerates both; the `install-wake golden` oracle confirms `sha256(golden)==sha256(live)`\n\n### 3.5. The renderer rejects malformed declarations rather than defaulting silently\n\nIf a required `wake:` field is missing, the wrong type, or names a path that does not exist, `cn install-wake` MUST fail with a precise error naming the field. Silent defaulting hides design gaps. (Static shape violations are caught earlier by `#Wake` at I5; the renderer is the second gate for cross-field and path rules.)\n\n- ❌ The renderer fills in a default `output` when the `wake:` block omits it\n- ✅ The renderer errors naming the missing required field and exits non-zero\n\n### 3.6. Cross-references are declared in the body, not inferred\n\nThe body names the architecture (cnos#467), predecessor cycles, consumed skills (e.g. `cnos.core\u002Fskills\u002Fagent\u002Factivate`), and consumed conventions (e.g. `AGENT-ACTIVATION-LOG-v0.md`) the prompt depends on. These are the package's authority; the renderer does not infer them from the prompt text.\n\n- ❌ The renderer greps the body for skill paths and constructs a derived cross-reference view\n- ✅ The body declares its cross-references explicitly; a reviewer can verify the prompt cites everything it depends on\n\n### 3.7. Admin-only wakes enforce the boundary in the body\n\nA wake declared with `role: admin` + `admin_only: true` MUST carry a body that explicitly forbids cell execution and names the defer-path for cell-shaped directives. The `wake:` block makes the boundary structurally declared; the body makes it operational at agent-runtime.\n\n- ❌ `admin_only: true` declared but the body never names \"no cell execution\"\n- ✅ `admin_only: true` declared and the body contains \"MUST NOT execute cells\" + the defer-path\n\n### 3.8. Disallowed surfaces explicitly name `.github\u002Fworkflows\u002F` and cell execution\n\nFor *any* wake (admin or dispatch), `.github\u002Fworkflows\u002F` is a disallowed surface — the substrate is rendered, not hand-edited by the wake. For admin wakes, `cell_execution` is named as a disallowed surface (a logical \"surface,\" not a path) so the boundary is grep-able from `wake.surfaces.disallowed` without reading the body.\n\n- ❌ `wake.surfaces.disallowed: [\".github\u002F\", \"branch_protection\"]` (cell execution implicit only in the body)\n- ✅ `wake.surfaces.disallowed: [\".github\u002Fworkflows\u002F\", \"cell_execution\", \"branch protection rules\", …]`\n\n### 3.9. Dispatch wakes declare their claim selector explicitly\n\nA wake declared with `role: dispatch` MUST declare both `protocol` (the concrete protocol qualifier; matches `protocol:{id}` labels) and `selector` (the label-set filter applied when claiming cells). Per cnos#454 dispatch-protocol the selector is the contract between the dispatch protocol and the wake — it names exactly which cells the wake claims. A dispatch wake that omits the selector is under-specified; per §3.5 the renderer rejects rather than silently defaulting.\n\n- ❌ `role: dispatch` declared but `selector` omitted; the renderer infers from label doctrine and \"just runs\"\n- ✅ `role: dispatch` with explicit `selector.include: [dispatch:cell, protocol:cds, status:todo]` + `selector.exclude: [status:in-progress, status:blocked, status:review, status:changes]`\n\nThe selector's `include` protocol entry MUST be `protocol:{protocol}` where `{protocol}` matches `wake.protocol` — the wake claims only cells whose qualifier matches its package's owned protocol (cross-protocol claims are a label-doctrine violation per cnos#468 §2.1).\n\n### 3.10. Declaration-only wakes are not silently activated\n\nA wake declared with `activation_state: declaration-only` is a contract specimen — it documents the intended wake shape but is not runnable yet (typically because downstream skill dependencies or renderer-extension work has not landed). The renderer MUST NOT silently produce a substrate artifact an operator installs without seeing the activation-state declaration; it MUST either:\n\n- **Refuse to install:** exit non-zero with a precise error naming the `activation_state` value; OR\n- **Render with explicit warning:** emit the substrate artifact with a top-of-file `# DO NOT INSTALL: activation_state = declaration-only` comment + a stderr warning, AND set the workflow's job-level `if:` gate to a permanently-false condition so the rendered artifact cannot fire even if committed.\n\nFor declaration-only wakes, refusal is the safest default; the warned-render is the carve-out when the operator explicitly wants the rendered artifact for diff review. When the preconditions hold, a future cycle flips `activation_state` to `live`, the renderer succeeds without the guard, and the substrate artifact is committed and activated. The flip is a package-authority decision (the `wake:` block changes), not a renderer decision.\n\n- ❌ The renderer reads `activation_state: declaration-only` and renders a normal-looking workflow (the operator commits and it fires without realizing the contract is incomplete)\n- ✅ The renderer refuses (`activation_state == declaration-only; refusing to render`), OR emits with a leading `# DO NOT INSTALL` banner + a never-fire `if:` gate\n\n---\n\n## 4. Verify\n\n### 4.1. Contract-shape check\n\nConfirm the wake `SKILL.md` carries `artifact_class: wake`, `scope: global`, and a `wake:` block, and that `cue vet` against `#Wake` passes (the I5 gate). Missing or mistyped fields are §3.1 \u002F §3.5 failures.\n\n### 4.2. Required-field check\n\nConfirm every required field in §2.1 is present and well-typed, plus the dispatch-shaped fields (§2.2) when `role: dispatch`. Missing required fields are §3.5 failures.\n\n### 4.3. Substrate-agnostic check\n\nRun: `grep -ciE 'github|workflow|yaml|GITHUB_TOKEN|runs-on|claude-code-action' {wake SKILL.md}`. The result MUST be 0 *except* for occurrences within an explicit \"relationship to existing substrate-bound wake\" prose section.\n\n### 4.4. Admin-only enforcement check\n\nFor wakes declared with `admin_only: true`: grep the body for explicit \"no cell execution\" language and for the defer-path. Both MUST be present in unambiguous form.\n\n### 4.5. Cross-reference completeness check\n\nFor each skill \u002F convention the body cites as consumed, confirm the body names the path. If a skill is depended on but not named, the body is under-citing; both directions are findings.\n\n### 4.6. Golden byte-identity check\n\nConfirm `cn install-wake {wake}` renders a live workflow byte-identical to the committed golden (`sha256(golden)==sha256(live)`), and that re-rendering is a no-op. The `install-wake golden` CI job is the oracle. The golden is the reviewed compiled artifact; a diff means either the declaration changed (re-render + commit) or the substrate artifact was hand-edited (§3.4 violation).\n\n---\n\n## 5. Cross-references\n\nThis skill is part of the wake-orchestration cluster (cnos#467). It defines the contract consumed by:\n\n- **cnos#467** (`agent\u002Fwake-orchestration`) — the master architecture; this contract operationalizes the \"package-owned wakes\" doctrine declared there.\n- **cnos#468** (`agent\u002Flabel-doctrine`) — the label control plane any admin wake's body cites for label-application discipline.\n- **cnos#470** — authored this skill and the agent-admin wake as the reference instance.\n- **cnos#450** (`agent\u002Fwake-template`, amended) — the renderer (`cn install-wake`) consumes this contract; required-field validation and substrate emission are its authority.\n- **cnos#454** (`agent\u002Fdispatch-protocol`, amended) — defines the claim mechanics for *dispatch*-role wakes; cited by dispatch wakes alongside this contract.\n- **cnos#524** (`wake-as-skill`) — migrated wakes to the typed `SKILL.md` model this skill describes; added `#Wake` + `artifact_class: wake` to `schemas\u002Fskill.cue` and made `cn-install-wake` read the wake `SKILL.md` as its only source.\n\nAdjacent skills and conventions:\n\n- `cnos.core\u002Fskills\u002Fagent\u002Factivate\u002FSKILL.md` — the activate skill any wake's body invokes for identity load.\n- `cnos.core\u002Fskills\u002Fagent\u002Fattach\u002FSKILL.md` — the attach skill any wake's body invokes for channel sync.\n- `cnos.core\u002Fskills\u002Fagent\u002Flabel-doctrine\u002FSKILL.md` — the label doctrine admin wakes cite for label-application discipline (cnos#468).\n- `cnos.core\u002Fskills\u002Fskill\u002FSKILL.md` — the skill-format meta-skill this skill (and every wake `SKILL.md`) conforms to.\n- `docs\u002Freference\u002Fconventions\u002FAGENT-ACTIVATION-LOG-v0.md` — the channel log convention an admin wake's `output` cites.\n\nReference instances:\n\n- `cnos.core\u002Forchestrators\u002Fagent-admin\u002FSKILL.md` — the agent-admin wake; the reference `role: admin` instance authored against this contract (cnos#470).\n- `cnos.cds\u002Forchestrators\u002Fcds-dispatch\u002FSKILL.md` — the CDS dispatch wake; the reference `role: dispatch` instance (cnos#467 Sub 4).\n\n---\n\n## 6. Failure modes\n\nThe four named failure modes from §1.3, plus two implementation-level ones:\n\n- **F1 — Substrate leakage.** _Symptom:_ The `wake:` block or body carries GitHub Actions YAML \u002F `${{ }}` interpolations \u002F hard-coded workflow paths. _Fix:_ §3.3; replace with logical equivalents the renderer maps.\n- **F2 — Renderer overreach.** _Symptom:_ The renderer fills in defaults for required fields the declaration omitted. _Fix:_ §3.5; the renderer errors on missing required fields.\n- **F3 — Contract drift.** _Symptom:_ A field's meaning changes without `#Wake` (and the renderer's internal shape) changing; declarations misparse. _Fix:_ §3.1; the change is made to both the CUE contract and the renderer.\n- **F4 — Hand-edited substrate artifact.** _Symptom:_ The live workflow or golden diverges from a fresh render. _Fix:_ §3.4; the renderer emits both; the byte-identity oracle fails on drift.\n- **F5 — Admin\u002Fdispatch boundary erosion.** _Symptom:_ A wake declared `admin_only: true` carries a body that does not forbid cell execution. _Fix:_ §3.7; admin wakes enforce the boundary in the body.\n- **F6 — Cross-reference drift.** _Symptom:_ The body depends on a skill it does not name, or names one it does not use. _Fix:_ §4.5; cross-references are explicit in the body.\n\n---\n\n## 7. Authority and stability\n\nThis skill is doctrine-adjacent: it defines the contract every cnos package follows when shipping a wake. Future changes follow the constitutive-change approval discipline that governs other doctrine-adjacent skills (compare `cnos.core\u002Fskills\u002Fagent\u002Flabel-doctrine\u002FSKILL.md §8 Versioning`).\n\nDrift between this skill and the renderer (`cn install-wake`) is resolved in favor of this skill — the contract is the canonical surface; the renderer follows. Drift between this skill and the typed `#Wake` definition is resolved by amending both together (this skill states the contract in prose; `#Wake` states it in CUE; they must agree). Drift between this skill and a concrete wake `SKILL.md` (e.g. `agent-admin\u002FSKILL.md`) is resolved in favor of this skill — the declaration is one *instance* of the contract; the contract governs.\n","# Wake contract\n\nA cnos package declares a **wake** to ship a long-form work shape that an external substrate (today: GitHub Actions) materializes into a real workflow file. A wake is a **typed `SKILL.md` module** (`artifact_class: wake`, `scope: global`): its frontmatter `wake:` block is the machine-consumable contract, and its body is the prompt the agent runs. The package authors the *abstract* declaration (identity, role, surfaces, prompt); the renderer authors the *substrate-specific* artifact (today: YAML; tomorrow possibly other schedulers).\n\nThis skill is the contract: what a wake `SKILL.md` MUST carry, what it MAY carry, where the `#Wake` CUE definition draws the line, and where the boundary lies between the package's authority and the renderer's authority.\n\n## Core Principle\n\n**A wake is substrate-agnostic data (the `wake:` frontmatter block) + a substrate-agnostic prompt (the body). The substrate is the renderer's authority, not the package's.**\n\nTwo coupled invariants govern the contract:\n\n1. **Package authority.** The package declares *what the wake is*: identity, role, allowed\u002Fdisallowed surfaces, defer-path, the prompt the agent runs. These are fixed per the package's design — changing the substrate does not change them.\n2. **Renderer authority.** The renderer materializes the declaration into the current substrate (today: GitHub Actions YAML in `.github\u002Fworkflows\u002F`). Permission allowlist *shape*, secret-name *binding*, trigger *encoding*, run identity *binding*, concurrency *encoding* — these are substrate-specific and the renderer owns them.\n\nA package that emits substrate-specific YAML in its `wake:` block or its body has confused the boundary; a renderer that decides what responsibilities the wake's prompt enumerates has confused the boundary in the other direction. The two errors compound: package-side substrate emission locks the package to one scheduler; renderer-side responsibility decision means the package's role is defined by the renderer's defaults, not the package's design.\n\nThe failure modes this contract structurally prevents are listed in §6.\n\n## Algorithm\n\nA wake is **one typed `SKILL.md` module**: the frontmatter `wake:` block is the contract; the body is the prompt. Both live in a single file the package nominates under a content class. The renderer:\n\n1. **Discovers** the wake by resolving the wake name to `orchestrators\u002F{wake-name}\u002FSKILL.md` under the installed package's content classes (`commands\u002F`, `orchestrators\u002F`, or any future class declared in `cn.package.json`).\n2. **Reads** the frontmatter `wake:` block — the typed contract the `#Wake` definition validates at I5 time — and projects it into the internal `cn.wake-provider.v1` shape the renderer queries via `jq`; validates that required fields are present and well-typed.\n3. **Inlines** the body (the prompt) into the rendered substrate artifact's `prompt:` field (or the substrate-specific equivalent).\n4. **Materializes** the substrate artifact at the substrate's canonical path (today: `.github\u002Fworkflows\u002Fcnos-{wake-name}.yml`); the committed golden (`orchestrators\u002F{wake-name}\u002Fcnos-{wake-name}.golden.yml`) is the reviewed copy of that same output.\n5. **Reports** render idempotently — a repeated render is a no-op when the materialized artifact already matches (the `install-wake golden` byte-identity oracle: re-render diff clean + `sha256(golden)==sha256(live)` + idempotence).\n\nThe contract is what the renderer reads. The package declares; the renderer materializes. This skill defines what the renderer is allowed to expect from the declaration and what the package is allowed to expect from the renderer.\n\n---\n\n## 1. Define\n\n### 1.1. Identify the parts\n\nA wake declaration is **one `SKILL.md` module** (`artifact_class: wake`) with two parts:\n\n- **The `wake:` frontmatter block** — the typed, machine-consumable contract (identity, role, input\u002Foutput, surfaces, defer-path, selector). Validated by the `#Wake` definition in `schemas\u002Fskill.cue` at I5 time. Machine-consumable.\n- **The body** — the prompt the renderer inlines into the rendered substrate artifact's prompt field. Substrate-agnostic prose. Verbose reference material (responsibilities narrative, cross-references, doctrine) lives here — after the prompt, appended below a `## …` boundary heading — not in the frontmatter.\n\nA substrate-rendered artifact (the renderer's output) is **not** authored by the package. The declaration is what the package writes by hand; the renderer emits both the live workflow (`.github\u002Fworkflows\u002Fcnos-{wake}.yml`) and its committed golden (`orchestrators\u002F{wake}\u002Fcnos-{wake}.golden.yml`) at install time. The live workflow MUST NOT be hand-edited; the golden is the renderer-emitted, reviewed compiled artifact that CI diffs against on every change.\n\n- ❌ Package hand-edits `.github\u002Fworkflows\u002Fcnos-{wake}.yml` (the substrate is rendered, not authored)\n- ✅ Package ships `orchestrators\u002F{wake}\u002FSKILL.md` (frontmatter `wake:` + body); the renderer emits `.github\u002Fworkflows\u002Fcnos-{wake}.yml` and the committed `cnos-{wake}.golden.yml` at install time\n\n### 1.2. Articulate how they fit\n\nThe `wake:` block is **the schema-bound data** the renderer can dispatch on. The body is **the prompt** the renderer inlines into the substrate's prompt-receiving field. Together, in one typed `SKILL.md`, they are *the wake* — a package-owned, substrate-agnostic declaration validated by the same CUE \u002F I5 pipeline as every other skill.\n\nThe package authority \u002F renderer authority split (§Core Principle) makes the split concrete:\n\n| Lives in the declaration (package authority) | Lives in the renderer (substrate authority) |\n|---|---|\n| Wake name, role, target agent variable | Workflow `name:` field encoding |\n| Responsibilities (in the body — what the agent does) | Permission allowlist syntax (e.g. GitHub Actions `permissions:` block) |\n| Allowed \u002F disallowed surfaces (`wake.surfaces`) | Secret name binding (e.g. `${{ secrets.X }}`) |\n| Input contract (`wake.input`: logical trigger taxonomy) | Substrate trigger encoding (e.g. `on: { schedule: [...], issues: { types: [opened] } }`) |\n| Output contract (`wake.output`: channel-log\u002Fcursor for admin; cell-artifact for dispatch) | Run-identity binding (e.g. `bot_name` \u002F `bot_id` in claude-code-action) |\n| Defer-path for off-role directives (`wake.defer_path`) | Concurrency \u002F serialization encoding |\n| The body (prompt) | Inlining the body into the substrate's prompt field |\n| Cross-references (in the body: skills the wake invokes; doctrine it cites) | (none — references are package authority) |\n\nThe contract is the rule that makes the split machine-checkable: if a field belongs in the right column above, it MUST NOT appear in the `wake:` block; if a field belongs in the left column, it MUST appear in the declaration.\n\n- ❌ `wake:` block carries a `permissions:` field with GitHub Actions YAML keys\n- ✅ `wake:` block carries a `permission_intent:` field that names the *logical* permission (e.g. `contents.write`, `issues.write`); the renderer maps to the substrate's encoding\n\n### 1.3. Name the failure mode\n\nThe wake contract fails through **substrate leakage**: the package declares substrate-specific content in its `wake:` block or body (GitHub Actions YAML, runner names, secret names with `${{ }}` interpolation, hard-coded workflow paths). When the substrate changes (a future scheduler; a different runner; a different secret manager), every package's declaration must be edited. The package no longer owns its wake — the substrate owns the package.\n\nThe opposite failure is **renderer overreach**: the renderer decides what responsibilities the wake enumerates, what defer-path applies, what the prompt body says. The package's intent is reduced to a thin declaration of \"just install the wake\" and the renderer fills in defaults. Two packages get the same wake regardless of their distinct design.\n\nBoth failures are observable:\n\n- **F1 — Substrate leakage.** _Symptom:_ `grep -ciE 'github|workflow|yaml|GITHUB_TOKEN|runs-on|claude-code-action' {wake SKILL.md}` returns non-zero (except in an explicit \"relationship to existing substrate-bound wake\" section, if one exists). _Fix:_ remove substrate-specific tokens; replace with logical equivalents the renderer maps.\n- **F2 — Renderer overreach.** _Symptom:_ The `wake:` block omits one of the required fields below (§2.1) and the renderer inserts a default. _Fix:_ the renderer's contract rejects declarations with missing required fields rather than defaulting silently; the package must declare.\n- **F3 — Contract drift.** _Symptom:_ A field changes meaning without the `#Wake` definition changing; older renderers misparse newer declarations. _Fix:_ the typed contract is `#Wake` in `schemas\u002Fskill.cue` (the I5 gate); the renderer queries a versioned internal shape (`cn.wake-provider.v1`); breaking changes are made to both.\n- **F4 — Hand-edited substrate artifact.** _Symptom:_ The live workflow under `.github\u002Fworkflows\u002F` is edited by hand and diverges from the golden. _Fix:_ §3.4 — the renderer emits the workflow and its golden; the `install-wake golden` oracle fails on any drift.\n\n---\n\n## 2. Unfold\n\n### 2.1. Required `wake:` block fields\n\nEvery wake `SKILL.md` carries the standard skill frontmatter (`name`, `description`, `governing_question`, `artifact_class: wake`, `scope: global`, `kata_surface`, `triggers`, `inputs`, `outputs`) plus a `wake:` block. The `#Wake` definition in `schemas\u002Fskill.cue` validates the block's shape at I5; `cn-install-wake` enforces the cross-field refusals at render time. Every `wake:` block MUST declare these fields:\n\n| Field | Type | Purpose |\n|---|---|---|\n| `role` | string, enum: `admin` \\| `dispatch` | The wake's role class. `admin` = channel sync + admin-only directive handling, never executes cells. `dispatch` = claims cells matching its protocol selector and runs the protocol's runtime. Drives the role-shaped `output` disjunction. (There is no `observer` role.) |\n| `package` | string | The owning package (e.g. `cnos.core` for the agent-admin wake; `cnos.cds` for the CDS dispatch wake). Authoritative for ownership; the renderer verifies the `SKILL.md` lives under the named package's directory tree. Dispatch wakes belong to concrete protocol packages (cds\u002Fcdr\u002Fcdw); `cnos.cdd` is the generic cell-runtime framework and owns no dispatch wake. |\n| `admin_only` | bool | When `true`, the wake MUST NOT execute cells. The body enforces this; the renderer surfaces it. `role: admin` implies `admin_only: true`; `role: dispatch` implies `admin_only: false`. |\n| `activation_log_writer` | bool | Writer-ownership of the activation channel log (`AGENT-ACTIVATION-LOG-v0` §0.1). Admin wakes are the sole writers (`true`); package-dispatch wakes are non-writers (`false`) and MUST declare it explicitly. The renderer refuses a `role: dispatch + admin_only: false` wake that declares (or defaults to) `activation_log_writer: true` with exit 4 (cycle\u002F496). |\n| `input` | object | Logical trigger taxonomy. Required key: `triggers` (array; recognized values today: `schedule`, `issues_opened_title_match`, `issues_labeled_selector_match`). Optional key: `issues_opened_title_pattern` (the literal title substring the `issues_opened_title_match` trigger matches; defaults to the wake `name`). The renderer maps to substrate-specific trigger encoding; unknown trigger values are rejected per §3.5. |\n| `output` | object, **role-shaped** | Validated by a role disjunction (`#WakeOutputAdmin` \\| `#WakeOutputDispatch`). For `role: admin`: `channel_log_convention` (canonical doc path), `writer_surface` (the log path the wake writes), `class_taxonomy` (allowed channel-entry `class:` values), `cursor_advance` (bool), `cursor_field` (how the cursor is recorded). For `role: dispatch`: `cycle_artifact_root` (path under which cell artifacts land, e.g. `.cdd\u002Funreleased\u002F{N}\u002F`), `artifact_class_taxonomy` (canonical artifact class names the wake's cells emit), `cell_runtime` (the cell framework the wake invokes, e.g. `cnos.cdd`). |\n| `permission_intent` | array of strings | Logical permissions the wake needs (e.g. `contents.write`, `issues.write`, `pull_requests.write`, `id_token.write`). The renderer maps to substrate-specific permission encoding. |\n| `concurrency` | object | Keys: `serialize` (bool; when true the substrate is asked to serialize firings to prevent surface races), `group` (logical concurrency-group name; the renderer maps to substrate syntax). |\n| `agent_variable` | object | The per-install agent identity binding. Keys: `name` (the variable the body\u002Fsubstitution uses; today `agent`), `default` (`string \\| null`; `null` means operator-required — the admin-wake pattern; a string means operator-defaultable — the dispatch-wake pattern). |\n\n### 2.2. Optional `wake:` block fields\n\nThese fields MAY appear; the dispatch-shaped ones are **required when `role: dispatch`**.\n\n| Field | Type | Applies | Purpose |\n|---|---|---|---|\n| `activation_state` | enum: `live` \\| `declaration-only` | dispatch (default `live`) | Names whether the wake is runnable. `declaration-only`: shipped as a contract specimen — the renderer refuses to render (or renders with a never-fire guard) per §3.10. `live`: the renderer-emitted workflow is the production wake. |\n| `protocol` | string, kebab-case | **required when `role: dispatch`** | The concrete protocol qualifier the wake claims cells for (e.g. `cds`, `cdr`, `cdw`); matches the `protocol:{id}` label on claimed cells. Owned by the declaring package (cnos#468 §2). |\n| `selector` | object `{ include: [...], exclude: [...] }` | **required when `role: dispatch`** | The claim selector — the label-set filter applied when claiming cells (§3.9). |\n| `surfaces` | object `{ allowed: [...], disallowed: [...] }` | any | What the wake MAY \u002F MUST NOT write. Patterns use `{agent}` for the per-install agent name. `disallowed` MUST name `.github\u002Fworkflows\u002F`, and (for admin wakes) `cell_execution` (§3.8). |\n| `defer_path` | object | any | Routing doctrine: `cell_shaped_directive`, `off_role_directive`, `ambiguous_directive` — what the wake does when a directive is cell-shaped, off-role, or ambiguous. |\n\nThe `#Wake` block is **open** (per `LANGUAGE-SPEC §11`): renderer fields not yet named in `#Wake` pass through validation rather than failing it, so a renderer feature can land ahead of a schema amendment.\n\n### 2.3. Body (prompt) requirements\n\nThe body of the wake `SKILL.md` is the prompt the renderer inlines verbatim into the substrate artifact's prompt-receiving field (e.g. claude-code-action's `prompt:`). The body MUST:\n\n1. **Be substrate-agnostic.** No GitHub Actions YAML, no `${{ }}` interpolation, no hard-coded runner names, no `.github\u002Fworkflows\u002F` paths (except in a documented \"relationship to existing substrate-bound wake\" section when the wake supersedes one — and even there, the reference is descriptive, not interpolative).\n2. **Enumerate the responsibilities.** The body is the agent's view; the `wake:` block is the renderer's view; the two MUST agree.\n3. **Enumerate the defer-path** named in `wake.defer_path`. The wake's behavior when a directive falls outside its role is the most important behavioral commitment; it must be explicit where the agent reads it.\n4. **For admin wakes (`role: admin`, `admin_only: true`):** explicitly forbid cell execution in unambiguous language (e.g. \"MUST NOT execute cells under any circumstance\"). This is what makes the admin\u002Fdispatch boundary observable in the prompt.\n5. **Cite the consumed skills + conventions.** The agent reading the prompt should be able to load every skill the prompt expects without consulting another document.\n6. **Substitute the `agent_variable`** (or its default) where the prompt names the agent identity (e.g. \"Activate and attach as https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcn-{agent}\"). The renderer performs this substitution at install time using the value the operator passed (e.g. `--agent sigma` → `cn-sigma`).\n\nThe renderer does NOT rewrite the body. It substitutes named variables (today: `{agent}`); it inlines the result; it does not edit prose. The prompt portion is the body up to the reference-appendix boundary heading; verbose reference material after that heading is not inlined.\n\n### 2.4. Substrate-rendering target\n\nToday's substrate is **GitHub Actions** with `anthropics\u002Fclaude-code-action@v1` as the agent-execution carrier. Specifically:\n\n- **Substrate artifact path:** `.github\u002Fworkflows\u002Fcnos-{wake-name}.yml` (live) + `orchestrators\u002F{wake-name}\u002Fcnos-{wake-name}.golden.yml` (committed golden)\n- **Substrate trigger encoding:** YAML `on:` block (e.g. `on: { schedule: [...], issues: { types: [opened] } }`)\n- **Substrate permission encoding:** YAML `permissions:` block at workflow level\n- **Substrate run-identity binding:** `bot_name` + `bot_id` inputs to `claude-code-action`\n- **Substrate secret binding:** `${{ secrets.* }}` interpolations\n- **Substrate prompt-receiving field:** `prompt:` input to `claude-code-action`\n\nTomorrow's substrate may be different. The package's declaration does not change when the substrate changes — only the renderer changes. This is the contract's leverage: future substrate migrations are renderer-local, not package-tree-wide.\n\nThe mapping from `wake:` fields to substrate-specific encoding is the renderer's responsibility; this skill names what the declaration MUST provide so the renderer can produce a working substrate artifact without operator-side improvisation.\n\n### 2.5. The package-declares-vs-renderer-materializes split (canonical table)\n\nThis split is the contract's core invariant. The table makes it grep-able. The left column is the wake `SKILL.md` (its `wake:` block or body); the right column is renderer \u002F substrate authority.\n\n| Declared in the wake `SKILL.md` (package authority) | Emitted by the renderer (substrate authority) |\n|---|---|\n| `wake.role`, `wake.package`, `wake.admin_only`, `wake.activation_log_writer` | `name:` field of the substrate artifact |\n| `wake.protocol` (dispatch-required) | (n\u002Fa — runtime gating; the body uses it to verify cell ownership; the selector encodes it as a label filter) |\n| `wake.selector.include` \u002F `.exclude` (label-set filter, dispatch-required) | substrate event filter and\u002For runtime claim gate (`if:` on `labeled` events; runtime label-presence checks at claim time) |\n| Responsibilities (enumerated in the body) | (n\u002Fa — responsibilities are prose for the agent) |\n| `wake.input.triggers` (logical taxonomy) | `on:` block (substrate trigger encoding) |\n| `wake.input.issues_opened_title_pattern` (literal title substring) | substituted into the job-level `if:` for the `issues_opened_title_match` trigger |\n| `wake.output.channel_log_convention` \u002F `.writer_surface` \u002F `.class_taxonomy` \u002F `.cursor_*` (admin-shape) | (n\u002Fa — the agent reads\u002Fwrites per the cited convention) |\n| `wake.output.cycle_artifact_root` \u002F `.artifact_class_taxonomy` \u002F `.cell_runtime` (dispatch-shape) | (n\u002Fa — the agent writes per the cell framework's contract) |\n| `wake.surfaces.allowed` \u002F `.disallowed` | (n\u002Fa — declaration only; the agent enforces via the body) |\n| `wake.defer_path` | (n\u002Fa — declaration only; the agent enforces via the body) |\n| `wake.permission_intent` (logical permissions) | `permissions:` block (substrate permission encoding) |\n| `wake.concurrency` | `concurrency:` block (substrate concurrency encoding) |\n| `wake.agent_variable` | (substituted by the renderer at install time using `--agent`) |\n| The body (prompt) | inlined into the substrate's prompt field |\n| Cross-references (in the body) | (n\u002Fa — declaration only; for traceability) |\n| (nothing) | substrate-bound secret names, runner names, action versions, `${{ }}` interpolations, default-branch policy, OIDC permission encoding |\n\nThe right column is the renderer's territory. A wake `SKILL.md` that declares any of the right column has confused the boundary.\n\n### 2.6. Authoring a new wake\n\nTo declare a new wake in package `{pkg}`:\n\n1. **Pick a directory under the package's content classes.** `orchestrators\u002F{wake-name}\u002F` is the standard surface today (per cnos#467 active design constraint — no new `wakes\u002F` class until `commands\u002F` + `orchestrators\u002F` prove insufficient).\n2. **Create `SKILL.md`** with the standard skill frontmatter, `artifact_class: wake`, `scope: global`, and a `wake:` block populating every required field from §2.1 (plus the dispatch-shaped fields from §2.2 when `role: dispatch`).\n3. **Author the body as the prompt** per §2.3. Move verbose responsibilities, `*_notes`, and cross-references into the body's reference appendix (after the prompt-boundary heading), not the frontmatter — the frontmatter is the typed contract; the body is prompt + doctrine.\n4. **Do NOT touch the substrate.** No hand-edits under `.github\u002Fworkflows\u002F`. The renderer emits the live workflow and its committed golden at `cn install-wake` time.\n5. **Verify:** `cue vet` (I5) validates the `wake:` block; the substrate-agnostic check (§4.3) passes; `cn install-wake {wake}` renders a golden byte-identical to the committed one (§4.6).\n\nThe agent-admin wake (cnos.core, `orchestrators\u002Fagent-admin\u002FSKILL.md`) is the reference instance of this contract. The cnos.cds dispatch wake (`orchestrators\u002Fcds-dispatch\u002FSKILL.md`) is the reference `role: dispatch` instance — same shape, declaring `role: dispatch` with `protocol`, `selector`, and a dispatch-shaped `output`. (cnos.cds is the concrete software protocol; cnos.cdd is the generic cell-runtime framework that cds and the other concrete protocol packages — cnos.cdr, cnos.cdw — use under the hood. Dispatch wakes belong to concrete protocols, not to the framework.)\n\n---\n\n## 3. Rules\n\n### 3.1. The typed contract is CUE-validated; the renderer enforces runtime refusals\n\nThe `#Wake` definition in `schemas\u002Fskill.cue` is the typed contract surface (the I5 gate): it validates the `wake:` block's shape — field types, enums, the role-shaped `output` disjunction, dispatch-required fields. The renderer (`cn install-wake`) owns the *runtime* refusals CUE cannot express statically (activation-state gating, `activation_log_writer` mis-declaration, body resolution, install-time substitution, exit codes) and queries a versioned internal shape (`cn.wake-provider.v1`) synthesized from the frontmatter. A breaking change to the contract is made in both surfaces together; the open `#Wake` block (`…`) lets a renderer field land ahead of its schema amendment.\n\n- ❌ Add a required field to the renderer's expectations without adding it to `#Wake`; I5 cannot catch a declaration that omits it\n- ✅ Add the required field to `#Wake` (I5 rejects declarations that omit it) and to the renderer (which enforces any cross-field rule)\n\n### 3.2. The `wake:` block is data; the body is prose\n\nThe `wake:` block is machine-consumable structured data. The body is human-readable prose for the agent to read. Do not put prose in the `wake:` block (a free-form `description` in the standard frontmatter is the exception); do not put structured contract data in the body (use named variables only at the `{agent}`-placeholder positions).\n\n- ❌ `wake:` block carries a paragraph of explanation in a `notes` field\n- ✅ `wake:` block carries fielded data; prose lives in the body or a `README.md`\n\n### 3.3. Substrate-specific content does not appear in the declaration\n\nThe declaration (the `wake:` block and the body) is substrate-agnostic by contract. Substrate-specific content (GitHub Actions YAML, runner names, secret names with `${{ }}`, hard-coded workflow paths, action versions) belongs in the renderer.\n\nThe single carve-out: a \"relationship to existing substrate-bound wake\" prose section MAY name a substrate-bound artifact this wake supersedes — a *descriptive* reference, not substrate emission. The grep gate (§4.3) excludes this carve-out by the surrounding section header.\n\n- ❌ `wake.permission_intent` carries GitHub Actions permission keys\n- ❌ The body inlines `${{ secrets.GITHUB_TOKEN }}`\n- ✅ `wake.permission_intent` lists logical permissions; the renderer maps to the substrate\n- ✅ The body names the agent's behavioral commitments; the renderer handles secret binding\n\n### 3.4. The package does not hand-edit rendered artifacts\n\nThe package's source tree carries the declaration (the wake `SKILL.md`). The renderer emits the substrate artifact — the live workflow at `.github\u002Fworkflows\u002Fcnos-{wake}.yml` and its committed golden `orchestrators\u002F{wake}\u002Fcnos-{wake}.golden.yml`. The golden is renderer-output committed for review and as the byte-identity oracle; it is regenerated by re-running the renderer, never hand-edited. The live workflow is never hand-edited.\n\n- ❌ Someone edits `.github\u002Fworkflows\u002Fcnos-agent-admin.yml` (or the golden) by hand; it drifts from a fresh render\n- ✅ `cn install-wake agent-admin --agent sigma` regenerates both; the `install-wake golden` oracle confirms `sha256(golden)==sha256(live)`\n\n### 3.5. The renderer rejects malformed declarations rather than defaulting silently\n\nIf a required `wake:` field is missing, the wrong type, or names a path that does not exist, `cn install-wake` MUST fail with a precise error naming the field. Silent defaulting hides design gaps. (Static shape violations are caught earlier by `#Wake` at I5; the renderer is the second gate for cross-field and path rules.)\n\n- ❌ The renderer fills in a default `output` when the `wake:` block omits it\n- ✅ The renderer errors naming the missing required field and exits non-zero\n\n### 3.6. Cross-references are declared in the body, not inferred\n\nThe body names the architecture (cnos#467), predecessor cycles, consumed skills (e.g. `cnos.core\u002Fskills\u002Fagent\u002Factivate`), and consumed conventions (e.g. `AGENT-ACTIVATION-LOG-v0.md`) the prompt depends on. These are the package's authority; the renderer does not infer them from the prompt text.\n\n- ❌ The renderer greps the body for skill paths and constructs a derived cross-reference view\n- ✅ The body declares its cross-references explicitly; a reviewer can verify the prompt cites everything it depends on\n\n### 3.7. Admin-only wakes enforce the boundary in the body\n\nA wake declared with `role: admin` + `admin_only: true` MUST carry a body that explicitly forbids cell execution and names the defer-path for cell-shaped directives. The `wake:` block makes the boundary structurally declared; the body makes it operational at agent-runtime.\n\n- ❌ `admin_only: true` declared but the body never names \"no cell execution\"\n- ✅ `admin_only: true` declared and the body contains \"MUST NOT execute cells\" + the defer-path\n\n### 3.8. Disallowed surfaces explicitly name `.github\u002Fworkflows\u002F` and cell execution\n\nFor *any* wake (admin or dispatch), `.github\u002Fworkflows\u002F` is a disallowed surface — the substrate is rendered, not hand-edited by the wake. For admin wakes, `cell_execution` is named as a disallowed surface (a logical \"surface,\" not a path) so the boundary is grep-able from `wake.surfaces.disallowed` without reading the body.\n\n- ❌ `wake.surfaces.disallowed: [\".github\u002F\", \"branch_protection\"]` (cell execution implicit only in the body)\n- ✅ `wake.surfaces.disallowed: [\".github\u002Fworkflows\u002F\", \"cell_execution\", \"branch protection rules\", …]`\n\n### 3.9. Dispatch wakes declare their claim selector explicitly\n\nA wake declared with `role: dispatch` MUST declare both `protocol` (the concrete protocol qualifier; matches `protocol:{id}` labels) and `selector` (the label-set filter applied when claiming cells). Per cnos#454 dispatch-protocol the selector is the contract between the dispatch protocol and the wake — it names exactly which cells the wake claims. A dispatch wake that omits the selector is under-specified; per §3.5 the renderer rejects rather than silently defaulting.\n\n- ❌ `role: dispatch` declared but `selector` omitted; the renderer infers from label doctrine and \"just runs\"\n- ✅ `role: dispatch` with explicit `selector.include: [dispatch:cell, protocol:cds, status:todo]` + `selector.exclude: [status:in-progress, status:blocked, status:review, status:changes]`\n\nThe selector's `include` protocol entry MUST be `protocol:{protocol}` where `{protocol}` matches `wake.protocol` — the wake claims only cells whose qualifier matches its package's owned protocol (cross-protocol claims are a label-doctrine violation per cnos#468 §2.1).\n\n### 3.10. Declaration-only wakes are not silently activated\n\nA wake declared with `activation_state: declaration-only` is a contract specimen — it documents the intended wake shape but is not runnable yet (typically because downstream skill dependencies or renderer-extension work has not landed). The renderer MUST NOT silently produce a substrate artifact an operator installs without seeing the activation-state declaration; it MUST either:\n\n- **Refuse to install:** exit non-zero with a precise error naming the `activation_state` value; OR\n- **Render with explicit warning:** emit the substrate artifact with a top-of-file `# DO NOT INSTALL: activation_state = declaration-only` comment + a stderr warning, AND set the workflow's job-level `if:` gate to a permanently-false condition so the rendered artifact cannot fire even if committed.\n\nFor declaration-only wakes, refusal is the safest default; the warned-render is the carve-out when the operator explicitly wants the rendered artifact for diff review. When the preconditions hold, a future cycle flips `activation_state` to `live`, the renderer succeeds without the guard, and the substrate artifact is committed and activated. The flip is a package-authority decision (the `wake:` block changes), not a renderer decision.\n\n- ❌ The renderer reads `activation_state: declaration-only` and renders a normal-looking workflow (the operator commits and it fires without realizing the contract is incomplete)\n- ✅ The renderer refuses (`activation_state == declaration-only; refusing to render`), OR emits with a leading `# DO NOT INSTALL` banner + a never-fire `if:` gate\n\n---\n\n## 4. Verify\n\n### 4.1. Contract-shape check\n\nConfirm the wake `SKILL.md` carries `artifact_class: wake`, `scope: global`, and a `wake:` block, and that `cue vet` against `#Wake` passes (the I5 gate). Missing or mistyped fields are §3.1 \u002F §3.5 failures.\n\n### 4.2. Required-field check\n\nConfirm every required field in §2.1 is present and well-typed, plus the dispatch-shaped fields (§2.2) when `role: dispatch`. Missing required fields are §3.5 failures.\n\n### 4.3. Substrate-agnostic check\n\nRun: `grep -ciE 'github|workflow|yaml|GITHUB_TOKEN|runs-on|claude-code-action' {wake SKILL.md}`. The result MUST be 0 *except* for occurrences within an explicit \"relationship to existing substrate-bound wake\" prose section.\n\n### 4.4. Admin-only enforcement check\n\nFor wakes declared with `admin_only: true`: grep the body for explicit \"no cell execution\" language and for the defer-path. Both MUST be present in unambiguous form.\n\n### 4.5. Cross-reference completeness check\n\nFor each skill \u002F convention the body cites as consumed, confirm the body names the path. If a skill is depended on but not named, the body is under-citing; both directions are findings.\n\n### 4.6. Golden byte-identity check\n\nConfirm `cn install-wake {wake}` renders a live workflow byte-identical to the committed golden (`sha256(golden)==sha256(live)`), and that re-rendering is a no-op. The `install-wake golden` CI job is the oracle. The golden is the reviewed compiled artifact; a diff means either the declaration changed (re-render + commit) or the substrate artifact was hand-edited (§3.4 violation).\n\n---\n\n## 5. Cross-references\n\nThis skill is part of the wake-orchestration cluster (cnos#467). It defines the contract consumed by:\n\n- **cnos#467** (`agent\u002Fwake-orchestration`) — the master architecture; this contract operationalizes the \"package-owned wakes\" doctrine declared there.\n- **cnos#468** (`agent\u002Flabel-doctrine`) — the label control plane any admin wake's body cites for label-application discipline.\n- **cnos#470** — authored this skill and the agent-admin wake as the reference instance.\n- **cnos#450** (`agent\u002Fwake-template`, amended) — the renderer (`cn install-wake`) consumes this contract; required-field validation and substrate emission are its authority.\n- **cnos#454** (`agent\u002Fdispatch-protocol`, amended) — defines the claim mechanics for *dispatch*-role wakes; cited by dispatch wakes alongside this contract.\n- **cnos#524** (`wake-as-skill`) — migrated wakes to the typed `SKILL.md` model this skill describes; added `#Wake` + `artifact_class: wake` to `schemas\u002Fskill.cue` and made `cn-install-wake` read the wake `SKILL.md` as its only source.\n\nAdjacent skills and conventions:\n\n- `cnos.core\u002Fskills\u002Fagent\u002Factivate\u002FSKILL.md` — the activate skill any wake's body invokes for identity load.\n- `cnos.core\u002Fskills\u002Fagent\u002Fattach\u002FSKILL.md` — the attach skill any wake's body invokes for channel sync.\n- `cnos.core\u002Fskills\u002Fagent\u002Flabel-doctrine\u002FSKILL.md` — the label doctrine admin wakes cite for label-application discipline (cnos#468).\n- `cnos.core\u002Fskills\u002Fskill\u002FSKILL.md` — the skill-format meta-skill this skill (and every wake `SKILL.md`) conforms to.\n- `docs\u002Freference\u002Fconventions\u002FAGENT-ACTIVATION-LOG-v0.md` — the channel log convention an admin wake's `output` cites.\n\nReference instances:\n\n- `cnos.core\u002Forchestrators\u002Fagent-admin\u002FSKILL.md` — the agent-admin wake; the reference `role: admin` instance authored against this contract (cnos#470).\n- `cnos.cds\u002Forchestrators\u002Fcds-dispatch\u002FSKILL.md` — the CDS dispatch wake; the reference `role: dispatch` instance (cnos#467 Sub 4).\n\n---\n\n## 6. Failure modes\n\nThe four named failure modes from §1.3, plus two implementation-level ones:\n\n- **F1 — Substrate leakage.** _Symptom:_ The `wake:` block or body carries GitHub Actions YAML \u002F `${{ }}` interpolations \u002F hard-coded workflow paths. _Fix:_ §3.3; replace with logical equivalents the renderer maps.\n- **F2 — Renderer overreach.** _Symptom:_ The renderer fills in defaults for required fields the declaration omitted. _Fix:_ §3.5; the renderer errors on missing required fields.\n- **F3 — Contract drift.** _Symptom:_ A field's meaning changes without `#Wake` (and the renderer's internal shape) changing; declarations misparse. _Fix:_ §3.1; the change is made to both the CUE contract and the renderer.\n- **F4 — Hand-edited substrate artifact.** _Symptom:_ The live workflow or golden diverges from a fresh render. _Fix:_ §3.4; the renderer emits both; the byte-identity oracle fails on drift.\n- **F5 — Admin\u002Fdispatch boundary erosion.** _Symptom:_ A wake declared `admin_only: true` carries a body that does not forbid cell execution. _Fix:_ §3.7; admin wakes enforce the boundary in the body.\n- **F6 — Cross-reference drift.** _Symptom:_ The body depends on a skill it does not name, or names one it does not use. _Fix:_ §4.5; cross-references are explicit in the body.\n\n---\n\n## 7. Authority and stability\n\nThis skill is doctrine-adjacent: it defines the contract every cnos package follows when shipping a wake. Future changes follow the constitutive-change approval discipline that governs other doctrine-adjacent skills (compare `cnos.core\u002Fskills\u002Fagent\u002Flabel-doctrine\u002FSKILL.md §8 Versioning`).\n\nDrift between this skill and the renderer (`cn install-wake`) is resolved in favor of this skill — the contract is the canonical surface; the renderer follows. Drift between this skill and the typed `#Wake` definition is resolved by amending both together (this skill states the contract in prose; `#Wake` states it in CUE; they must agree). Drift between this skill and a concrete wake `SKILL.md` (e.g. `agent-admin\u002FSKILL.md`) is resolved in favor of this skill — the declaration is one *instance* of the contract; the contract governs.\n",{},"main","fb527e6c4bfb75c71fa75d6471b3aa3da32106d4","src\u002Fpackages\u002Fcnos.core\u002Fskills\u002Fagent\u002Fwake-provider",0,"https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos","https:\u002F\u002Fgithub.com\u002Fusurobor","Coherence engineer. Building git-CN.","2026-11-07 14:25:44",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add usurobor\u002Fcnos --skill wake-provider",{"tool":39,"command":40},"bunx","bunx skills add usurobor\u002Fcnos --skill wake-provider",{"tool":42,"command":43},"pnpm","pnpm dlx skills add usurobor\u002Fcnos --skill wake-provider","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.core\u002Fskills\u002Fagent\u002Fwake-provider\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fagile-field-reference.md","REFERENCE","参考文档",2190,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fpackages\u002Fmewkit\u002Fsrc\u002Fmigrate\u002Fmodules\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-jira-agile\u002Freferences\u002Fagile-field-reference.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fsprint-operations.md",1928,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fpackages\u002Fmewkit\u002Fsrc\u002Fmigrate\u002Fmodules\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-jira-agile\u002Freferences\u002Fsprint-operations.md",[58,89,109,127,144,165],{"skillNo":59,"name":60,"nameZh":61,"description":62,"descriptionZh":63,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":76,"publishedAt":20},"01M6CF8RWQPM0VXZG06XMR0FFX","issues\u002Ftriage","Issue 分诊与判定","Issue triage doctrine pointer. Use when classifying a new issue, deciding dispatch eligibility, or deciding whether to close\u002Fsupersede\u002Fdefer.","Issue 分诊规则指引。在对新 issue 进行分类、判定其是否符合派发条件，或决定将其关闭\u002F取代\u002F延后时使用。","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002Fskills\u002Ftriage\u002FSKILL.md",[66,71],{"categoryNo":67,"categoryName":68,"taxonomyType":69,"taxonomyTypeDesc":70},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":72,"categoryName":73,"taxonomyType":74,"taxonomyTypeDesc":75},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理","SCENARIO","使用场景",[77,78,79,80,81,82,83,84,85,86,87,88],"triage","issues","issues triage","issue triage","SET","how","decision","public","use","dispatch","issue","doctrine",{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":99,"publishedAt":20},"01M6CF8PJ812DD4APZ3WE8X67B","issues\u002Ftaxonomy","Issue 标签分类体系","Issue label taxonomy pointer. Use when classifying an issue's kind\u002Farea\u002Fpriority\u002Feffort\u002Fstatus\u002Fprotocol\u002Fdispatch labels, or when the board needs to interpret them.","Issue 标签分类体系指引。在对 issue 的 kind\u002Farea\u002Fpriority\u002Feffort\u002Fstatus\u002Fprotocol\u002Fdispatch 标签进行分类，或看板需要解读这些标签时使用。","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002Fskills\u002Ftaxonomy\u002FSKILL.md",[97,98],{"categoryNo":67,"categoryName":68,"taxonomyType":69,"taxonomyTypeDesc":70},{"categoryNo":72,"categoryName":73,"taxonomyType":74,"taxonomyTypeDesc":75},[78,100,101,102,103,104,81,105,84,106,85,86,107,87,108],"taxonomy","issues taxonomy","github","status","protocol","open","board","github issue","issue labels",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M6CF8KBMZ4D0CDJQ3PF1YVTP","issues\u002Fmap","Issue-board (Issue Pivot) generation domain. Use when reasoning about `cn issues map`'s fetch, taxonomy-parse, effort-computation, and render pipeline, or about the board's JSON\u002FHTML output contract.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002Fskills\u002Fmap\u002FSKILL.md",[],[78,116,102,117,118,119,81,120,100,105,82,121,122,106,123,124,125,126,85,87],"issues map","reasoning","data","pipeline","api","json","README","edit","interactive","fetch","generated",{"skillNo":128,"name":78,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M6CF8CZQH7G7B7RZPANQWR4G","cnos.issues package entrypoint. Use when reasoning about issue taxonomy, the Issue Pivot \u002F issue-board (`cn issues map`), the read-only CDS issue-state evaluator (`cn issues fsm evaluate`), or the current command-dispatch disposition of issue tooling.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.issues\u002FSKILL.md",[],[78,102,133,134,135,136,137,138,139,100,105,82,83,140,122,141,85,142,86,143],"pr","current state","run","artifacts","state","package","boundary","branch","command","only","cds",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":20},"01M6CF896XKSRQVB1CSHY8GSXB","receipt-stream","Cross-cycle receipt-stream doctrine for protocol-iteration. Use when γ closes a cycle and writes the per-cycle iteration artifact (`cdd-iteration.md`), when γ updates the cross-cycle aggregator at `.cdd\u002Fiterations\u002FINDEX.md`, when ε reads the receipt stream across cycles to surface protocol-gap patterns, when a finding's disposition lands a cross-repo patch and the cross-repo trace bundle attaches, or when a courtesy empty-findings stub is written for a `protocol_gap_count == 0` cycle.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.handoff\u002Fskills\u002Fhandoff\u002Freceipt-stream\u002FSKILL.md",[],[151,152,136,104,153,82,154,155,156,84,157,158,159,160,85,161,162,163,164,88],"receipt stream","handoff","index","learning","format","trace","repo","closeout","read","channel","embedded","patch","shape","cdd",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":20},"01M6CF84VCBME6RK8V6HAVDM8Z","mid-flight","Mid-flight γ→in-flight-α rescue channel. Use when γ needs to change a load-bearing fact (pinned axis, scope, AC, blocker) after α has begun coding, when γ edits the cycle's GitHub issue body mid-cycle, or when a spec change lands on origin\u002Fmain while α\u002Fβ polling sessions are in-flight.","https:\u002F\u002Fgithub.com\u002Fusurobor\u002Fcnos\u002Fblob\u002Fmain\u002Fsrc\u002Fpackages\u002Fcnos.handoff\u002Fskills\u002Fhandoff\u002Fmid-flight\u002FSKILL.md",[],[172,102,173,174,175,176,82,177,178,140,157,159,85,142,86,179,107,180,181,182],"mid flight","change","sessions","file","cache","pin","coordination","up","Legacy","gamma","artifact channel"]