[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C44KY41CQDTX9EX3R3Y8XE":3,"skill-same:01M6C44KY41CQDTX9EX3R3Y8XE":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6C44KY41CQDTX9EX3R3Y8XE","frame-credit-emission",null,"Frame credit row emission and deferred credit-input methodology for agents and CE Gate surfaces. Use when an agent or skill needs to write frame credits to the PR-body pipeline-metrics block, or when a pre-PR agent needs to persist a credit-input marker for later harvest. DO NOT USE FOR: predicate evaluation logic (use frame port adapter files), or builder function implementation (use frame-credit-ledger-core.ps1).","Grimblaz\u002Fagent-orchestra","Grimblaz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F74755849?v=4","01M6C430M9XZDHGHPWQVTQ3KMA","01M6C430RJY3MMX0QAZ3X8DR3Y",3,"MIT","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fframe-credit-emission\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32],"frame credit emission","pr","core","metrics","Evaluation","pipeline","methodology","write","use","credits","2026-11-10 10:12:30",false,"---\nname: frame-credit-emission\ndescription: \"Frame credit row emission and deferred credit-input methodology for agents and CE Gate surfaces. Use when an agent or skill needs to write frame credits to the PR-body pipeline-metrics block, or when a pre-PR agent needs to persist a credit-input marker for later harvest. DO NOT USE FOR: predicate evaluation logic (use frame port adapter files), or builder function implementation (use frame-credit-ledger-core.ps1).\"\n---\n\n# Frame Credit Emission\n\nReusable methodology for frame credit row emission across all 17 frame ports. Defines the terminal-step contract, credit-input marker schema, and locus-category routing for agents and skills that contribute to the frame ledger.\n\n## When to Use\n\n- When an agent completes a terminal step and must write a credit row to the PR-body pipeline-metrics block\n- When a pre-PR agent (Experience-Owner, Solution-Designer, Issue-Planner) must persist a credit-input marker for deferred emission\n- When Code-Conductor harvests credit-input markers at PR-creation time\n- When CE Gate orchestration evaluates per-surface applicability and emits credits for each surface independently\n\n## Locus Categories\n\nFrame credit emission follows one of four locus categories based on the port's lifecycle position relative to PR creation:\n\n### `agent-post-pr`\n\nPorts owned by specialist agents whose terminal step occurs after PR creation. The agent writes its credit row directly into the `\u003C!-- pipeline-metrics -->` block on the PR body via the appropriate `Build-*CreditRow` function.\n\n**Ports in this category**: `implement-code`, `implement-test`, `implement-refactor`, `implement-docs`, `process-review`\n\n**Terminal-step contract**: Read the port's adapter file from `frame\u002Fports\u002F{port}.yaml`, evaluate the `applies-when` predicate against the changeset, call the matching `Build-*CreditRow` function with port-specific evidence, and upsert the credit row into the PR-body pipeline-metrics block.\n\n**Dedupe contract** (`process-review` only): `Build-ProcessReviewCreditRow` is the canonical emitter. If a `process-review` credit row already exists in the pipeline-metrics block with `status: passed` or `status: not-applicable`, Code-Conductor skips emission (additive-merge rule, D9). Note: the SMC-16 `not-persisted` synthesis path covers only the `review` port (judge-sentinel-driven); it does not extend to `process-review` — no `process-review`-specific sentinel exists.\n\n### Senior Engineer skill-as-adapter credits\n\nFor `adapter-type: work` skill adapters, the default executor is `agents\u002FSenior-Engineer.agent.md`. Spine-Runner dispatches Senior Engineer with the planner-selected adapter path, and the Senior Engineer subagent emits the terminal credit row after validation; Spine-Runner verifies the row but does not write it directly.\n\nCredit attribution remains builder-owned. Existing `Build-*CreditRow` functions are unchanged; the work adapter passes its repo-relative adapter path as the builder adapter value and repeats that path in human-readable evidence. For `Build-ImplementCodeCreditRow`, the forward-compatible row key set guarded for #557 is exactly `port`, `adapter`, `status`, `evidence`. The #557 schema migration should preserve this set-equal assertion until the canonical schema intentionally changes.\n\n### `agent-pre-pr`\n\nPorts owned by pipeline-entry agents that complete before any PR exists. These agents use a two-stage deferred-emission pattern:\n\n- **Stage A (agent terminal step)**: Post a credit-input comment alongside the existing completion marker, with shape `\u003C!-- credit-input-{port}-{ID} --> \u003Cyaml>...\u003C\u002Fyaml>`. The YAML payload carries the port-specific evidence the builder needs.\n- **Stage B (PR-creation harvest)**: Code-Conductor reads the linked issue's comments at `gh pr create` time, locates `\u003C!-- credit-input-{port}-{ID} -->` blocks for each pipeline-entry port, and calls the matching `Build-*CreditRow` to construct the actual credit rows for the PR-body pipeline-metrics block.\n\n**Ports in this category**: `experience`, `design`, `plan`\n\n**Terminal-step contract**: Post a credit-input marker comment with the required YAML payload shape (see Credit-Input Marker Schema below). Code-Conductor harvests at PR-creation time.\n\n### `skill-only`\n\nPorts owned by skills rather than agents. Code-Conductor owns the selector and invokes the appropriate builder function with evidence from the skill's execution.\n\n**Ports in this category**: `post-pr`, `review`\n\n**Terminal-step contract**: Code-Conductor reads the port's adapter file from `frame\u002Fports\u002F{port}.yaml` and emits the skill-owned credit row for that port. For `post-pr`, call `Build-PostPrCreditRow` with the post-merge checklist outcomes from the `post-pr-review` skill. For `review`, follow the review-credit-emission reference, call `Build-ReviewCreditRow`, and use review-specific evidence such as judge ruling status, reviewed PR context, and persisted review ledger or sentinel details. Upsert the resulting credit row into the PR-body pipeline-metrics block.\n\n### `pr-body-pipeline-metrics`\n\nPorts emitted into the PR-body `\u003C!-- pipeline-metrics -->` block by Code-Conductor or the owning skill after PR creation, outside the specialist-agent terminal-step path.\n\n**Ports in this category**: `release-hygiene`, `post-fix-review`\n\n**Terminal-step contract**: Verify the port row in `credits[]`. `release-hygiene` uses the symmetric-bump state-file contract from the `plugin-release-hygiene` skill. `post-fix-review` uses the review-triggered `adversarial-review` post-fix adapter and may be explicitly skipped when the review trigger is absent.\n\n### `deferred-skill-only`\n\nFormalized trigger-conditional ports whose producer is intentionally deferred. Code-Conductor emits a not-applicable deferred row with `Build-DeferredPortCreditRow`.\n\n**Ports in this category**: `process-retrospective`\n\n**Terminal-step contract**: Verify a `credits[]` row with `status: not-applicable` and evidence beginning with `DEFERRED(#NNN):`; the port remains excluded from the coverage denominator until its `trigger-status` becomes live.\n\n### `ce-gate-per-surface`\n\nCE Gate surface ports, where each surface (CLI, browser, canvas, API) is evaluated independently. Code-Conductor delegates the CE Gate phase to Experience-Owner; for each surface, the `customer-experience` skill's CE Gate orchestration evaluates the surface-touch predicate and either exercises the surface or emits `not-applicable`.\n\n**Ports in this category**: `ce-gate-cli`, `ce-gate-browser`, `ce-gate-canvas`, `ce-gate-api`\n\n**Terminal-step contract**: Each `Build-CeGateCreditRow -Surface {name} -Step {terminal-step-id}` call is its own terminal step with its own integrity check. See \"Per-Surface Terminal-Step Contract\" below for orchestration-failure handling.\n\n## Port -> Locus Inference\n\nSpine-Runner consumes this table as the authoritative port-to-locus mapping. Add rows in this order so inferred frame walking remains deterministic.\n\n| Add order | Canonical port | Locus | Canonical adapter file |\n| --- | --- | --- | --- |\n| 1 | `experience` | `agent-pre-pr` | [frame\u002Fports\u002Fexperience.yaml](..\u002F..\u002Fframe\u002Fports\u002Fexperience.yaml) |\n| 2 | `design` | `agent-pre-pr` | [frame\u002Fports\u002Fdesign.yaml](..\u002F..\u002Fframe\u002Fports\u002Fdesign.yaml) |\n| 3 | `plan` | `agent-pre-pr` | [frame\u002Fports\u002Fplan.yaml](..\u002F..\u002Fframe\u002Fports\u002Fplan.yaml) |\n| 4 | `implement-code` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-code.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-code.yaml) |\n| 5 | `implement-test` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-test.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-test.yaml) |\n| 6 | `implement-refactor` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-refactor.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-refactor.yaml) |\n| 7 | `implement-docs` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-docs.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-docs.yaml) |\n| 8 | `process-review` | `agent-post-pr` | [frame\u002Fports\u002Fprocess-review.yaml](..\u002F..\u002Fframe\u002Fports\u002Fprocess-review.yaml) |\n| 9 | `post-pr` | `skill-only` | [frame\u002Fports\u002Fpost-pr.yaml](..\u002F..\u002Fframe\u002Fports\u002Fpost-pr.yaml) |\n| 10 | `review` | `skill-only` | [frame\u002Fports\u002Freview.yaml](..\u002F..\u002Fframe\u002Fports\u002Freview.yaml) |\n| 11 | `ce-gate-api` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-api.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-api.yaml) |\n| 12 | `ce-gate-browser` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-browser.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-browser.yaml) |\n| 13 | `ce-gate-canvas` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-canvas.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-canvas.yaml) |\n| 14 | `ce-gate-cli` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-cli.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-cli.yaml) |\n| 15 | `release-hygiene` | `pr-body-pipeline-metrics` | [frame\u002Fports\u002Frelease-hygiene.yaml](..\u002F..\u002Fframe\u002Fports\u002Frelease-hygiene.yaml) |\n| 16 | `post-fix-review` | `pr-body-pipeline-metrics` | [frame\u002Fports\u002Fpost-fix-review.yaml](..\u002F..\u002Fframe\u002Fports\u002Fpost-fix-review.yaml) |\n| 17 | `process-retrospective` | `deferred-skill-only` | [frame\u002Fports\u002Fprocess-retrospective.yaml](..\u002F..\u002Fframe\u002Fports\u002Fprocess-retrospective.yaml) |\n\n`auto-na` and `explicit-skip` are adapter variant suffixes (unified convention: `{port}-auto-na-adapter.md` \u002F `{port}-explicit-skip-adapter.md`), not canonical port rows. Do not add them to this table.\n\n`frame-credit-ledger` and `pre-pr-format` are descriptive locus-category aliases from design discussion. They refer to skill-only methodology that runs alongside the ports above, are not canonical ports in `frame\u002Fports\u002F*.yaml`, and Spine-Runner does not directly verify them.\n\n## Credit-Input Marker Schema\n\nPre-PR agents (`agent-pre-pr` locus category) use credit-input markers for deferred emission. The marker shape is:\n\n```text\n\u003C!-- credit-input-{port}-{ID} -->\n```\n\n```yaml\nport: { port }\nadapter: { adapter }\nevidence: \"{human-readable evidence string}\"\n```\n\n**Field requirements**:\n\n- `port`: The frame port identifier (e.g., `experience`, `design`, `plan`).\n- `adapter`: The adapter reference that produced this credit. Spine-Runner v2 frames use the repo-relative adapter path; legacy pipeline-entry emitters may continue to use builder adapter names such as `work-adapter` or `auto-na` until migrated.\n- `evidence`: A flat quoted string describing what the agent observed (e.g., `\"issue #123; plan-issue marker posted\"`). The harvester passes this string verbatim as the `-Evidence` parameter to the matching `Build-*CreditRow` function. Do **not** use a nested YAML mapping here - the harvester's flat key-value parser will silently drop nested fields.\n\n**Persistence rule**: Persist the credit-input marker as a GitHub issue comment immediately after the agent's completion marker comment, via `skills\u002Fsession-memory-contract\u002Fscripts\u002Fpersist-marker.ps1` (family `credit-input`, `post-new`, with a YAML-shape validator adapter enforcing the `port`\u002F`adapter`\u002F`evidence` field requirements above pre-write) — the ONLY documented write path for this marker; never a hand-composed `gh issue comment` call. **What that rule buys is a single audited writer — not protection from `updated_at` advancement.** This family is `post-new`, so the write POSTs a fresh comment and advances nothing; the hazard arrives when a write replaces a **whole body** already carrying someone else's marker. See `skills\u002Fsession-memory-contract\u002Freferences\u002Fhandoff-markers.md` § What the write-path rule buys for the write-shape split. See § Burst Persistence in the emitting agent's own body (Experience-Owner, Solution-Designer, Issue-Planner, Code-Conductor) for the canonical-order burst-manifest invocation that includes this write. Code-Conductor harvests all credit-input markers at PR-creation time by reading the issue's comments and calling the matching builder functions.\n\n**Additive-merge rule**: If the PR-body pipeline-metrics block already contains a credit row for a given port (e.g., from a prior credit-write pass), Code-Conductor skips harvesting the credit-input marker for that port. No double-write, no overwrite.\n\n## Per-Surface Terminal-Step Contract\n\nCE Gate surfaces are evaluated independently. Each surface's credit row is its own terminal step:\n\n1. **Predicate evaluation**: For each surface (`cli`, `browser`, `canvas`, `api`), evaluate the surface-touch predicate (`changeset.touches{Surface}Surface()`).\n2. **Surface exercise or N\u002FA**: If the predicate is true, exercise the surface and capture evidence. If false, emit `status: not-applicable`.\n3. **Credit emission**: Call `Build-CeGateCreditRow -Surface {name} -Step {terminal-step-id}` with the surface-specific evidence and upsert the credit row.\n4. **Orchestration-failure handling** _(planned - wrapper not yet implemented)_: when the orchestration wrapper ships, a crash after partial evaluation will cause it to emit the remaining-surface credits as `status: inconclusive` with `block_kind: orchestration` and `evidence: \"orchestration crashed before surface evaluated\"`. Until then, manually emit missing-surface rows on crash.\n\nCycle-aware emission uses `(port, terminal-step-id)` as the additive-merge identity for positive terminal steps. Every `Build-*CreditRow` function accepts optional `-Step`; omit it or pass `0` only for legacy plans and `spine-omitted: plan-too-small` plans, where the row keeps the legacy `(port, 0)` identity. For a spine-backed plan, pass the positive step number from the terminal slice marked for that port. Multiple rows for the same port may coexist only when their positive `terminal-step-id` values differ; an existing row with the same `(port, terminal-step-id)` wins and must not be overwritten.\n\n## Deferred-Port Emission Convention\n\nPorts whose trigger predicate is formalized but deferred to a future issue use `Build-DeferredPortCreditRow` instead of the port-specific builder. The evidence string always begins with `DEFERRED(#NNN):` — this prefix is the migration-detection contract (regex `^DEFERRED\\(#\\d+\\):`).\n\n**When to use**: the port's YAML declares `trigger-status: deferred` and `applies-when: never`. The port is excluded from the coverage denominator until `trigger-status` flips to `live` in the producing issue.\n\n**Example** (`process-retrospective`, deferred to #348):\n\n```yaml\nport: process-retrospective\nadapter: explicit-skip\nstatus: not-applicable\nevidence: \"DEFERRED(#348): trigger predicate deferred to #348 (since 2026-05-03); port excluded from coverage denominator until trigger-status flips to live.\"\n```\n\n**Pre- vs post-#348 distinction**: rows with the `DEFERRED(#NNN):` prefix are visually distinguishable from post-cutover rows (which will carry real trigger evidence). Migration scripts detect the prefix and convert deferred rows to live rows when #348 ships its producer.\n\n## Related\n\n- [frame\u002Fpipeline-metrics-v4-schema.md](..\u002F..\u002Fframe\u002Fpipeline-metrics-v4-schema.md) - Credit row schema\n- [skills\u002Fsession-memory-contract\u002FSKILL.md](..\u002Fsession-memory-contract\u002FSKILL.md) - SMC-17 credit-input marker persistence\n- [Documents\u002FDesign\u002Fframe-architecture.md](..\u002F..\u002FDocuments\u002FDesign\u002Fframe-architecture.md) - Frame port declarations and predicate DSL\n- `.github\u002Fscripts\u002Flib\u002Fframe-credit-ledger-core.ps1` - Builder functions (`Build-*CreditRow`)\n\n## Gotchas\n\n- Pre-PR agents (Experience-Owner, Solution-Designer, Issue-Planner) cannot write PR-body credits directly because no PR exists yet. They must post a `\u003C!-- credit-input-{port}-{ID} -->` marker with the required YAML payload. Code-Conductor harvests these markers at PR-creation time and calls the matching builder functions to populate the pipeline-metrics block.\n\n## Frame Ports Filled By This Skill\n\n**None**. This is supporting methodology only. This skill declares no `provides:` field and fills no frame port. It documents the emission contract for agents and skills that **do** fill frame ports.\n","# Frame Credit Emission\n\nReusable methodology for frame credit row emission across all 17 frame ports. Defines the terminal-step contract, credit-input marker schema, and locus-category routing for agents and skills that contribute to the frame ledger.\n\n## When to Use\n\n- When an agent completes a terminal step and must write a credit row to the PR-body pipeline-metrics block\n- When a pre-PR agent (Experience-Owner, Solution-Designer, Issue-Planner) must persist a credit-input marker for deferred emission\n- When Code-Conductor harvests credit-input markers at PR-creation time\n- When CE Gate orchestration evaluates per-surface applicability and emits credits for each surface independently\n\n## Locus Categories\n\nFrame credit emission follows one of four locus categories based on the port's lifecycle position relative to PR creation:\n\n### `agent-post-pr`\n\nPorts owned by specialist agents whose terminal step occurs after PR creation. The agent writes its credit row directly into the `\u003C!-- pipeline-metrics -->` block on the PR body via the appropriate `Build-*CreditRow` function.\n\n**Ports in this category**: `implement-code`, `implement-test`, `implement-refactor`, `implement-docs`, `process-review`\n\n**Terminal-step contract**: Read the port's adapter file from `frame\u002Fports\u002F{port}.yaml`, evaluate the `applies-when` predicate against the changeset, call the matching `Build-*CreditRow` function with port-specific evidence, and upsert the credit row into the PR-body pipeline-metrics block.\n\n**Dedupe contract** (`process-review` only): `Build-ProcessReviewCreditRow` is the canonical emitter. If a `process-review` credit row already exists in the pipeline-metrics block with `status: passed` or `status: not-applicable`, Code-Conductor skips emission (additive-merge rule, D9). Note: the SMC-16 `not-persisted` synthesis path covers only the `review` port (judge-sentinel-driven); it does not extend to `process-review` — no `process-review`-specific sentinel exists.\n\n### Senior Engineer skill-as-adapter credits\n\nFor `adapter-type: work` skill adapters, the default executor is `agents\u002FSenior-Engineer.agent.md`. Spine-Runner dispatches Senior Engineer with the planner-selected adapter path, and the Senior Engineer subagent emits the terminal credit row after validation; Spine-Runner verifies the row but does not write it directly.\n\nCredit attribution remains builder-owned. Existing `Build-*CreditRow` functions are unchanged; the work adapter passes its repo-relative adapter path as the builder adapter value and repeats that path in human-readable evidence. For `Build-ImplementCodeCreditRow`, the forward-compatible row key set guarded for #557 is exactly `port`, `adapter`, `status`, `evidence`. The #557 schema migration should preserve this set-equal assertion until the canonical schema intentionally changes.\n\n### `agent-pre-pr`\n\nPorts owned by pipeline-entry agents that complete before any PR exists. These agents use a two-stage deferred-emission pattern:\n\n- **Stage A (agent terminal step)**: Post a credit-input comment alongside the existing completion marker, with shape `\u003C!-- credit-input-{port}-{ID} --> \u003Cyaml>...\u003C\u002Fyaml>`. The YAML payload carries the port-specific evidence the builder needs.\n- **Stage B (PR-creation harvest)**: Code-Conductor reads the linked issue's comments at `gh pr create` time, locates `\u003C!-- credit-input-{port}-{ID} -->` blocks for each pipeline-entry port, and calls the matching `Build-*CreditRow` to construct the actual credit rows for the PR-body pipeline-metrics block.\n\n**Ports in this category**: `experience`, `design`, `plan`\n\n**Terminal-step contract**: Post a credit-input marker comment with the required YAML payload shape (see Credit-Input Marker Schema below). Code-Conductor harvests at PR-creation time.\n\n### `skill-only`\n\nPorts owned by skills rather than agents. Code-Conductor owns the selector and invokes the appropriate builder function with evidence from the skill's execution.\n\n**Ports in this category**: `post-pr`, `review`\n\n**Terminal-step contract**: Code-Conductor reads the port's adapter file from `frame\u002Fports\u002F{port}.yaml` and emits the skill-owned credit row for that port. For `post-pr`, call `Build-PostPrCreditRow` with the post-merge checklist outcomes from the `post-pr-review` skill. For `review`, follow the review-credit-emission reference, call `Build-ReviewCreditRow`, and use review-specific evidence such as judge ruling status, reviewed PR context, and persisted review ledger or sentinel details. Upsert the resulting credit row into the PR-body pipeline-metrics block.\n\n### `pr-body-pipeline-metrics`\n\nPorts emitted into the PR-body `\u003C!-- pipeline-metrics -->` block by Code-Conductor or the owning skill after PR creation, outside the specialist-agent terminal-step path.\n\n**Ports in this category**: `release-hygiene`, `post-fix-review`\n\n**Terminal-step contract**: Verify the port row in `credits[]`. `release-hygiene` uses the symmetric-bump state-file contract from the `plugin-release-hygiene` skill. `post-fix-review` uses the review-triggered `adversarial-review` post-fix adapter and may be explicitly skipped when the review trigger is absent.\n\n### `deferred-skill-only`\n\nFormalized trigger-conditional ports whose producer is intentionally deferred. Code-Conductor emits a not-applicable deferred row with `Build-DeferredPortCreditRow`.\n\n**Ports in this category**: `process-retrospective`\n\n**Terminal-step contract**: Verify a `credits[]` row with `status: not-applicable` and evidence beginning with `DEFERRED(#NNN):`; the port remains excluded from the coverage denominator until its `trigger-status` becomes live.\n\n### `ce-gate-per-surface`\n\nCE Gate surface ports, where each surface (CLI, browser, canvas, API) is evaluated independently. Code-Conductor delegates the CE Gate phase to Experience-Owner; for each surface, the `customer-experience` skill's CE Gate orchestration evaluates the surface-touch predicate and either exercises the surface or emits `not-applicable`.\n\n**Ports in this category**: `ce-gate-cli`, `ce-gate-browser`, `ce-gate-canvas`, `ce-gate-api`\n\n**Terminal-step contract**: Each `Build-CeGateCreditRow -Surface {name} -Step {terminal-step-id}` call is its own terminal step with its own integrity check. See \"Per-Surface Terminal-Step Contract\" below for orchestration-failure handling.\n\n## Port -> Locus Inference\n\nSpine-Runner consumes this table as the authoritative port-to-locus mapping. Add rows in this order so inferred frame walking remains deterministic.\n\n| Add order | Canonical port | Locus | Canonical adapter file |\n| --- | --- | --- | --- |\n| 1 | `experience` | `agent-pre-pr` | [frame\u002Fports\u002Fexperience.yaml](..\u002F..\u002Fframe\u002Fports\u002Fexperience.yaml) |\n| 2 | `design` | `agent-pre-pr` | [frame\u002Fports\u002Fdesign.yaml](..\u002F..\u002Fframe\u002Fports\u002Fdesign.yaml) |\n| 3 | `plan` | `agent-pre-pr` | [frame\u002Fports\u002Fplan.yaml](..\u002F..\u002Fframe\u002Fports\u002Fplan.yaml) |\n| 4 | `implement-code` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-code.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-code.yaml) |\n| 5 | `implement-test` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-test.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-test.yaml) |\n| 6 | `implement-refactor` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-refactor.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-refactor.yaml) |\n| 7 | `implement-docs` | `agent-post-pr` | [frame\u002Fports\u002Fimplement-docs.yaml](..\u002F..\u002Fframe\u002Fports\u002Fimplement-docs.yaml) |\n| 8 | `process-review` | `agent-post-pr` | [frame\u002Fports\u002Fprocess-review.yaml](..\u002F..\u002Fframe\u002Fports\u002Fprocess-review.yaml) |\n| 9 | `post-pr` | `skill-only` | [frame\u002Fports\u002Fpost-pr.yaml](..\u002F..\u002Fframe\u002Fports\u002Fpost-pr.yaml) |\n| 10 | `review` | `skill-only` | [frame\u002Fports\u002Freview.yaml](..\u002F..\u002Fframe\u002Fports\u002Freview.yaml) |\n| 11 | `ce-gate-api` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-api.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-api.yaml) |\n| 12 | `ce-gate-browser` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-browser.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-browser.yaml) |\n| 13 | `ce-gate-canvas` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-canvas.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-canvas.yaml) |\n| 14 | `ce-gate-cli` | `ce-gate-per-surface` | [frame\u002Fports\u002Fce-gate-cli.yaml](..\u002F..\u002Fframe\u002Fports\u002Fce-gate-cli.yaml) |\n| 15 | `release-hygiene` | `pr-body-pipeline-metrics` | [frame\u002Fports\u002Frelease-hygiene.yaml](..\u002F..\u002Fframe\u002Fports\u002Frelease-hygiene.yaml) |\n| 16 | `post-fix-review` | `pr-body-pipeline-metrics` | [frame\u002Fports\u002Fpost-fix-review.yaml](..\u002F..\u002Fframe\u002Fports\u002Fpost-fix-review.yaml) |\n| 17 | `process-retrospective` | `deferred-skill-only` | [frame\u002Fports\u002Fprocess-retrospective.yaml](..\u002F..\u002Fframe\u002Fports\u002Fprocess-retrospective.yaml) |\n\n`auto-na` and `explicit-skip` are adapter variant suffixes (unified convention: `{port}-auto-na-adapter.md` \u002F `{port}-explicit-skip-adapter.md`), not canonical port rows. Do not add them to this table.\n\n`frame-credit-ledger` and `pre-pr-format` are descriptive locus-category aliases from design discussion. They refer to skill-only methodology that runs alongside the ports above, are not canonical ports in `frame\u002Fports\u002F*.yaml`, and Spine-Runner does not directly verify them.\n\n## Credit-Input Marker Schema\n\nPre-PR agents (`agent-pre-pr` locus category) use credit-input markers for deferred emission. The marker shape is:\n\n```text\n\u003C!-- credit-input-{port}-{ID} -->\n```\n\n```yaml\nport: { port }\nadapter: { adapter }\nevidence: \"{human-readable evidence string}\"\n```\n\n**Field requirements**:\n\n- `port`: The frame port identifier (e.g., `experience`, `design`, `plan`).\n- `adapter`: The adapter reference that produced this credit. Spine-Runner v2 frames use the repo-relative adapter path; legacy pipeline-entry emitters may continue to use builder adapter names such as `work-adapter` or `auto-na` until migrated.\n- `evidence`: A flat quoted string describing what the agent observed (e.g., `\"issue #123; plan-issue marker posted\"`). The harvester passes this string verbatim as the `-Evidence` parameter to the matching `Build-*CreditRow` function. Do **not** use a nested YAML mapping here - the harvester's flat key-value parser will silently drop nested fields.\n\n**Persistence rule**: Persist the credit-input marker as a GitHub issue comment immediately after the agent's completion marker comment, via `skills\u002Fsession-memory-contract\u002Fscripts\u002Fpersist-marker.ps1` (family `credit-input`, `post-new`, with a YAML-shape validator adapter enforcing the `port`\u002F`adapter`\u002F`evidence` field requirements above pre-write) — the ONLY documented write path for this marker; never a hand-composed `gh issue comment` call. **What that rule buys is a single audited writer — not protection from `updated_at` advancement.** This family is `post-new`, so the write POSTs a fresh comment and advances nothing; the hazard arrives when a write replaces a **whole body** already carrying someone else's marker. See `skills\u002Fsession-memory-contract\u002Freferences\u002Fhandoff-markers.md` § What the write-path rule buys for the write-shape split. See § Burst Persistence in the emitting agent's own body (Experience-Owner, Solution-Designer, Issue-Planner, Code-Conductor) for the canonical-order burst-manifest invocation that includes this write. Code-Conductor harvests all credit-input markers at PR-creation time by reading the issue's comments and calling the matching builder functions.\n\n**Additive-merge rule**: If the PR-body pipeline-metrics block already contains a credit row for a given port (e.g., from a prior credit-write pass), Code-Conductor skips harvesting the credit-input marker for that port. No double-write, no overwrite.\n\n## Per-Surface Terminal-Step Contract\n\nCE Gate surfaces are evaluated independently. Each surface's credit row is its own terminal step:\n\n1. **Predicate evaluation**: For each surface (`cli`, `browser`, `canvas`, `api`), evaluate the surface-touch predicate (`changeset.touches{Surface}Surface()`).\n2. **Surface exercise or N\u002FA**: If the predicate is true, exercise the surface and capture evidence. If false, emit `status: not-applicable`.\n3. **Credit emission**: Call `Build-CeGateCreditRow -Surface {name} -Step {terminal-step-id}` with the surface-specific evidence and upsert the credit row.\n4. **Orchestration-failure handling** _(planned - wrapper not yet implemented)_: when the orchestration wrapper ships, a crash after partial evaluation will cause it to emit the remaining-surface credits as `status: inconclusive` with `block_kind: orchestration` and `evidence: \"orchestration crashed before surface evaluated\"`. Until then, manually emit missing-surface rows on crash.\n\nCycle-aware emission uses `(port, terminal-step-id)` as the additive-merge identity for positive terminal steps. Every `Build-*CreditRow` function accepts optional `-Step`; omit it or pass `0` only for legacy plans and `spine-omitted: plan-too-small` plans, where the row keeps the legacy `(port, 0)` identity. For a spine-backed plan, pass the positive step number from the terminal slice marked for that port. Multiple rows for the same port may coexist only when their positive `terminal-step-id` values differ; an existing row with the same `(port, terminal-step-id)` wins and must not be overwritten.\n\n## Deferred-Port Emission Convention\n\nPorts whose trigger predicate is formalized but deferred to a future issue use `Build-DeferredPortCreditRow` instead of the port-specific builder. The evidence string always begins with `DEFERRED(#NNN):` — this prefix is the migration-detection contract (regex `^DEFERRED\\(#\\d+\\):`).\n\n**When to use**: the port's YAML declares `trigger-status: deferred` and `applies-when: never`. The port is excluded from the coverage denominator until `trigger-status` flips to `live` in the producing issue.\n\n**Example** (`process-retrospective`, deferred to #348):\n\n```yaml\nport: process-retrospective\nadapter: explicit-skip\nstatus: not-applicable\nevidence: \"DEFERRED(#348): trigger predicate deferred to #348 (since 2026-05-03); port excluded from coverage denominator until trigger-status flips to live.\"\n```\n\n**Pre- vs post-#348 distinction**: rows with the `DEFERRED(#NNN):` prefix are visually distinguishable from post-cutover rows (which will carry real trigger evidence). Migration scripts detect the prefix and convert deferred rows to live rows when #348 ships its producer.\n\n## Related\n\n- [frame\u002Fpipeline-metrics-v4-schema.md](..\u002F..\u002Fframe\u002Fpipeline-metrics-v4-schema.md) - Credit row schema\n- [skills\u002Fsession-memory-contract\u002FSKILL.md](..\u002Fsession-memory-contract\u002FSKILL.md) - SMC-17 credit-input marker persistence\n- [Documents\u002FDesign\u002Fframe-architecture.md](..\u002F..\u002FDocuments\u002FDesign\u002Fframe-architecture.md) - Frame port declarations and predicate DSL\n- `.github\u002Fscripts\u002Flib\u002Fframe-credit-ledger-core.ps1` - Builder functions (`Build-*CreditRow`)\n\n## Gotchas\n\n- Pre-PR agents (Experience-Owner, Solution-Designer, Issue-Planner) cannot write PR-body credits directly because no PR exists yet. They must post a `\u003C!-- credit-input-{port}-{ID} -->` marker with the required YAML payload. Code-Conductor harvests these markers at PR-creation time and calls the matching builder functions to populate the pipeline-metrics block.\n\n## Frame Ports Filled By This Skill\n\n**None**. This is supporting methodology only. This skill declares no `provides:` field and fills no frame port. It documents the emission contract for agents and skills that **do** fill frame ports.\n",{"name":5,"description":7},"main","d5486aacc32c9ca1b07173cfd530f8fe75c29e58","skills\u002Fframe-credit-emission",0,"https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra","https:\u002F\u002Fgithub.com\u002FGrimblaz","2026-08-16 01:12:46",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Grimblaz\u002Fagent-orchestra --skill frame-credit-emission",{"tool":51,"command":52},"bunx","bunx skills add Grimblaz\u002Fagent-orchestra --skill frame-credit-emission",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Grimblaz\u002Fagent-orchestra --skill frame-credit-emission","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fframe-credit-emission\u002FSKILL.md",true,[],[60,92,116,131,157,178],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":72,"publishedAt":33},"01M6C48YMJVFHM7DVGG1WWW5RJ","webapp-testing","Playwright end-to-end testing guidance for web apps, with practical patterns and setup steps. Use when creating or improving browser-based E2E coverage, test stability, and CI execution. DO NOT USE FOR: React component tests (use ui-testing), canvas game interaction (use browser-canvas-testing), TDD workflow (use test-driven-development), debugging failures (use systematic-debugging), or randomized property tests (use property-based-testing).","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[66,69],{"categoryNo":67,"categoryName":68,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":70,"categoryName":71,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",[73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,31],"testing","webapp testing","webapp","canvas","tdd","workflow","playwright","test","web","react","component","debugging","development","browser","ci","execution","e2e","game","coverage",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":33},"01M6C48TNNP2KCSQXV8YK7SK49","verification-before-completion","Evidence-based verification checklist before marking work complete. Use before PRs, releases, marking tickets done, or any \"I'm finished\" declaration; also when naming a baseline commit for a differential suite claim, when designing a mutation campaign or red-run evidence, when making an absence claim, a universal claim, or a one-time demonstration offered as a standing guarantee, when attributing a measurement or claiming a sweep or verification loop is complete, and when stating what a check or a CI suite will do about a change. DO NOT USE FOR: post-merge cleanup or archival (use post-pr-review) or processing GitHub review comments (use code-review-intake).","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[99,100,101,102,103,104,24,105,106,107,108,109,87,110,111,112,113,31,114,115],"verification","verification before completion","review","change","commit","merge","cleanup","run","code","code-review","intake","loop","verification loop","work","check","evidence","campaign",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":33},"01M6C48QZWNTP7JGKD32QZAKKX","validation-methodology","Reusable validation and review methodology for staged validation, failure triage, and prosecution-depth setup. Use when running validation ladders, triaging failures, or executing adversarial review passes. DO NOT USE FOR: CE Gate orchestration, specialist dispatch ownership, or step execution flow (keep those in Code-Conductor).","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fvalidation-methodology\u002FSKILL.md",[],[123,29,124,101,125,126,127,128,107,129,88,31,130],"validation","validation methodology","triage","orchestration","setup","adversarial review","flow","dispatch",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":143,"publishedAt":33},"01M6C48MCAHG5Z79BJ369CRYRZ","upstream-onboarding","Shared opening-phase protocol for upstream agents (Experience-Owner, Solution-Designer, Issue-Planner) and Code-Conductor when invoked on an existing GitHub issue. Renders a scaled context brief and runs a standards check on inherited work at each phase boundary. Use when a user-invocable agent receives a request referencing an existing GitHub issue and must load solution-authoring and upstream-onboarding at the opening phase. DO NOT USE FOR: subagent dispatches (which already operate within an assessed session context); post-merge review (use post-pr-review); research or non-tree subagents.","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fupstream-onboarding\u002FSKILL.md",[137,138],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":139,"categoryName":140,"taxonomyType":141,"taxonomyTypeDesc":142},"01JBSEEDCAT000000000000038","人力资源","PROFESSION","适用职业",[144,145,101,146,147,104,148,24,107,149,150,151,152,153,154,112,113,155,156,31],"onboarding","upstream onboarding","github","research","standards check","protocol","brief","boundary","designer","subagent","planner","user","session",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":171,"publishedAt":33},"01M6C48GPVE120TGPMD1CS365H","ui-testing","Resilient React component testing strategies focusing on user behavior. Use when writing or reviewing component-level React tests, fixing flaky component tests, or establishing React testing patterns. DO NOT USE FOR: Playwright E2E tests (use webapp-testing), canvas game interaction (use browser-canvas-testing), TDD workflow (use test-driven-development), debugging failures (use systematic-debugging), UI component design (use frontend-design), or randomized property tests (use property-based-testing).","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fui-testing\u002FSKILL.md",[163,164,165,168],{"categoryNo":67,"categoryName":68,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":70,"categoryName":71,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":166,"categoryName":167,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":169,"categoryName":170,"taxonomyType":141,"taxonomyTypeDesc":142},"01JBSEEDCAT000000000000032","设计师",[73,172,173,174,175,176,76,78,79,80,82,83,84,85,86,177,89,90,31,75],"ui","ui testing","frontend","design","writing","testing patterns",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":186,"publishedAt":33},"01M6C48DRJ9XBDR2FW0W37DY53","ui-iteration","Reusable screenshot-driven UI polish workflow for iterative visual refinement. Use when improving layout, hierarchy, spacing, feedback, or Tailwind-based presentation through repeated review-and-adjust passes. DO NOT USE FOR: functional bug fixing, accessibility-only audits, or major redesign strategy work (use Code-Smith or frontend-design).","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fui-iteration\u002FSKILL.md",[184,185],{"categoryNo":70,"categoryName":71,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":169,"categoryName":170,"taxonomyType":141,"taxonomyTypeDesc":142},[172,187,174,175,101,78,188,107,189,190,191,192,193,112,194,195,31,196],"ui iteration","accessibility","screenshot","Tailwind","polish","ui polish","feedback","redesign","strategy","only"]