[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71GKSMDXCGJJ4QWSVJAW8Q2":3,"skill-same:01M71GKSMDXCGJJ4QWSVJAW8Q2":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":54,"install":55,"resources":67},"01M71GKSMDXCGJJ4QWSVJAW8Q2","guild-reflect",null,"Post-task reflection. Consumes a compact run summary (from scripts\u002Ftrace-summarize.ts), handoff receipts, and verify.md, and emits proposals to .guild\u002Freflections\u002F\u003Crun-id>.md. Proposals cover (a) skill-improvement candidates (a skill triggered wrong N times, or body needs a new section), (b) missing-specialist candidates (gap repeated >=3 runs), (c) context-bundle issues (over 3k tokens, summarization hit), (d) followups not addressed. Does NOT write to .guild\u002Fwiki\u002F — that is wiki-ingest \u002F decisions territory. TRIGGER for \"reflect on this run\", \"what did we learn\", \"run post-task reflection\", \"capture lessons from the specialist outputs\", \"any skill gaps in this run\". DO NOT TRIGGER for wiki ingest (guild:wiki-ingest owns), capturing a decision (guild:decisions), any mid-task reflection (only fires post-verify-done), or promoting a reflection to the wiki.","lookatitude\u002Fguild","lookatitude","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F524917?v=4","01M71GJ2KGXFSJZKAZC5P1ZXXM","Miguel Pinto","01M71GJ2MH4SH9WJKP8M7XZZ0P",8,"MIT","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fmeta\u002Freflect\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"reflect","guild","guild reflect","write","scripts","territory","run","maybe","done","learn","when","compact","wiki","new","only","issues","decision","hooks","Meta","error","2026-11-10 10:12:30",false,"---\nname: guild-reflect\ndescription: Post-task reflection. Consumes a compact run summary (from scripts\u002Ftrace-summarize.ts), handoff receipts, and verify.md, and emits proposals to .guild\u002Freflections\u002F\u003Crun-id>.md. Proposals cover (a) skill-improvement candidates (a skill triggered wrong N times, or body needs a new section), (b) missing-specialist candidates (gap repeated >=3 runs), (c) context-bundle issues (over 3k tokens, summarization hit), (d) followups not addressed. Does NOT write to .guild\u002Fwiki\u002F — that is wiki-ingest \u002F decisions territory. TRIGGER for \"reflect on this run\", \"what did we learn\", \"run post-task reflection\", \"capture lessons from the specialist outputs\", \"any skill gaps in this run\". DO NOT TRIGGER for wiki ingest (guild:wiki-ingest owns), capturing a decision (guild:decisions), any mid-task reflection (only fires post-verify-done), or promoting a reflection to the wiki.\nwhen_to_use: Final step of Guild lifecycle after guild:verify-done passes. Invoked automatically by hooks\u002Fmaybe-reflect.ts Stop hook when the heuristic gate (>=1 specialist dispatched + >=1 file edited + no error) clears.\ntype: meta\nindexed: true\n---\n\n# guild:reflect\n\nImplements the self-evolution pipeline's reflect step and the memory write path's proposal side. Runs last in the `\u002Fguild` lifecycle, after `guild:verify-done` writes `verify.md` with pass status. Gated by `hooks\u002Fmaybe-reflect.ts`: the Stop hook only fires this skill when the run actually did meaningful work (at least one specialist dispatched, at least one file edited, no hard error). Skills that triggered but no-oped do not earn a reflection.\n\nThis skill is a **proposer**, not a writer. Durable memory lives under `.guild\u002Fwiki\u002F` and only `guild:wiki-ingest` and `guild:decisions` are allowed to promote content there. This skill writes a single proposal file per run and stops.\n\n## Input\n\nFour sources, all materialized under `.guild\u002Fruns\u002F\u003Crun-id>\u002F` by the time this skill fires. Sources 1–3 are the original; source 4 is the preferred upstream when present:\n\n1. `.guild\u002Fruns\u002F\u003Crun-id>\u002Fsummary.md` — the compact run summary produced by `scripts\u002Ftrace-summarize.ts` from `events.ndjson`. Contains frontmatter (`run_id`, `started_at`, `ended_at`, `duration_ms`, `event_count`, `specialists_dispatched`, `dispatched_lanes`, `dispatch_receipts`, `tools_used`, `files_touched_count`, `errors`, `ok_rate`, and the dispatch-integrity sink counts `backend_degradations` \u002F `tier_violations` \u002F `untiered_dispatches`) plus body sections (Timeline, Specialist activity, Notable events, **Sink audit**, Reflection hints). The **Sink audit** section is the consumer of the run's `logs\u002Fbackend-degradation.jsonl` + `logs\u002Ftier-dispatch.jsonl` sinks: a non-zero `backend_degradations` \u002F `tier_violations` \u002F `untiered_dispatches` means a lane ran on a downgraded backend or dispatched un-tiered — treat each as a skill-improvement or followup-backlog proposal (§Proposal categories) with the Sink audit block as the verbatim evidence, so a dispatch-dirty run is surfaced automatically rather than staying auditable-by-path. Reflect reads this instead of the raw event log so it stays grep-able. **P6 enrichment planned:** `capture-telemetry.ts` does not yet emit per-skill trigger counts or context-bundle sizes, so those signals come from handoff receipts (§8.2 `followups:` \u002F `assumptions:`) and from the verify.md report — not from summary.md today. When P6 extends the telemetry schema, this skill's routing will prefer the richer summary fields.\n2. `.guild\u002Fruns\u002F\u003Crun-id>\u002Fhandoffs\u002F*.md` — per-specialist handoff receipts per `§8.2`. Provides `changed_files`, `assumptions`, `evidence`, and `followups`. Followups are the richest signal for proposal categories below. When a receipt is consumed, the embedded ```` ```guild.handoff.v2 ```` JSON block is the machine truth a consumer reads; the `guild.handoff_receipt.v1` YAML frontmatter is human-review context only (see §\"Handoff contract\" of the communication format policy). Read these §8.2 fields from that one embedded envelope — a frontmatter-only receipt with no embedded v2 block is not a valid machine receipt.\n3. `.guild\u002Fruns\u002F\u003Crun-id>\u002Fverify.md` — from `guild:verify-done`. Confirms the run actually passed (reflect never fires on a failed run, by the hook gate, but re-check the overall status line defensively) and carries the non-blocking followups that the verify step forwarded.\n4. `.guild\u002Fruns\u002F\u003Crun-id>\u002Flearn\u002Fharvest-candidates.json` — **preferred upstream when present** (SC-C from learn-knowledge-convergence). Written by `guild:learn-harvest` when it is explicitly invoked at a phase boundary or run close (not auto-routed by `LearningCheckpoint`, which only routes verdicts to the reflections queue). When this file exists, populate proposal categories directly from its `reflection_candidates` array rather than re-extracting from the raw handoffs — `harvest-candidates.json` already carries structured `category`, `description`, `evidence_quote`, `source_refs`, and `significance` per entry. Source 2 (raw handoffs) is used as fallback when `harvest-candidates.json` is absent or predates this contract.\n\n## Proposal categories\n\nWalk the inputs once and classify every observation into one of four buckets. Empty buckets are omitted from the output.\n\n1. **Skill improvement.** A handoff receipt's `followups:` explicitly names a skill gap (e.g., \"guild:context-assemble missed the wiki\u002Fdecisions\u002F page\"), OR an `assumptions:` entry flags a skill behavior that surprised the specialist, OR the same skill shows up in ≥ 2 followups across the run's receipts. Evidence for a proposal is the verbatim followup\u002Fassumption line naming the skill. Record the skill name, the failure mode, and a quote. **P6 enrichment:** once `summary.md` carries per-skill trigger counts, reflect can additionally catch trigger\u002Fno-op mismatches by comparing against each skill's `should_trigger` \u002F `should_not_trigger` evals.\n\n2. **Missing specialist.** A recurring gap across unrelated tasks — the *same* kind of work kept getting handled by a generalist lane or rejected as out-of-scope. Per `§11.1`, the threshold is >=3 runs; this skill only logs the candidate for the current run, it does not aggregate across runs (see Aggregation rule). For P5, record the proposed role name and the evidence; the actual specialist creation is `guild:create-specialist` in P6.\n\n3. **Context bundle issue.** `guild:context-assemble` hit the 6k token cap, or summarization was invoked mid-run, or a specialist's followup flagged missing context. Record the affected specialist\u002Fbundle pair and which wiki pages (if any) were dropped.\n\n4. **Followup backlog.** Every entry from the union of handoff `followups:` that verify-done carried forward as \"non-blocking\" and that does not already appear as a new task in `.guild\u002Fruns\u002F`. Record `\u003Cspecialist>\u002F\u003Ctaskid>` pairs so `\u002Fguild:stats` can show them grouped by owner.\n\n## Output\n\nExactly one file per run:\n\n```\n.guild\u002Freflections\u002F\u003Crun-id>.md\n```\n\nFrontmatter:\n\n```yaml\n---\nrun_id: \u003Cid>\ndate: \u003CYYYY-MM-DD>\ntask_slug: \u003Cslug>\nproposals:\n  skill_improvement: [\u003Cskill-name>, ...]\n  missing_specialist: [\u003Cproposed-role>, ...]\n  context_issues: [\u003Cspecialist>\u002F\u003Cbundle>, ...]\n  followup_backlog: [\u003Cspecialist>\u002F\u003Ctaskid>, ...]\nsignificance: low | medium | high\ncodex_review: RAN | SKIPPED   # REQUIRED on self-build runs — see § Codex-review marker\n---\n```\n\nBody: one `##` section per non-empty category. Each section lists the proposal(s) with a one-paragraph rationale and a verbatim evidence snippet (summary row, followup line, or verify.md excerpt). Empty categories are omitted entirely — do not emit \"No findings\" sections, the frontmatter already records that via empty lists.\n\n## Significance threshold\n\nPer `§15.2` (\"evolution loop overfits\" risk), not every reflection deserves attention.\n\n- **low** — zero non-empty categories, or only one followup-backlog entry. Stays in `.guild\u002Freflections\u002F` as an audit record, not surfaced in `\u002Fguild:stats` by default.\n- **medium** — at least one skill-improvement or context-bundle issue, or >=3 followup-backlog entries. Surfaces in `\u002Fguild:stats` (P6) and is a candidate input to `guild:evolve-skill` (P6).\n- **high** — a missing-specialist proposal, or a skill-improvement proposal with evidence from >=2 earlier reflections (cross-referenced by name; reflect does not aggregate but it may cite). Forces a `\u002Fguild:stats` surface.\n\nTier the reflection before writing the frontmatter so the significance field is consistent with the body.\n\n## Codex-review marker (self-build runs)\n\nImplements the reflect half of the FU-E codex-skip discipline contract (`plugin\u002FCLAUDE.md` §\"Codex adversarial review\"; self-evolution gate). On **self-build runs** (developing the Guild plugin itself — `plugin\u002FCLAUDE.md` is present), every reflection's frontmatter MUST carry a canonical machine-readable field:\n\n```yaml\ncodex_review: RAN        # codex adversarial review actually ran at this run's gates\n# or\ncodex_review: SKIPPED    # codex was unavailable \u002F unused at the run's gates\n```\n\nRules:\n\n- **Always emit it on self-build runs.** Omitting the field is a silent skip — the `hooks\u002Fmaybe-reflect.ts` Stop-hook guard treats a reflection that records no codex run as a *skip*, but prose-only reflections that lack the field count as **zero** signal, so the consecutive-skip streak never advances and the guard never arms. Emitting the canonical field is the reliable path the hook prefers (it has legacy `proposals.skill_improvement: [guild:codex-review]` and body-comment `\u003C!-- codex_review: SKIPPED -->` fallbacks, but the frontmatter field is authoritative).\n- **`RAN`** — emit when `guild:codex-review` \u002F `guild:review-broker` actually executed and reached a verdict at one or more of this run's G-gates (G-spec \u002F G-plan \u002F G-lane \u002F G-diagnose). A `RAN` reflection **breaks the consecutive-skip streak** — this is how the discipline self-clears (see below).\n- **`SKIPPED`** — emit when codex was unavailable (`codex --version` failed \u002F not authenticated), the gate emitted its `warn: codex-review skipped …` line, or no adversarial review ran at any gate. The hook counts consecutive `SKIPPED` reflections; at ≥ 3 it writes the blocking sentinel `.guild\u002Fcodex-skip-streak.json` and exits non-zero.\n\n**How the streak clears.** The hook counts the streak of *consecutive most-recent* reflections (newest first by mtime) that record a skip; the first reflection that does **not** record a skip ends the run. So a single reflection with `codex_review: RAN` at the top of the trail breaks the streak — the next Stop-hook evaluation computes `streak = 0` and does not re-arm. This is the canonical clear path: run codex, then a `RAN` reflection resets the discipline. (The stale sentinel file is consumed\u002Fcleared by the gate-read side in `guild:codex-review` — reflect's only job is to write the honest `RAN`\u002F`SKIPPED` field; it never touches `.guild\u002Fcodex-skip-streak.json`.)\n\nOn **non-self-build runs** (consuming repos), the field is optional — the guard only arms in self-build context — but emitting it is harmless and recommended for forward consistency.\n\n## Aggregation rule\n\nReflect writes exactly ONE reflection per run and never modifies prior reflections. Cross-run aggregation — \"the same skill has been named in three reflections, open an evolve task\" — is `\u002Fguild:evolve`'s job per `§11.1`. The automatic threshold there is >=3 reflections for a single skill; that counter is computed by walking `.guild\u002Freflections\u002F*.md` frontmatter `proposals.skill_improvement`, and reflect's job is to fill that frontmatter correctly so evolve can count.\n\nIf you notice a pattern worth aggregating, emit the per-run evidence and stop. Do not pre-emptively collapse into a single cross-run proposal.\n\nAfter this reflection is written, run the deterministic cross-run aggregator so the\n§11.1 threshold is counted by tooling, not recalled in-context:\n\n```\nnode ${GUILD_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-$HOME\u002F.local\u002Fshare\u002Fguild\u002Fdist\u002Fclaude-code}}\u002Fruntime\u002Fscripts\u002Fanalyze-runs.js --cwd \u003Crepo-root>\n```\n\nIt reads every `.guild\u002Freflections\u002F*.md`'s `proposals.skill_improvement` \u002F\n`proposals.missing_specialist` frontmatter plus handoff `status: escalate`\nreceipts, and writes `.guild\u002Fevolve\u002Fanalyze-runs-latest.md` (PROPOSAL-ONLY —\nnever mutates a skill\u002Fagent, never writes to `.guild\u002Fwiki\u002F`). Name that path in\nthe handoff so `\u002Fguild:evolve`'s threshold read has a fresh aggregate to\nconsume.\n\n## Non-destructive rule\n\nThis skill NEVER writes to `.guild\u002Fwiki\u002F`, NEVER edits an existing skill or agent file, NEVER creates a new task under `.guild\u002Fruns\u002F`, and NEVER mutates a handoff receipt or `verify.md`. Output is limited to `.guild\u002Freflections\u002F\u003Crun-id>.md` plus the feedback-routing artifacts under `.guild\u002Ffeedback\u002F\u003Crun-id>\u002F` (findings.json + triage output — see §Feedback routing; still nothing durable, nothing external without the operator gate). Promotion of any proposal into durable memory is `guild:wiki-ingest`'s job (for sourced knowledge) or `guild:decisions`'s job (for team decisions). Skill\u002Fagent edits are `guild:evolve-skill` \u002F `guild:create-specialist` in P6. If you find yourself wanting to fix a skill inline, stop — write the proposal and let evolve pick it up.\n\n## Feedback routing — project vs plugin (deterministic, consent-gated)\n\nAfter the reflection is written, route any finding that smells like a **Guild plugin defect** (broken flow, host-adapter gap, unsafe default, portability bug — vs project-local knowledge) through the deterministic feedback pipeline. Never eyeball the routing and never file anything yourself:\n\n1. Write the candidate findings as a `RunLearningFinding[]` JSON array to `.guild\u002Ffeedback\u002F\u003Crun-id>\u002Ffindings.json` (fields: `id`, `summary`, `details?`, `evidence_refs?`, `affected_artifacts?`, `proposed_change?` — cite the artifact paths you actually saw; the paths drive classification).\n2. Run the classifier: `node ${GUILD_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-$HOME\u002F.local\u002Fshare\u002Fguild\u002Fdist\u002Fclaude-code}}\u002Fruntime\u002Fscripts\u002Ffeedback-triage.js triage --run-id \u003Crun-id> --findings .guild\u002Ffeedback\u002F\u003Crun-id>\u002Ffindings.json`. It classifies each finding (`workspace_project | plugin | mixed | ambiguous`, code not prose), and for plugin\u002Fmixed writes a **sanitized** issue draft (private paths\u002Ftokens\u002Femails redacted by the run-export redaction stack) to `.guild\u002Ffeedback\u002F\u003Crun-id>\u002F\u003Cfinding-id>.draft.md`. Nothing leaves the machine.\n3. `workspace_project` findings → the normal project learning gate (wiki-ingest \u002F decisions). `ambiguous` → surface to the operator as triage questions.\n4. For each plugin\u002Fmixed draft: **ASK THE OPERATOR** — show the draft path + title and ask whether Guild may file it as a GitHub issue (it contains no user-specific information; say so). On an explicit yes: `… feedback-triage.ts file --run-id \u003Crun-id> --finding \u003Cid> --approve \"\u003Coperator>\"`. On no: `--deny [reason]` (recorded). **Non-interactive session ⇒ never file** — leave the drafts pending and name them in the handoff.\n\nThe CLI is the consent choke-point: it structurally refuses to reach `gh issue create` without the explicit `--approve`, so a missed ask cannot leak.\n\n## Handoff\n\nEmit a `handoff` block naming the reflection path so the orchestrator can hand off to `\u002Fguild:stats` (P6) or `\u002Fguild:evolve` (P6). Payload fields:\n\n- `run_id` — carried forward from the inputs.\n- `reflection_path` — absolute path to `.guild\u002Freflections\u002F\u003Crun-id>.md`.\n- `significance` — `low` \u002F `medium` \u002F `high`, matching the frontmatter.\n- `proposal_counts` — a `{skill_improvement: N, missing_specialist: N, context_issues: N, followup_backlog: N}` summary so `\u002Fguild:stats` can render without re-parsing.\n- `pending_plugin_feedback` — finding ids with sanitized drafts awaiting the operator's file\u002Fdeny decision (empty when none; never auto-filed).\n\nFor P5 this is a forward reference: `\u002Fguild:stats` and `\u002Fguild:evolve` land in P6. If neither is installed, stop after writing the reflection and return its path to the user.\n\n## Chapters\n\nThree-stage disclosure (KTD25): this file is the assembler. Each row below is an\nL3 chapter that stays on disk until a request matches it. Compose by pointer —\nread the one chapter you were routed to, and never inline a chapter here.\n\n| Chapter | Covers |\n|---|---|\n| `references\u002Flearning-checkpoint.md` | The per-phase LearningCheckpoint classifier — `guild.learning_checkpoint.v1` |\n\n## Chapter pointers (resolve before you dispatch)\n\nThese names appear in the body as if they were skills. They are NOT — the\nT03 fold (KTD25\u002FKTD59) made each one an L3 chapter. Read `guild:\u003Cname>` below\nas \"load this file and run it in place\"; never try to dispatch it as a skill.\n\n| Named in this body | Lives under | Load |\n|---|---|---|\n| `guild:codex-review` | `review` | `..\u002Freview\u002Freferences\u002Fcodex-review.md` |\n| `guild:context-assemble` | `execute-plan` | `..\u002Fexecute-plan\u002Freferences\u002Fcontext-assemble.md` |\n| `guild:decisions` | `wiki` | `..\u002F..\u002Fknowledge\u002Fwiki\u002Freferences\u002Fdecisions.md` |\n| `guild:learn-harvest` | `learn` | `..\u002F..\u002Fknowledge\u002Flearn\u002Freferences\u002Flearn-harvest.md` |\n| `guild:review-broker` | `review` | `..\u002Freview\u002Freferences\u002Freview-broker.md` |\n| `guild:verify-done` | `quality` | `..\u002F..\u002Fquality\u002Freferences\u002Fverify-done.md` |\n| `guild:wiki-ingest` | `wiki` | `..\u002F..\u002Fknowledge\u002Fwiki\u002Freferences\u002Fwiki-ingest.md` |\n","# guild:reflect\n\nImplements the self-evolution pipeline's reflect step and the memory write path's proposal side. Runs last in the `\u002Fguild` lifecycle, after `guild:verify-done` writes `verify.md` with pass status. Gated by `hooks\u002Fmaybe-reflect.ts`: the Stop hook only fires this skill when the run actually did meaningful work (at least one specialist dispatched, at least one file edited, no hard error). Skills that triggered but no-oped do not earn a reflection.\n\nThis skill is a **proposer**, not a writer. Durable memory lives under `.guild\u002Fwiki\u002F` and only `guild:wiki-ingest` and `guild:decisions` are allowed to promote content there. This skill writes a single proposal file per run and stops.\n\n## Input\n\nFour sources, all materialized under `.guild\u002Fruns\u002F\u003Crun-id>\u002F` by the time this skill fires. Sources 1–3 are the original; source 4 is the preferred upstream when present:\n\n1. `.guild\u002Fruns\u002F\u003Crun-id>\u002Fsummary.md` — the compact run summary produced by `scripts\u002Ftrace-summarize.ts` from `events.ndjson`. Contains frontmatter (`run_id`, `started_at`, `ended_at`, `duration_ms`, `event_count`, `specialists_dispatched`, `dispatched_lanes`, `dispatch_receipts`, `tools_used`, `files_touched_count`, `errors`, `ok_rate`, and the dispatch-integrity sink counts `backend_degradations` \u002F `tier_violations` \u002F `untiered_dispatches`) plus body sections (Timeline, Specialist activity, Notable events, **Sink audit**, Reflection hints). The **Sink audit** section is the consumer of the run's `logs\u002Fbackend-degradation.jsonl` + `logs\u002Ftier-dispatch.jsonl` sinks: a non-zero `backend_degradations` \u002F `tier_violations` \u002F `untiered_dispatches` means a lane ran on a downgraded backend or dispatched un-tiered — treat each as a skill-improvement or followup-backlog proposal (§Proposal categories) with the Sink audit block as the verbatim evidence, so a dispatch-dirty run is surfaced automatically rather than staying auditable-by-path. Reflect reads this instead of the raw event log so it stays grep-able. **P6 enrichment planned:** `capture-telemetry.ts` does not yet emit per-skill trigger counts or context-bundle sizes, so those signals come from handoff receipts (§8.2 `followups:` \u002F `assumptions:`) and from the verify.md report — not from summary.md today. When P6 extends the telemetry schema, this skill's routing will prefer the richer summary fields.\n2. `.guild\u002Fruns\u002F\u003Crun-id>\u002Fhandoffs\u002F*.md` — per-specialist handoff receipts per `§8.2`. Provides `changed_files`, `assumptions`, `evidence`, and `followups`. Followups are the richest signal for proposal categories below. When a receipt is consumed, the embedded ```` ```guild.handoff.v2 ```` JSON block is the machine truth a consumer reads; the `guild.handoff_receipt.v1` YAML frontmatter is human-review context only (see §\"Handoff contract\" of the communication format policy). Read these §8.2 fields from that one embedded envelope — a frontmatter-only receipt with no embedded v2 block is not a valid machine receipt.\n3. `.guild\u002Fruns\u002F\u003Crun-id>\u002Fverify.md` — from `guild:verify-done`. Confirms the run actually passed (reflect never fires on a failed run, by the hook gate, but re-check the overall status line defensively) and carries the non-blocking followups that the verify step forwarded.\n4. `.guild\u002Fruns\u002F\u003Crun-id>\u002Flearn\u002Fharvest-candidates.json` — **preferred upstream when present** (SC-C from learn-knowledge-convergence). Written by `guild:learn-harvest` when it is explicitly invoked at a phase boundary or run close (not auto-routed by `LearningCheckpoint`, which only routes verdicts to the reflections queue). When this file exists, populate proposal categories directly from its `reflection_candidates` array rather than re-extracting from the raw handoffs — `harvest-candidates.json` already carries structured `category`, `description`, `evidence_quote`, `source_refs`, and `significance` per entry. Source 2 (raw handoffs) is used as fallback when `harvest-candidates.json` is absent or predates this contract.\n\n## Proposal categories\n\nWalk the inputs once and classify every observation into one of four buckets. Empty buckets are omitted from the output.\n\n1. **Skill improvement.** A handoff receipt's `followups:` explicitly names a skill gap (e.g., \"guild:context-assemble missed the wiki\u002Fdecisions\u002F page\"), OR an `assumptions:` entry flags a skill behavior that surprised the specialist, OR the same skill shows up in ≥ 2 followups across the run's receipts. Evidence for a proposal is the verbatim followup\u002Fassumption line naming the skill. Record the skill name, the failure mode, and a quote. **P6 enrichment:** once `summary.md` carries per-skill trigger counts, reflect can additionally catch trigger\u002Fno-op mismatches by comparing against each skill's `should_trigger` \u002F `should_not_trigger` evals.\n\n2. **Missing specialist.** A recurring gap across unrelated tasks — the *same* kind of work kept getting handled by a generalist lane or rejected as out-of-scope. Per `§11.1`, the threshold is >=3 runs; this skill only logs the candidate for the current run, it does not aggregate across runs (see Aggregation rule). For P5, record the proposed role name and the evidence; the actual specialist creation is `guild:create-specialist` in P6.\n\n3. **Context bundle issue.** `guild:context-assemble` hit the 6k token cap, or summarization was invoked mid-run, or a specialist's followup flagged missing context. Record the affected specialist\u002Fbundle pair and which wiki pages (if any) were dropped.\n\n4. **Followup backlog.** Every entry from the union of handoff `followups:` that verify-done carried forward as \"non-blocking\" and that does not already appear as a new task in `.guild\u002Fruns\u002F`. Record `\u003Cspecialist>\u002F\u003Ctaskid>` pairs so `\u002Fguild:stats` can show them grouped by owner.\n\n## Output\n\nExactly one file per run:\n\n```\n.guild\u002Freflections\u002F\u003Crun-id>.md\n```\n\nFrontmatter:\n\n```yaml\n---\nrun_id: \u003Cid>\ndate: \u003CYYYY-MM-DD>\ntask_slug: \u003Cslug>\nproposals:\n  skill_improvement: [\u003Cskill-name>, ...]\n  missing_specialist: [\u003Cproposed-role>, ...]\n  context_issues: [\u003Cspecialist>\u002F\u003Cbundle>, ...]\n  followup_backlog: [\u003Cspecialist>\u002F\u003Ctaskid>, ...]\nsignificance: low | medium | high\ncodex_review: RAN | SKIPPED   # REQUIRED on self-build runs — see § Codex-review marker\n---\n```\n\nBody: one `##` section per non-empty category. Each section lists the proposal(s) with a one-paragraph rationale and a verbatim evidence snippet (summary row, followup line, or verify.md excerpt). Empty categories are omitted entirely — do not emit \"No findings\" sections, the frontmatter already records that via empty lists.\n\n## Significance threshold\n\nPer `§15.2` (\"evolution loop overfits\" risk), not every reflection deserves attention.\n\n- **low** — zero non-empty categories, or only one followup-backlog entry. Stays in `.guild\u002Freflections\u002F` as an audit record, not surfaced in `\u002Fguild:stats` by default.\n- **medium** — at least one skill-improvement or context-bundle issue, or >=3 followup-backlog entries. Surfaces in `\u002Fguild:stats` (P6) and is a candidate input to `guild:evolve-skill` (P6).\n- **high** — a missing-specialist proposal, or a skill-improvement proposal with evidence from >=2 earlier reflections (cross-referenced by name; reflect does not aggregate but it may cite). Forces a `\u002Fguild:stats` surface.\n\nTier the reflection before writing the frontmatter so the significance field is consistent with the body.\n\n## Codex-review marker (self-build runs)\n\nImplements the reflect half of the FU-E codex-skip discipline contract (`plugin\u002FCLAUDE.md` §\"Codex adversarial review\"; self-evolution gate). On **self-build runs** (developing the Guild plugin itself — `plugin\u002FCLAUDE.md` is present), every reflection's frontmatter MUST carry a canonical machine-readable field:\n\n```yaml\ncodex_review: RAN        # codex adversarial review actually ran at this run's gates\n# or\ncodex_review: SKIPPED    # codex was unavailable \u002F unused at the run's gates\n```\n\nRules:\n\n- **Always emit it on self-build runs.** Omitting the field is a silent skip — the `hooks\u002Fmaybe-reflect.ts` Stop-hook guard treats a reflection that records no codex run as a *skip*, but prose-only reflections that lack the field count as **zero** signal, so the consecutive-skip streak never advances and the guard never arms. Emitting the canonical field is the reliable path the hook prefers (it has legacy `proposals.skill_improvement: [guild:codex-review]` and body-comment `\u003C!-- codex_review: SKIPPED -->` fallbacks, but the frontmatter field is authoritative).\n- **`RAN`** — emit when `guild:codex-review` \u002F `guild:review-broker` actually executed and reached a verdict at one or more of this run's G-gates (G-spec \u002F G-plan \u002F G-lane \u002F G-diagnose). A `RAN` reflection **breaks the consecutive-skip streak** — this is how the discipline self-clears (see below).\n- **`SKIPPED`** — emit when codex was unavailable (`codex --version` failed \u002F not authenticated), the gate emitted its `warn: codex-review skipped …` line, or no adversarial review ran at any gate. The hook counts consecutive `SKIPPED` reflections; at ≥ 3 it writes the blocking sentinel `.guild\u002Fcodex-skip-streak.json` and exits non-zero.\n\n**How the streak clears.** The hook counts the streak of *consecutive most-recent* reflections (newest first by mtime) that record a skip; the first reflection that does **not** record a skip ends the run. So a single reflection with `codex_review: RAN` at the top of the trail breaks the streak — the next Stop-hook evaluation computes `streak = 0` and does not re-arm. This is the canonical clear path: run codex, then a `RAN` reflection resets the discipline. (The stale sentinel file is consumed\u002Fcleared by the gate-read side in `guild:codex-review` — reflect's only job is to write the honest `RAN`\u002F`SKIPPED` field; it never touches `.guild\u002Fcodex-skip-streak.json`.)\n\nOn **non-self-build runs** (consuming repos), the field is optional — the guard only arms in self-build context — but emitting it is harmless and recommended for forward consistency.\n\n## Aggregation rule\n\nReflect writes exactly ONE reflection per run and never modifies prior reflections. Cross-run aggregation — \"the same skill has been named in three reflections, open an evolve task\" — is `\u002Fguild:evolve`'s job per `§11.1`. The automatic threshold there is >=3 reflections for a single skill; that counter is computed by walking `.guild\u002Freflections\u002F*.md` frontmatter `proposals.skill_improvement`, and reflect's job is to fill that frontmatter correctly so evolve can count.\n\nIf you notice a pattern worth aggregating, emit the per-run evidence and stop. Do not pre-emptively collapse into a single cross-run proposal.\n\nAfter this reflection is written, run the deterministic cross-run aggregator so the\n§11.1 threshold is counted by tooling, not recalled in-context:\n\n```\nnode ${GUILD_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-$HOME\u002F.local\u002Fshare\u002Fguild\u002Fdist\u002Fclaude-code}}\u002Fruntime\u002Fscripts\u002Fanalyze-runs.js --cwd \u003Crepo-root>\n```\n\nIt reads every `.guild\u002Freflections\u002F*.md`'s `proposals.skill_improvement` \u002F\n`proposals.missing_specialist` frontmatter plus handoff `status: escalate`\nreceipts, and writes `.guild\u002Fevolve\u002Fanalyze-runs-latest.md` (PROPOSAL-ONLY —\nnever mutates a skill\u002Fagent, never writes to `.guild\u002Fwiki\u002F`). Name that path in\nthe handoff so `\u002Fguild:evolve`'s threshold read has a fresh aggregate to\nconsume.\n\n## Non-destructive rule\n\nThis skill NEVER writes to `.guild\u002Fwiki\u002F`, NEVER edits an existing skill or agent file, NEVER creates a new task under `.guild\u002Fruns\u002F`, and NEVER mutates a handoff receipt or `verify.md`. Output is limited to `.guild\u002Freflections\u002F\u003Crun-id>.md` plus the feedback-routing artifacts under `.guild\u002Ffeedback\u002F\u003Crun-id>\u002F` (findings.json + triage output — see §Feedback routing; still nothing durable, nothing external without the operator gate). Promotion of any proposal into durable memory is `guild:wiki-ingest`'s job (for sourced knowledge) or `guild:decisions`'s job (for team decisions). Skill\u002Fagent edits are `guild:evolve-skill` \u002F `guild:create-specialist` in P6. If you find yourself wanting to fix a skill inline, stop — write the proposal and let evolve pick it up.\n\n## Feedback routing — project vs plugin (deterministic, consent-gated)\n\nAfter the reflection is written, route any finding that smells like a **Guild plugin defect** (broken flow, host-adapter gap, unsafe default, portability bug — vs project-local knowledge) through the deterministic feedback pipeline. Never eyeball the routing and never file anything yourself:\n\n1. Write the candidate findings as a `RunLearningFinding[]` JSON array to `.guild\u002Ffeedback\u002F\u003Crun-id>\u002Ffindings.json` (fields: `id`, `summary`, `details?`, `evidence_refs?`, `affected_artifacts?`, `proposed_change?` — cite the artifact paths you actually saw; the paths drive classification).\n2. Run the classifier: `node ${GUILD_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-$HOME\u002F.local\u002Fshare\u002Fguild\u002Fdist\u002Fclaude-code}}\u002Fruntime\u002Fscripts\u002Ffeedback-triage.js triage --run-id \u003Crun-id> --findings .guild\u002Ffeedback\u002F\u003Crun-id>\u002Ffindings.json`. It classifies each finding (`workspace_project | plugin | mixed | ambiguous`, code not prose), and for plugin\u002Fmixed writes a **sanitized** issue draft (private paths\u002Ftokens\u002Femails redacted by the run-export redaction stack) to `.guild\u002Ffeedback\u002F\u003Crun-id>\u002F\u003Cfinding-id>.draft.md`. Nothing leaves the machine.\n3. `workspace_project` findings → the normal project learning gate (wiki-ingest \u002F decisions). `ambiguous` → surface to the operator as triage questions.\n4. For each plugin\u002Fmixed draft: **ASK THE OPERATOR** — show the draft path + title and ask whether Guild may file it as a GitHub issue (it contains no user-specific information; say so). On an explicit yes: `… feedback-triage.ts file --run-id \u003Crun-id> --finding \u003Cid> --approve \"\u003Coperator>\"`. On no: `--deny [reason]` (recorded). **Non-interactive session ⇒ never file** — leave the drafts pending and name them in the handoff.\n\nThe CLI is the consent choke-point: it structurally refuses to reach `gh issue create` without the explicit `--approve`, so a missed ask cannot leak.\n\n## Handoff\n\nEmit a `handoff` block naming the reflection path so the orchestrator can hand off to `\u002Fguild:stats` (P6) or `\u002Fguild:evolve` (P6). Payload fields:\n\n- `run_id` — carried forward from the inputs.\n- `reflection_path` — absolute path to `.guild\u002Freflections\u002F\u003Crun-id>.md`.\n- `significance` — `low` \u002F `medium` \u002F `high`, matching the frontmatter.\n- `proposal_counts` — a `{skill_improvement: N, missing_specialist: N, context_issues: N, followup_backlog: N}` summary so `\u002Fguild:stats` can render without re-parsing.\n- `pending_plugin_feedback` — finding ids with sanitized drafts awaiting the operator's file\u002Fdeny decision (empty when none; never auto-filed).\n\nFor P5 this is a forward reference: `\u002Fguild:stats` and `\u002Fguild:evolve` land in P6. If neither is installed, stop after writing the reflection and return its path to the user.\n\n## Chapters\n\nThree-stage disclosure (KTD25): this file is the assembler. Each row below is an\nL3 chapter that stays on disk until a request matches it. Compose by pointer —\nread the one chapter you were routed to, and never inline a chapter here.\n\n| Chapter | Covers |\n|---|---|\n| `references\u002Flearning-checkpoint.md` | The per-phase LearningCheckpoint classifier — `guild.learning_checkpoint.v1` |\n\n## Chapter pointers (resolve before you dispatch)\n\nThese names appear in the body as if they were skills. They are NOT — the\nT03 fold (KTD25\u002FKTD59) made each one an L3 chapter. Read `guild:\u003Cname>` below\nas \"load this file and run it in place\"; never try to dispatch it as a skill.\n\n| Named in this body | Lives under | Load |\n|---|---|---|\n| `guild:codex-review` | `review` | `..\u002Freview\u002Freferences\u002Fcodex-review.md` |\n| `guild:context-assemble` | `execute-plan` | `..\u002Fexecute-plan\u002Freferences\u002Fcontext-assemble.md` |\n| `guild:decisions` | `wiki` | `..\u002F..\u002Fknowledge\u002Fwiki\u002Freferences\u002Fdecisions.md` |\n| `guild:learn-harvest` | `learn` | `..\u002F..\u002Fknowledge\u002Flearn\u002Freferences\u002Flearn-harvest.md` |\n| `guild:review-broker` | `review` | `..\u002Freview\u002Freferences\u002Freview-broker.md` |\n| `guild:verify-done` | `quality` | `..\u002F..\u002Fquality\u002Freferences\u002Fverify-done.md` |\n| `guild:wiki-ingest` | `wiki` | `..\u002F..\u002Fknowledge\u002Fwiki\u002Freferences\u002Fwiki-ingest.md` |\n",{"name":5,"type":44,"indexed":45,"description":7,"when_to_use":46},"meta",true,"Final step of Guild lifecycle after guild:verify-done passes. Invoked automatically by hooks\u002Fmaybe-reflect.ts Stop hook when the heuristic gate (>=1 specialist dispatched + >=1 file edited + no error) clears.","main","2e58b0360ca51ca3c96ca8e015ef5aba5738803d","skills\u002Fmeta\u002Freflect",0,"https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild","https:\u002F\u002Fgithub.com\u002Flookatitude","https:\u002F\u002Flookatitude.com","2026-11-06 03:55:18",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":45},[57,60,63],{"tool":58,"command":59},"npx","npx skills add lookatitude\u002Fguild --skill guild-reflect",{"tool":61,"command":62},"bunx","bunx skills add lookatitude\u002Fguild --skill guild-reflect",{"tool":64,"command":65},"pnpm","pnpm dlx skills add lookatitude\u002Fguild --skill guild-reflect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fmeta\u002Freflect\u002FSKILL.md",[68,74,78],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"evals.json","REFERENCE","参考文档",684,"https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fmeta\u002Freflect\u002Fevals.json",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Flearning-checkpoint.evals.json",827,"https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fmeta\u002Freflect\u002Freferences\u002Flearning-checkpoint.evals.json",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Flearning-checkpoint.md",18823,"https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fmeta\u002Freflect\u002Freferences\u002Flearning-checkpoint.md",[83,90,96,102,108,114],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":89},"01M73RXDTR96SBKTEEE35JMWS7","technical-writer-tutorial","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fspecialists\u002Ftechnical-writer-tutorial\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":89},"01M73RX9FY2GNEZT1S2SJZH307","social-media-thread","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fspecialists\u002Fsocial-media-thread\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":89},"01M73RWY3CNA6HP52QC65XTZ5A","security-dependency-audit","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fspecialists\u002Fsecurity-dependency-audit\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":89},"01M73RWBSKQXZ13SVRGS5K1K72","marketing-launch-plan","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fspecialists\u002Fmarketing-launch-plan\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":89},"01M73RW8DJAG381R94DN6KSTEG","marketing-ab-copy-variants","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fspecialists\u002Fmarketing-ab-copy-variants\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":89},"01M73RW44HRQJTJ33V12SVS612","frontend-bundler-config","https:\u002F\u002Fgithub.com\u002Flookatitude\u002Fguild\u002Fblob\u002Fmain\u002Fskills\u002Fspecialists\u002Ffrontend-bundler-config\u002FSKILL.md",[],[]]