[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E5R4N5EJRZM9P7XMS6WBEQ":3,"skill-same:01M6E5R4N5EJRZM9P7XMS6WBEQ":74},{"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":17,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M6E5R4N5EJRZM9P7XMS6WBEQ","wave-retro",null,"Full end-of-wave retrospective — mechanical evidence-anchored trust scoring via trust_signals.py, counter drift verification, feedback log, process proposals, next-wave stub","parametrization\u002F2real-team-framework","parametrization","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1111097?v=4","01M6E5MC117M94CEXKX3C96PPX","01M6E5MC7YWG5N3VV4792VFK85",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fframework\u002Fassets\u002Fskills\u002Fwave-retro\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"wave retro","retro","scoring","via","id","end","mechanical","full","signals","next","drift","retrospective","trust","log","evidence","process","proposals","feedback","verification","2026-11-10 10:12:30",false,"---\nname: wave-retro\ndescription: Full end-of-wave retrospective — mechanical evidence-anchored trust scoring via trust_signals.py, counter drift verification, feedback log, process proposals, next-wave stub\nargs: Wave id (defaults to last completed wave)\n---\n\nRun the full retrospective for a completed wave. Per-engineer trust scoring here is\n**mechanical and evidence-anchored** — narrative self-grading is banned. Every delta the\nretro records is computed by `trust_signals.py` from countable signals and must cite them.\n\nRun `\u002Fwave-end` (mechanical finalize: merges, issue closure, counters, cleanup) **before**\nthis skill. For a quick mid-wave pulse instead, use `\u002Fretro`.\n\n## Instructions\n\n### 0. Resolve config, libs, and the wave\n\n```bash\nREPO_ROOT=\"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\nCFG=\"$REPO_ROOT\u002F.claude\u002Fframework.config.json\"\nget() { jq -r \"$1 \u002F\u002F empty\" \"$CFG\" 2>\u002Fdev\u002Fnull; }   # fail-open dotted read\n\nTEAM_DIR=\"$REPO_ROOT\u002F$(get '.paths.team')\";        [ -d \"$TEAM_DIR\" ] || TEAM_DIR=\"$REPO_ROOT\u002F.claude\u002Fteam\"\nSTATE_FILE=\"$REPO_ROOT\u002F$(get '.paths.state_file')\"; [ -f \"$STATE_FILE\" ] || STATE_FILE=\"$REPO_ROOT\u002F.claude\u002Fstate.json\"\nDEFAULT_BRANCH=\"$(get '.scm.default_branch')\";      DEFAULT_BRANCH=\"${DEFAULT_BRANCH:-main}\"\n\n# Drift-verification tolerances — CONFIG KEYS (defaults: ±2 absolute, ±5 percent).\nDRIFT_ABS=\"$(get '.policy.retro_counter_drift_abs')\"; DRIFT_ABS=\"${DRIFT_ABS:-2}\"\nDRIFT_PCT=\"$(get '.policy.retro_counter_drift_pct')\"; DRIFT_PCT=\"${DRIFT_PCT:-5}\"\n\n# Framework libs: installed location first, framework-source checkout as fallback.\nLIB=\"$REPO_ROOT\u002F.claude\u002Flib\"\n[ -f \"$LIB\u002Ftrust_signals.py\" ] || LIB=\"$REPO_ROOT\u002Fframework\u002Fassets\u002Flib\"\n\n# The wave under retro: the argument, else the last completed wave.\npython3 \"$LIB\u002Flifecycle.py\" state show   # read last_completed_wave → {W}\n```\n\n**Precondition:** the wave is wrapped up — `wave_{W}_completed_at` exists in the state\nfile (written by `\u002Fwave-end` via `lifecycle.py wave wrapup`). If it doesn't, stop and run\n`\u002Fwave-end` first: this skill analyzes a finished wave; it never merges or cleans up.\n\nIf an ontology layer is installed, run `\u002Fontology-librarian` first and note staleness in\nthe findings — the wrapup should have left it fresh, so staleness here is a process gap.\n\n### 1. Gather the wave's merged PRs\n\nThe PR base depends on the wave's merge model:\n\n```bash\nMM=\"$(python3 \"$LIB\u002Flifecycle.py\" merge-model get \"{W}\" 2>\u002Fdev\u002Fnull || echo direct-to-main)\"\n# wave-branch     → BASE = branch.integration template ({phase} → wave's phase, {wave} → {W})\n# direct-to-main  → BASE = $DEFAULT_BRANCH, additionally filtered by the wave label\ngh pr list --state merged --base \"{BASE}\" --json number,title,author,body,mergedAt,reviews\n```\n\nFor each merged PR, also collect review comments and CI data:\n\n```bash\ngh pr view {NUMBER} --json reviews,comments\ngh run list --branch {PR_BRANCH} --json conclusion,name\n```\n\nFor a `meta-and-children` project, sweep every repo in `project.repos` (this matches what\n`trust_signals.py` does internally).\n\n### 2. Counter drift verification\n\n`\u002Fwave-end` records three counters at wrapup time; they tend to drift. Recompute them\nfrom the Step-1 PR data and reconcile **before** any number is narrated into the retro:\n\n```bash\nCLAIMED_PR_COUNT=$(jq -r \".wave_{W}_final_pr_count \u002F\u002F empty\" \"$STATE_FILE\")\nCLAIMED_CR_CYCLES=$(jq -r \".wave_{W}_changes_requested_cycles \u002F\u002F empty\" \"$STATE_FILE\")\nCLAIMED_CONCENTRATION=$(jq -r \".wave_{W}_top_concentration_pct \u002F\u002F empty\" \"$STATE_FILE\")\n\n# Recompute from Step-1 data:\n#   ACTUAL_PR_COUNT      — merged PRs across the wave's in-scope repos\n#   ACTUAL_CR_CYCLES     — ChangesRequested verdicts across those PRs\n#   ACTUAL_CONCENTRATION — max(PRs by one author) * 100 \u002F total PRs\n```\n\n**Per-counter handling** (tolerances are the configured `policy.retro_counter_drift_abs`\n\u002F `policy.retro_counter_drift_pct`):\n\n1. **Within tolerance** (absolute diff ≤ `DRIFT_ABS` OR percentage diff ≤ `DRIFT_PCT`):\n   correct the counter and record the gap —\n\n   ```bash\n   python3 \"$LIB\u002Fupsert_status_keys.py\" \"$STATE_FILE\" \\\n     \"wave_{W}_counter_corrections=[{\\\"key\\\":\\\"{counter}\\\",\\\"claimed\\\":{claimed},\\\"actual\\\":{actual},\\\"corrected_at\\\":\\\"{ISO8601}\\\"}]\"\n   ```\n\n   and note the correction in the feedback-log entry (Step 6).\n2. **Beyond tolerance** (exceeds both): **retro-blocker** — investigate the wrapup-time\n   arithmetic in `\u002Fwave-end` before continuing, and file a follow-up issue against it.\n\n**CR-cycle semantics — wrapup-time count is authoritative-historic.** Recomputing\n`changes_requested_cycles` from *current* comment state under-counts whenever a\nChangesRequested verdict was later edited in place to Approved (which verdict-amendment\nreview conventions require after fixes land). When recomputed \u003C claimed AND the gap is\nfully explained by edited-in-place verdicts (check the PR review timeline), the **claimed\nvalue stands** — record a `wave_{W}_counter_corrections` entry documenting the measurement\nconflict; do NOT \"correct\" the historical count downward.\n\n**Acceptance:** Step 3 does not begin until every `wave_{W}_*` counter either matches the\nrecomputation or has a corrections entry recording the gap.\n\n### 3. Mechanical per-engineer scoring\n\nExtract the countable signals and the proposed deltas (idempotent over the same merged-PR\nset — safe to re-run):\n\n```bash\npython3 \"$LIB\u002Ftrust_signals.py\" extract \"{W}\" --status \"$STATE_FILE\"   # per-engineer signals JSON\npython3 \"$LIB\u002Ftrust_signals.py\" score   \"{W}\" --status \"$STATE_FILE\"   # + deltas, discipline, forced negative line\n```\n\n`score` emits, per engineer: `signals` (`prs_merged`, `must_fix_caught`,\n`must_fix_received`, `ci_red_merges`, `rework_cycles`, `review_false_positives`, plus the\n`authored_prs` evidence list), `delta` (the bidirectional trust delta, clamped to ±2 per\nwave), `proposed_from_neutral` (after distribution discipline), and\n`negative_signal_line`. If the wave was label-scoped, pass `--label` accordingly.\n\nAssess each engineer **from the countable signals only** — never from narrative\nimpressions:\n\n```\n### {Engineer Name}\n- PRs: #{N1}, #{N2}\n- Signals: prs_merged={x}, must_fix_caught={x}, must_fix_received={x}, ci_red_merges={x}, rework_cycles={x}, review_false_positives={x}\n- Delta: {delta} (cite the signal(s) behind it)\n- Negative-signal line: {negative_signal_line — a specific gap OR \"metrics clean: {numbers}\", NEVER a bare \"None\"}\n- Severity: {none|minor|moderate|severe}\n```\n\n### 4. Forced negative-signal pass (bare \"None\" is banned)\n\nEvery active engineer MUST get a `negative_signal_line`: a specific evidence-backed gap,\nor an explicit `metrics clean: {numbers}` that still shows the receipts. Collect the lines\nyou wrote (one per engineer) and mechanically reject any bare `None` \u002F `N\u002FA` \u002F `-`:\n\n```bash\n# One line per engineer in \u002Ftmp\u002Fnegative_signal_lines.txt, then:\npython3 - \"$LIB\" \u002Ftmp\u002Fnegative_signal_lines.txt \u003C\u003C'PY'\nimport sys\nsys.path.insert(0, sys.argv[1])\nimport trust_signals\nlines = [ln.rstrip(\"\\n\") for ln in open(sys.argv[2]) if ln.strip()]\nbad = trust_signals.validate_negative_signal_pass(lines)\nif bad:\n    print(\"FORCED-PASS VIOLATION (bare None banned):\", bad)\n    sys.exit(1)\nprint(\"negative-signal pass clean\")\nPY\n```\n\nA non-empty result is a forced-pass violation — fix the offending lines before continuing.\n\n### 5. Update the trust matrix\n\nEdit `$TEAM_DIR\u002Ftrust_matrix.md` on the retro branch so the update lands in the same retro\nPR as the feedback log — never as a separate direct-to-default commit.\n\nEvery row applies the mechanical policy from `trust_signals.py` and cites its numbers:\n\n- **Delta:** `new = clamp(old + delta, 1, 5)` — bidirectional, already clamped to ±2 per\n  wave by `score_delta`. Each CI-red merge \u002F review false-positive is −1; 2+ must-fix\n  received is −1; 2+ rework cycles is −1; a clean wave with 2+ PRs merged, 2+ must-fix\n  caught as reviewer, or 2+ verified reviews (reviewer verdicts carrying a concrete\n  `Verified:` block) is +1 each — so QA rigor isn't zero-credit when there are no\n  must-fixes. A single clean PR is **not** a bump.\n- **Decay toward neutral:** an engineer with no signal for 3 consecutive waves drifts one\n  step toward 3 (`trust_signals.decay(old, waves_since_signal)`). A stale 4 or 2 is no\n  longer earned; decay is one step per retro, never a reset.\n- **Distribution discipline:** 5 is reserved for the wave's top relative performer(s) with a\n  strictly positive composite (`trust_signals.apply_distribution_discipline`) — never\n  handed out for merely-clean work; other proposed 5s are capped to 4. **A tie at the top\n  composite is a reportable finding, not a blocker:** when two or more engineers share the\n  strictly-positive iteration-max composite, `apply_distribution_discipline` seats **all** of\n  them at 5 by design — the author-vs-reviewer parity #275 was built to produce, so do not\n  force a single winner. Record each tied engineer's composite in the retro and seat them all.\n  A deterministic tie-break was considered and rejected (#301): \"fewest negatives\" would\n  systematically seat reviewers over authors (`must_fix_received` only accrues to authors),\n  re-creating in reverse the asymmetry #275 removed.\n- **Retirement trigger:** run\n  `trust_signals.retirement_trigger(score_history, ci_red_history)` per engineer (both\n  histories oldest→newest). If it fires (score ≤ 2 in each of the last 3 waves, or ≥ 1\n  CI-red merge in each of the last 3 waves), surface a **persona-archive recommendation**\n  for owner confirmation — never auto-retire.\n- **Distribution-health probe:** report `trust_signals.distribution_health([...new scores])`\n  on the wave's resulting per-engineer scores — if `degenerate` is True (all pinned at\n  min\u002Fmax, or zero\u002Flow variance), the ledger stopped discriminating: cite its `reasons` in\n  the retro as a process smell (it changes no individual score).\n\nAppend a `## Wave {W} Trust Updates ({DATE}) — {theme}` section containing:\n- A `| Rated | Old | New | Reason |` table — every `Reason` cites signal numbers, not\n  prose impressions.\n- A `### Done Well \u002F Needs Improvement (Wave {W})` matrix whose \"Needs Improvement\"\n  column is the forced negative-signal line (no bare \"None\" — Step 4 already validated).\n\n### 6. Append to the feedback log\n\nAppend a retro entry to `$TEAM_DIR\u002Ffeedback_log.md`:\n\n```markdown\n## Retrospective: Wave {W} — {DATE}\n\n### Wave Metrics\n{PRs merged, issues closed, CI health, tech-debt filed, counter corrections from Step 2}\n\n### Top-Implementer Concentration\n{max PRs by one author} \u002F {total PRs} = {pct}% by {engineer}\n\n### Per-Engineer Assessments\n{from Step 3 — signals, deltas, negative-signal lines}\n\n### Top 3 Going Well\n1. {finding}\n\n### Top 3 Pain Points\n1. {finding}\n\n### Proposed Process Changes\n1. {change} — Rationale: {why}\n```\n\n**Concentration call:** if concentration ≥ 60%, force the call — *theme-fit* (the wave was\nthemed on a domain one engineer owns → \"going well\", with a forward-looking planning flag)\nor *fragility* (a multi-domain wave where one engineer absorbed the load → \"pain point\",\nwith explicit redistribution actions for the next wave). The metric is visibility, not\npolicy.\n\n### 7. Propose process\u002Fcharter changes — approval-gated\n\nBased on pain points, propose specific amendments:\n\n```\n**Proposed change:** {what}\n**Section:** {charter\u002Fskill\u002Fdoc section}\n**Rationale:** {why, anchored to a retro finding}\n```\n\n**Never open a proposed change with a GitHub closing keyword followed by an issue reference**\n(`Fix #NNN`, `Closes #NNN`, `Resolves #NNN`, …): a later PR body that quotes the proposal\nverbatim will auto-close that issue the moment the PR merges — whether or not the work landed.\nThis silently closed #296 via PR #299 (#304). Render the reference as backticked `` `#NNN` `` or\nin prose (\"per #NNN\", \"Address #NNN\") instead.\n\n**Do NOT apply any charter or process change without explicit user approval.**\n\n### 8. Present the full retro inline\n\nOutput the complete summary directly in the conversation — the user must see it without\nopening files: wave metrics + counter corrections, per-engineer assessments, trust-matrix\nchanges (who moved and the citing signals), concentration call, top-3 going well \u002F pain\npoints, proposed changes, and any retirement recommendations.\n\n### 9. Draft the next-wave meta-issue stub\n\nClose the retro→next-wave handoff loop: every retro ends with *either* an existing\nnext-wave meta-issue *or* a ready-to-theme stub — never a bare \"go create an issue\"\nblocker.\n\n```bash\nNEXT_WAVE=\"$(python3 \"$LIB\u002Flifecycle.py\" wave peek)\"\nMETA_HITS=$(gh issue list --state open --search \"\\\"Wave $NEXT_WAVE —\\\" in:title\" --json number,title)\nHIT_COUNT=$(echo \"$META_HITS\" | jq 'length')\n```\n\n- **`HIT_COUNT == 1`:** the meta-issue exists — proceed to scoping the next wave\n  (`lifecycle.py wave allocate\u002Fstart\u002Fscope`, per the wave-lifecycle steps) when the owner\n  gives the go-ahead.\n- **`HIT_COUNT > 1`:** ambiguous — list the hits as a blocker; the owner resolves before\n  any scoping.\n- **`HIT_COUNT == 0`:** auto-draft the stub. The scaffold is mechanical; **only the theme\n  is an owner decision**:\n\n  ```bash\n  NEW_URL=$(gh issue create --title \"Wave $NEXT_WAVE — (theme TBD — owner to set)\" --body \"$(cat \u003C\u003C'MD'\n  ## Theme\n\n  **TBD — owner to set.** Replace this line (and the title) with the wave theme.\n\n  ## Carry-forward from Wave {W} (auto-scaffold)\n  {deferred items from this wave's scope, or the retro's pain-point follow-ups}\n\n  ## Candidate scope\n  - Open issues labeled for the next wave, plus the configured tech-debt intake\n    (`policy.tech_debt_intake_pct`) applied at planning time.\n  - See the Wave {W} retro entry in the feedback log for follow-ups to fold in.\n\n  ---\n  *Auto-drafted stub from \u002Fwave-retro Step 9. Owner sets the theme; the title and the\n  Theme line are the only manual edits.*\n  MD\n  )\")\n  NEW_NUM=$(echo \"$NEW_URL\" | grep -oE '[0-9]+$')\n  python3 \"$LIB\u002Fupsert_status_keys.py\" \"$STATE_FILE\" \"wave_${NEXT_WAVE}_meta_issue=\\\"#$NEW_NUM\\\"\"\n  ```\n\n  This reserves the id via the `wave_{N}_meta_issue` key only — do **not** bump the wave\n  counter here. The lifecycle allocator is reservation-aware: it claims a reserved id at\n  `global_wave_seq + 1` instead of skipping it; adding a counter bump would double-advance.\n  Surface the stub URL and stop — the theme is the only manual step left.\n\n## Division of labor\n\n| Surface | Job |\n|---------|-----|\n| `\u002Fwave-end` | Mechanical finalize: review, merge, close issues, record counters, cleanup |\n| `\u002Fwave-retro` (this) | Scoring\u002Fprocess: drift verification, trust deltas, feedback log, proposals, next-wave stub |\n| `\u002Fretro` | Lightweight mid-wave pulse (diagnostic only) |\n\n## What remains manual\n\n- The user approves all charter\u002Fprocess changes before they are applied.\n- Trust-matrix changes are proposed — the user can veto specific adjustments.\n- Retirement recommendations require owner confirmation; nothing is auto-archived.\n- The next wave's theme is an owner decision; the stub only scaffolds it.\n","Run the full retrospective for a completed wave. Per-engineer trust scoring here is\n**mechanical and evidence-anchored** — narrative self-grading is banned. Every delta the\nretro records is computed by `trust_signals.py` from countable signals and must cite them.\n\nRun `\u002Fwave-end` (mechanical finalize: merges, issue closure, counters, cleanup) **before**\nthis skill. For a quick mid-wave pulse instead, use `\u002Fretro`.\n\n## Instructions\n\n### 0. Resolve config, libs, and the wave\n\n```bash\nREPO_ROOT=\"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull || pwd)\"\nCFG=\"$REPO_ROOT\u002F.claude\u002Fframework.config.json\"\nget() { jq -r \"$1 \u002F\u002F empty\" \"$CFG\" 2>\u002Fdev\u002Fnull; }   # fail-open dotted read\n\nTEAM_DIR=\"$REPO_ROOT\u002F$(get '.paths.team')\";        [ -d \"$TEAM_DIR\" ] || TEAM_DIR=\"$REPO_ROOT\u002F.claude\u002Fteam\"\nSTATE_FILE=\"$REPO_ROOT\u002F$(get '.paths.state_file')\"; [ -f \"$STATE_FILE\" ] || STATE_FILE=\"$REPO_ROOT\u002F.claude\u002Fstate.json\"\nDEFAULT_BRANCH=\"$(get '.scm.default_branch')\";      DEFAULT_BRANCH=\"${DEFAULT_BRANCH:-main}\"\n\n# Drift-verification tolerances — CONFIG KEYS (defaults: ±2 absolute, ±5 percent).\nDRIFT_ABS=\"$(get '.policy.retro_counter_drift_abs')\"; DRIFT_ABS=\"${DRIFT_ABS:-2}\"\nDRIFT_PCT=\"$(get '.policy.retro_counter_drift_pct')\"; DRIFT_PCT=\"${DRIFT_PCT:-5}\"\n\n# Framework libs: installed location first, framework-source checkout as fallback.\nLIB=\"$REPO_ROOT\u002F.claude\u002Flib\"\n[ -f \"$LIB\u002Ftrust_signals.py\" ] || LIB=\"$REPO_ROOT\u002Fframework\u002Fassets\u002Flib\"\n\n# The wave under retro: the argument, else the last completed wave.\npython3 \"$LIB\u002Flifecycle.py\" state show   # read last_completed_wave → {W}\n```\n\n**Precondition:** the wave is wrapped up — `wave_{W}_completed_at` exists in the state\nfile (written by `\u002Fwave-end` via `lifecycle.py wave wrapup`). If it doesn't, stop and run\n`\u002Fwave-end` first: this skill analyzes a finished wave; it never merges or cleans up.\n\nIf an ontology layer is installed, run `\u002Fontology-librarian` first and note staleness in\nthe findings — the wrapup should have left it fresh, so staleness here is a process gap.\n\n### 1. Gather the wave's merged PRs\n\nThe PR base depends on the wave's merge model:\n\n```bash\nMM=\"$(python3 \"$LIB\u002Flifecycle.py\" merge-model get \"{W}\" 2>\u002Fdev\u002Fnull || echo direct-to-main)\"\n# wave-branch     → BASE = branch.integration template ({phase} → wave's phase, {wave} → {W})\n# direct-to-main  → BASE = $DEFAULT_BRANCH, additionally filtered by the wave label\ngh pr list --state merged --base \"{BASE}\" --json number,title,author,body,mergedAt,reviews\n```\n\nFor each merged PR, also collect review comments and CI data:\n\n```bash\ngh pr view {NUMBER} --json reviews,comments\ngh run list --branch {PR_BRANCH} --json conclusion,name\n```\n\nFor a `meta-and-children` project, sweep every repo in `project.repos` (this matches what\n`trust_signals.py` does internally).\n\n### 2. Counter drift verification\n\n`\u002Fwave-end` records three counters at wrapup time; they tend to drift. Recompute them\nfrom the Step-1 PR data and reconcile **before** any number is narrated into the retro:\n\n```bash\nCLAIMED_PR_COUNT=$(jq -r \".wave_{W}_final_pr_count \u002F\u002F empty\" \"$STATE_FILE\")\nCLAIMED_CR_CYCLES=$(jq -r \".wave_{W}_changes_requested_cycles \u002F\u002F empty\" \"$STATE_FILE\")\nCLAIMED_CONCENTRATION=$(jq -r \".wave_{W}_top_concentration_pct \u002F\u002F empty\" \"$STATE_FILE\")\n\n# Recompute from Step-1 data:\n#   ACTUAL_PR_COUNT      — merged PRs across the wave's in-scope repos\n#   ACTUAL_CR_CYCLES     — ChangesRequested verdicts across those PRs\n#   ACTUAL_CONCENTRATION — max(PRs by one author) * 100 \u002F total PRs\n```\n\n**Per-counter handling** (tolerances are the configured `policy.retro_counter_drift_abs`\n\u002F `policy.retro_counter_drift_pct`):\n\n1. **Within tolerance** (absolute diff ≤ `DRIFT_ABS` OR percentage diff ≤ `DRIFT_PCT`):\n   correct the counter and record the gap —\n\n   ```bash\n   python3 \"$LIB\u002Fupsert_status_keys.py\" \"$STATE_FILE\" \\\n     \"wave_{W}_counter_corrections=[{\\\"key\\\":\\\"{counter}\\\",\\\"claimed\\\":{claimed},\\\"actual\\\":{actual},\\\"corrected_at\\\":\\\"{ISO8601}\\\"}]\"\n   ```\n\n   and note the correction in the feedback-log entry (Step 6).\n2. **Beyond tolerance** (exceeds both): **retro-blocker** — investigate the wrapup-time\n   arithmetic in `\u002Fwave-end` before continuing, and file a follow-up issue against it.\n\n**CR-cycle semantics — wrapup-time count is authoritative-historic.** Recomputing\n`changes_requested_cycles` from *current* comment state under-counts whenever a\nChangesRequested verdict was later edited in place to Approved (which verdict-amendment\nreview conventions require after fixes land). When recomputed \u003C claimed AND the gap is\nfully explained by edited-in-place verdicts (check the PR review timeline), the **claimed\nvalue stands** — record a `wave_{W}_counter_corrections` entry documenting the measurement\nconflict; do NOT \"correct\" the historical count downward.\n\n**Acceptance:** Step 3 does not begin until every `wave_{W}_*` counter either matches the\nrecomputation or has a corrections entry recording the gap.\n\n### 3. Mechanical per-engineer scoring\n\nExtract the countable signals and the proposed deltas (idempotent over the same merged-PR\nset — safe to re-run):\n\n```bash\npython3 \"$LIB\u002Ftrust_signals.py\" extract \"{W}\" --status \"$STATE_FILE\"   # per-engineer signals JSON\npython3 \"$LIB\u002Ftrust_signals.py\" score   \"{W}\" --status \"$STATE_FILE\"   # + deltas, discipline, forced negative line\n```\n\n`score` emits, per engineer: `signals` (`prs_merged`, `must_fix_caught`,\n`must_fix_received`, `ci_red_merges`, `rework_cycles`, `review_false_positives`, plus the\n`authored_prs` evidence list), `delta` (the bidirectional trust delta, clamped to ±2 per\nwave), `proposed_from_neutral` (after distribution discipline), and\n`negative_signal_line`. If the wave was label-scoped, pass `--label` accordingly.\n\nAssess each engineer **from the countable signals only** — never from narrative\nimpressions:\n\n```\n### {Engineer Name}\n- PRs: #{N1}, #{N2}\n- Signals: prs_merged={x}, must_fix_caught={x}, must_fix_received={x}, ci_red_merges={x}, rework_cycles={x}, review_false_positives={x}\n- Delta: {delta} (cite the signal(s) behind it)\n- Negative-signal line: {negative_signal_line — a specific gap OR \"metrics clean: {numbers}\", NEVER a bare \"None\"}\n- Severity: {none|minor|moderate|severe}\n```\n\n### 4. Forced negative-signal pass (bare \"None\" is banned)\n\nEvery active engineer MUST get a `negative_signal_line`: a specific evidence-backed gap,\nor an explicit `metrics clean: {numbers}` that still shows the receipts. Collect the lines\nyou wrote (one per engineer) and mechanically reject any bare `None` \u002F `N\u002FA` \u002F `-`:\n\n```bash\n# One line per engineer in \u002Ftmp\u002Fnegative_signal_lines.txt, then:\npython3 - \"$LIB\" \u002Ftmp\u002Fnegative_signal_lines.txt \u003C\u003C'PY'\nimport sys\nsys.path.insert(0, sys.argv[1])\nimport trust_signals\nlines = [ln.rstrip(\"\\n\") for ln in open(sys.argv[2]) if ln.strip()]\nbad = trust_signals.validate_negative_signal_pass(lines)\nif bad:\n    print(\"FORCED-PASS VIOLATION (bare None banned):\", bad)\n    sys.exit(1)\nprint(\"negative-signal pass clean\")\nPY\n```\n\nA non-empty result is a forced-pass violation — fix the offending lines before continuing.\n\n### 5. Update the trust matrix\n\nEdit `$TEAM_DIR\u002Ftrust_matrix.md` on the retro branch so the update lands in the same retro\nPR as the feedback log — never as a separate direct-to-default commit.\n\nEvery row applies the mechanical policy from `trust_signals.py` and cites its numbers:\n\n- **Delta:** `new = clamp(old + delta, 1, 5)` — bidirectional, already clamped to ±2 per\n  wave by `score_delta`. Each CI-red merge \u002F review false-positive is −1; 2+ must-fix\n  received is −1; 2+ rework cycles is −1; a clean wave with 2+ PRs merged, 2+ must-fix\n  caught as reviewer, or 2+ verified reviews (reviewer verdicts carrying a concrete\n  `Verified:` block) is +1 each — so QA rigor isn't zero-credit when there are no\n  must-fixes. A single clean PR is **not** a bump.\n- **Decay toward neutral:** an engineer with no signal for 3 consecutive waves drifts one\n  step toward 3 (`trust_signals.decay(old, waves_since_signal)`). A stale 4 or 2 is no\n  longer earned; decay is one step per retro, never a reset.\n- **Distribution discipline:** 5 is reserved for the wave's top relative performer(s) with a\n  strictly positive composite (`trust_signals.apply_distribution_discipline`) — never\n  handed out for merely-clean work; other proposed 5s are capped to 4. **A tie at the top\n  composite is a reportable finding, not a blocker:** when two or more engineers share the\n  strictly-positive iteration-max composite, `apply_distribution_discipline` seats **all** of\n  them at 5 by design — the author-vs-reviewer parity #275 was built to produce, so do not\n  force a single winner. Record each tied engineer's composite in the retro and seat them all.\n  A deterministic tie-break was considered and rejected (#301): \"fewest negatives\" would\n  systematically seat reviewers over authors (`must_fix_received` only accrues to authors),\n  re-creating in reverse the asymmetry #275 removed.\n- **Retirement trigger:** run\n  `trust_signals.retirement_trigger(score_history, ci_red_history)` per engineer (both\n  histories oldest→newest). If it fires (score ≤ 2 in each of the last 3 waves, or ≥ 1\n  CI-red merge in each of the last 3 waves), surface a **persona-archive recommendation**\n  for owner confirmation — never auto-retire.\n- **Distribution-health probe:** report `trust_signals.distribution_health([...new scores])`\n  on the wave's resulting per-engineer scores — if `degenerate` is True (all pinned at\n  min\u002Fmax, or zero\u002Flow variance), the ledger stopped discriminating: cite its `reasons` in\n  the retro as a process smell (it changes no individual score).\n\nAppend a `## Wave {W} Trust Updates ({DATE}) — {theme}` section containing:\n- A `| Rated | Old | New | Reason |` table — every `Reason` cites signal numbers, not\n  prose impressions.\n- A `### Done Well \u002F Needs Improvement (Wave {W})` matrix whose \"Needs Improvement\"\n  column is the forced negative-signal line (no bare \"None\" — Step 4 already validated).\n\n### 6. Append to the feedback log\n\nAppend a retro entry to `$TEAM_DIR\u002Ffeedback_log.md`:\n\n```markdown\n## Retrospective: Wave {W} — {DATE}\n\n### Wave Metrics\n{PRs merged, issues closed, CI health, tech-debt filed, counter corrections from Step 2}\n\n### Top-Implementer Concentration\n{max PRs by one author} \u002F {total PRs} = {pct}% by {engineer}\n\n### Per-Engineer Assessments\n{from Step 3 — signals, deltas, negative-signal lines}\n\n### Top 3 Going Well\n1. {finding}\n\n### Top 3 Pain Points\n1. {finding}\n\n### Proposed Process Changes\n1. {change} — Rationale: {why}\n```\n\n**Concentration call:** if concentration ≥ 60%, force the call — *theme-fit* (the wave was\nthemed on a domain one engineer owns → \"going well\", with a forward-looking planning flag)\nor *fragility* (a multi-domain wave where one engineer absorbed the load → \"pain point\",\nwith explicit redistribution actions for the next wave). The metric is visibility, not\npolicy.\n\n### 7. Propose process\u002Fcharter changes — approval-gated\n\nBased on pain points, propose specific amendments:\n\n```\n**Proposed change:** {what}\n**Section:** {charter\u002Fskill\u002Fdoc section}\n**Rationale:** {why, anchored to a retro finding}\n```\n\n**Never open a proposed change with a GitHub closing keyword followed by an issue reference**\n(`Fix #NNN`, `Closes #NNN`, `Resolves #NNN`, …): a later PR body that quotes the proposal\nverbatim will auto-close that issue the moment the PR merges — whether or not the work landed.\nThis silently closed #296 via PR #299 (#304). Render the reference as backticked `` `#NNN` `` or\nin prose (\"per #NNN\", \"Address #NNN\") instead.\n\n**Do NOT apply any charter or process change without explicit user approval.**\n\n### 8. Present the full retro inline\n\nOutput the complete summary directly in the conversation — the user must see it without\nopening files: wave metrics + counter corrections, per-engineer assessments, trust-matrix\nchanges (who moved and the citing signals), concentration call, top-3 going well \u002F pain\npoints, proposed changes, and any retirement recommendations.\n\n### 9. Draft the next-wave meta-issue stub\n\nClose the retro→next-wave handoff loop: every retro ends with *either* an existing\nnext-wave meta-issue *or* a ready-to-theme stub — never a bare \"go create an issue\"\nblocker.\n\n```bash\nNEXT_WAVE=\"$(python3 \"$LIB\u002Flifecycle.py\" wave peek)\"\nMETA_HITS=$(gh issue list --state open --search \"\\\"Wave $NEXT_WAVE —\\\" in:title\" --json number,title)\nHIT_COUNT=$(echo \"$META_HITS\" | jq 'length')\n```\n\n- **`HIT_COUNT == 1`:** the meta-issue exists — proceed to scoping the next wave\n  (`lifecycle.py wave allocate\u002Fstart\u002Fscope`, per the wave-lifecycle steps) when the owner\n  gives the go-ahead.\n- **`HIT_COUNT > 1`:** ambiguous — list the hits as a blocker; the owner resolves before\n  any scoping.\n- **`HIT_COUNT == 0`:** auto-draft the stub. The scaffold is mechanical; **only the theme\n  is an owner decision**:\n\n  ```bash\n  NEW_URL=$(gh issue create --title \"Wave $NEXT_WAVE — (theme TBD — owner to set)\" --body \"$(cat \u003C\u003C'MD'\n  ## Theme\n\n  **TBD — owner to set.** Replace this line (and the title) with the wave theme.\n\n  ## Carry-forward from Wave {W} (auto-scaffold)\n  {deferred items from this wave's scope, or the retro's pain-point follow-ups}\n\n  ## Candidate scope\n  - Open issues labeled for the next wave, plus the configured tech-debt intake\n    (`policy.tech_debt_intake_pct`) applied at planning time.\n  - See the Wave {W} retro entry in the feedback log for follow-ups to fold in.\n\n  ---\n  *Auto-drafted stub from \u002Fwave-retro Step 9. Owner sets the theme; the title and the\n  Theme line are the only manual edits.*\n  MD\n  )\")\n  NEW_NUM=$(echo \"$NEW_URL\" | grep -oE '[0-9]+$')\n  python3 \"$LIB\u002Fupsert_status_keys.py\" \"$STATE_FILE\" \"wave_${NEXT_WAVE}_meta_issue=\\\"#$NEW_NUM\\\"\"\n  ```\n\n  This reserves the id via the `wave_{N}_meta_issue` key only — do **not** bump the wave\n  counter here. The lifecycle allocator is reservation-aware: it claims a reserved id at\n  `global_wave_seq + 1` instead of skipping it; adding a counter bump would double-advance.\n  Surface the stub URL and stop — the theme is the only manual step left.\n\n## Division of labor\n\n| Surface | Job |\n|---------|-----|\n| `\u002Fwave-end` | Mechanical finalize: review, merge, close issues, record counters, cleanup |\n| `\u002Fwave-retro` (this) | Scoring\u002Fprocess: drift verification, trust deltas, feedback log, proposals, next-wave stub |\n| `\u002Fretro` | Lightweight mid-wave pulse (diagnostic only) |\n\n## What remains manual\n\n- The user approves all charter\u002Fprocess changes before they are applied.\n- Trust-matrix changes are proposed — the user can veto specific adjustments.\n- Retirement recommendations require owner confirmation; nothing is auto-archived.\n- The next wave's theme is an owner decision; the stub only scaffolds it.\n",{"args":42,"name":5,"description":7},"Wave id (defaults to last completed wave)","main","53ec1032b93d41533a48603e8fae7a92f56cc66c","framework\u002Fassets\u002Fskills\u002Fwave-retro","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework","https:\u002F\u002Fgithub.com\u002Fparametrization","2026-09-21 01:06:30",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add parametrization\u002F2real-team-framework --skill wave-retro",{"tool":55,"command":56},"bunx","bunx skills add parametrization\u002F2real-team-framework --skill wave-retro",{"tool":58,"command":59},"pnpm","pnpm dlx skills add parametrization\u002F2real-team-framework --skill wave-retro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fframework\u002Fassets\u002Fskills\u002Fwave-retro\u002FSKILL.md",true,[63,69],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"agents\u002Fopenai.yaml","REFERENCE","参考文档",153,"https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Ftechnical-writing\u002Fagents\u002Fopenai.yaml",{"path":70,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"LICENSE","许可证",1067,"https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Ftechnical-writing\u002FLICENSE",[75,96,113,129,137,150],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":37},"01M6E5VG1R7FF1025BZAV6BDTS","wave-wrapup","Finalize a wave — PR review, merge sequencing, issue cleanup, worktree cleanup, and handoff to retro","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-wrapup\u002FSKILL.md",[],[82,83,84,85,86,87,88,89,90,19,91,92,93,94,95],"wave wrapup","wrapup","review","handoff","merge","pr review","pr","cleanup","worktree","team","issue","worktree cleanup","name","sequencing",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":37},"01M6E5V9GDF75GV4YD2WPSH912","wave-start","Initialize a new wave — worktree cleanup, branch creation, label setup, status file update","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-start\u002FSKILL.md",[],[103,104,105,89,106,90,107,91,108,109,110,93,111,94,112],"wave start","start","setup","update","file","branch","file update","initialize","creation","status",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":37},"01M6E5V4VXEJ39V87VHN1A3AW9","wave-scope","Reconcile declared-vs-labeled wave scope between \u002Fwave-retro and \u002Fwave-kickoff — collect dispositions, fold in retro carry-forwards and memory must-includes, and refresh the meta-issue","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-scope\u002FSKILL.md",[],[120,121,122,123,124,19,125,126,127,92,128],"wave scope","scope","memory","collect","Meta","refresh","reconcile","Fold","kickoff",{"skillNo":130,"name":5,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":37},"01M6E5TZNPGG5EXZEN1FKJJT6K","Automated wave retrospective — PR analysis, assessments, trust matrix updates, feedback log, charter change proposals","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-retro\u002FSKILL.md",[],[18,19,31,135,88,29,136,91,35,34,30,94],"change","analysis",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":37},"01M6E5TR8XB3Z10A9SD4ZYNV45","wave-kickoff","Automated wave planning — branch creation, label management, issue labeling, kickoff comments, and execution plan","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-kickoff\u002FSKILL.md",[],[144,128,145,92,111,94,146,91,147,108,148,149],"wave kickoff","management","plan","execution","planning","execution plan",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":37},"01M6E5TMZAFB6MTVYT750FZDVY","wave-audit","Audit open issues against merged PRs — find and close orphaned issues with proper comments","https:\u002F\u002Fgithub.com\u002Fparametrization\u002F2real-team-framework\u002Fblob\u002Fmain\u002Fintake\u002Fnoorinalabs-2026-06\u002Fcandidates\u002Fskills\u002Fwave-audit\u002FSKILL.md",[],[157,158,159,160,161,162],"audit","wave audit","close","find","open","issues"]