[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JAPHKXW8GKAGD2AVBPWJZ":3,"skill-same:01M77JAPHKXW8GKAGD2AVBPWJZ":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77JAPHKXW8GKAGD2AVBPWJZ","pr-readiness-reviewer",null,"Render ONE structured \"is this PR safe to merge\" verdict for a single pull request in the Seshat_BI repo -- merge_ready (yes\u002Fno) + blockers[] + warnings[] + required_human_decisions[] + evidence[] + one next_action. Use when someone asks \"is this PR ready to merge?\", \"what blocks this PR?\", or \"review this PR for promotion\". It OBSERVES the PR's state (open\u002Fdraft, mergeable, CI\u002Fworkflow conclusions, open review threads, unresolved Codex\u002FGitHub review comments) and READS the committed readiness evidence the PR touches (readiness-status.yaml, source-map.yaml approval metadata, declared-vs-run tests, no raw data \u002F no secrets \u002F no local paths), then cross-checks the PR body's CLAIMS against that evidence. READ-ONLY: it CANNOT merge a PR, approve a PR, resolve a review thread, push\u002Famend a commit, edit a PR body, or move\u002Fupgrade a readiness stage -- it observes and reports only. merge_ready is a DERIVED BOOLEAN, never a numeric merge\u002Fconfidence\u002Fhealth score (rule #9); a score request is declined.","Kemetra\u002FSeshat-BI","Kemetra","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206601658?v=4","01M77J5APND9QAJK8XMBH5B1A8","01M77J5AR4TM1GN2G4GS5KH02J",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-readiness-reviewer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pr-readiness-reviewer\ndescription: >-\n  Render ONE structured \"is this PR safe to merge\" verdict for a single pull request in\n  the Seshat_BI repo -- merge_ready (yes\u002Fno) + blockers[] + warnings[] +\n  required_human_decisions[] + evidence[] + one next_action. Use when someone asks \"is\n  this PR ready to merge?\", \"what blocks this PR?\", or \"review this PR for promotion\". It\n  OBSERVES the PR's state (open\u002Fdraft, mergeable, CI\u002Fworkflow conclusions, open review\n  threads, unresolved Codex\u002FGitHub review comments) and READS the committed readiness\n  evidence the PR touches (readiness-status.yaml, source-map.yaml approval metadata,\n  declared-vs-run tests, no raw data \u002F no secrets \u002F no local paths), then cross-checks the\n  PR body's CLAIMS against that evidence. READ-ONLY: it CANNOT merge a PR, approve a PR,\n  resolve a review thread, push\u002Famend a commit, edit a PR body, or move\u002Fupgrade a\n  readiness stage -- it observes and reports only. merge_ready is a DERIVED BOOLEAN, never\n  a numeric merge\u002Fconfidence\u002Fhealth score (rule #9); a score request is declined.\n---\n\n# pr-readiness-reviewer\n\n\u003C!--\n=============================================================================\n EMBEDDED MODULE CONTRACT (F024 authority declaration -- filled in place)\n This skill fills templates\u002Fmodule-contract.md HERE rather than as a separate\n file (this feature ships exactly three artifacts: this skill, the verdict\n template, and the tool doc). The category is declared verbatim below.\n See: docs\u002Farchitecture\u002Fproduct-modules.md (the five categories, the authority\n      matrix, the two sub-vocabularies), templates\u002Fmodule-contract.md (the\n      copy-me declaration this fills).\n=============================================================================\n-->\n\n## Module Contract -- PR Readiness Reviewer\n\n- **Authority category:** Product Module\n- **Capability level:** `read-only`  *(exactly one of `read-only | artifact-writing | execution-capable`)*\n- **Product layer:** cross-cutting *(the functional axis -- see docs\u002Froadmap\u002Froadmap.md; orthogonal to category; this module guards promotions at every stage and enters none)*\n- **Roadmap feature:** F025  **On-disk spec:** `specs\u002F019-pr-readiness-reviewer`\n- **Owner:** the repo maintainer \u002F PR reviewer (a named human)\n- **Status:** Authored\n\n### What it does (one line)\n\n> Reads one PR's observed state and the committed readiness evidence it touches, and\n> RENDERS a structured `merge_ready` verdict -- a reading of evidence, never an authority.\n\n### Core Authority it READS\n\nIt reads; it never writes these. Inputs, unchanged.\n\n- `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` -- `current_stage`, per-stage `status`,\n  `approvals[]` (named owner + date), `blocking_reasons[]`.\n- `source-map.yaml` -- approval \u002F mapping-gate CLEARED metadata (when the PR touches a mapping).\n- The PR's declared test plan, the recorded `seshat check` \u002F `retail validate` and CI\n  results, and the PR diff \u002F file list (for the raw-data \u002F secret \u002F path scan).\n\n### Derived evidence it WRITES\n\n- none (`read-only`; the verdict is rendered EPHEMERALLY to the operator -- \"presents \u002F\n  summarizes Core Authority\", NOT \"writes derived evidence\". No tracked verdict file is\n  written and no committed evidence artifact is created).\n\n### Approved step it EXECUTES\n\n- none (`read-only`).\n\n### Forbidden operations (the matrix says NO)\n\n- MUST NOT create truth: no defining business meaning, no approving a metric \u002F mapping.\n- MUST NOT grant approval or move a readiness stage to `pass` (named-human \u002F Core Authority only).\n- MUST NOT connect to a DB or external service, and MUST NOT publish a Power BI artifact.\n- MUST NOT emit a numeric \u002F maturity \u002F confidence score (rule #9).\n- As a `read-only` module it additionally MUST NOT write any derived evidence or execute any step.\n- MUST NOT (this module's concrete read-only boundary): merge a PR, approve a PR (submit a\n  review, grant a required approval), resolve \u002F reply to \u002F edit a review thread or comment,\n  push \u002F amend \u002F revert a commit, edit a PR body or title, or move \u002F upgrade \u002F mark `pass`\n  a readiness stage or clear the mapping gate. It performs read-only observation only.\n\n### How it handles a missing input\n\nWhen a required Core Authority input is absent or a stage is not yet `pass`, the module\nrecords that verdict line `unknown` (naming the missing source), surfaces it, and STOPS --\nit never fabricates the input, assumes `pass`, self-approves, or proceeds past the missing\ngate (Principle V; stop-and-ask).\n\n---\n\nThe kit merges work through a human PR review pattern that is, today, re-applied by hand on\nevery PR: is the PR still a draft, is it mergeable, did CI pass, are there unresolved\nCodex \u002F GitHub review comments, does the PR body claim a readiness stage the committed\n`readiness-status.yaml` does not back, was a publish approval requested before the required\nprior stage is `pass`, did someone commit raw data or a secret or a local machine path.\nThis skill turns that pattern into a repeatable read: it OBSERVES one PR plus the committed\nreadiness evidence and RENDERS one structured verdict. It is the per-PR sibling of the\nF012 portfolio control room: F012 answers \"which table is broken across the portfolio\";\nthis answers \"is THIS pull request safe to merge, and what blocks it\". It adds no new gate,\nno new validator, no `seshat check` rule, no CLI verb, and no CI workflow (Principle VIII;\nhard rule #8): the agent is the runtime.\n\n## Scope boundary (read first)\n\n- **Aggregates and observes, never re-derives or gates.** Every verdict line traces back\n  to an observed PR fact or a committed evidence file. It READS the recorded results of the\n  existing gates (`seshat check` \u002F `retail validate`) and the existing CI; it does NOT\n  re-run them as a new check and adds no rule. Reading PR \u002F CI \u002F git state is read-only\n  OBSERVATION, not a gate and not a mutation.\n- **Read-only (the boundary, verbatim).** The module cannot merge a PR, approve a PR\n  (submit a review, grant a required approval), resolve \u002F reply to a review thread,\n  push \u002F amend a commit, edit a PR body, or move \u002F upgrade a readiness stage -- it observes\n  and reports only (F024 Core Authority; Principle V).\n- **The gating rule (verbatim).** `merge_ready` is `no` while ANY `blockers[]` entry OR ANY\n  open `required_human_decisions[]` entry exists; `warnings[]` do NOT alone flip\n  `merge_ready`; `required_human_decisions[]` is a SEPARATE gating class from `blockers[]`\n  and BOTH gate `merge_ready: yes`.\n- **No fake confidence.** `merge_ready` is a DERIVED BOOLEAN (\"no blocker and no open\n  required-human-decision found in evidence\"), never a numeric merge \u002F confidence \u002F health\n  score and never an approval (rule #9). The module emits NO number that reads as\n  confidence; asked for one, it declines and cites rule #9.\n- **Every line traces to a source.** EVERY entry in `blockers[]`, `warnings[]`,\n  `required_human_decisions[]` carries a cited source -- a PR fact (PR number, check-run\n  conclusion, thread \u002F comment id) or a committed source (path + field \u002F line). A finding\n  with no traceable source is a defect.\n- **Defines no business meaning and approves nothing.** A grain, a PII publish-safety call,\n  a sentinel-vs-null choice, a business rollup, or whether a metric \u002F mapping is correct are\n  `required_human_decisions[]` it routes to a named owner (Principle V) -- never decided here.\n- **Generic.** No worked-example specifics (billing codes, segments, PII column names,\n  per-table grain keys). C086 \u002F `retail_store_sales` are filled instances cited as\n  references, never baked in (Principle VII).\n- ASCII only, UTF-8 no BOM; `--` and `->` only.\n\n## Aggregates and observes, never re-derives (the evidence chain)\n\nEvery verdict input is interpreted from one observed PR fact or one committed source, at\nthe default severity below. This is the reproducibility backbone of the rendered verdict.\n\n| Verdict input | Source it observes \u002F reads | Default severity |\n|---------------|----------------------------|------------------|\n| PR state (open \u002F draft \u002F closed) | the PR's own state (e.g. `gh pr view`) | draft -> blocker; closed -> blocker |\n| mergeability \u002F conflicts | the PR's mergeable state + base divergence | conflicts -> blocker |\n| CI \u002F workflow conclusions | recorded check-run \u002F workflow conclusions on the head SHA | failing required check -> blocker; pending -> blocker for `yes` |\n| open review threads | unresolved review threads on the PR | unresolved -> warning (blocker if change-requested) |\n| Codex \u002F GitHub review comments | unresolved review comments \u002F findings | unresolved -> warning; unaddressed change-request -> blocker |\n| tests declared vs run | the PR body's claimed test plan vs the recorded CI test result | declared-not-run -> blocker |\n| no raw data committed | the PR diff file list vs the repo's raw-data ignore policy | raw data present -> blocker |\n| no secrets \u002F no local paths | the PR diff scanned for secret-shaped \u002F machine-path strings | present -> blocker |\n| readiness-stage consistency | PR-body claimed stage vs `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` `current_stage` + per-stage `status` | mismatch -> blocker |\n| approvals consistency | PR-body claimed approval vs `readiness-status.yaml` `approvals[]` (named owner + date) | missing \u002F absent -> blocker |\n| source-map approval metadata | `source-map.yaml` approval \u002F mapping-gate CLEARED metadata (PR touches a mapping) | absent when claimed -> blocker |\n| PR-body drift vs readiness | any PR-body claim unsupported by committed evidence | unsupported claim -> warning (blocker if it asserts a stage `pass`) |\n| publish approval requested too early | a publish \u002F merge-to-publish request while the required prior stage is not `pass` | too-early -> required_human_decision, and a blocker until resolved |\n\nIf a source is missing, record that line `unknown` with the missing source NAMED -- do NOT\ninvent a status or assume `pass`. The module cannot UPGRADE a verdict past its evidence.\n\n## Run it -- render the verdict\n\nRender `templates\u002Fpr-readiness-report.md` filled from the observed PR facts + committed\nevidence. Eight steps, then STOP:\n\n### 1. Identify the target PR\nName the single PR under review (number \u002F ref) and its head SHA. This module is per-PR\n(a portfolio PR roll-up is deferred).\n\n### 2. OBSERVE the PR facts (read-only)\nRead the PR's state (open \u002F draft \u002F closed), mergeable state + base divergence, recorded\nCI \u002F workflow conclusions on the head SHA, open review threads, and unresolved\nCodex \u002F GitHub review comments -- via read-only `gh` \u002F git reads the agent already\nperforms (`gh pr view`, `gh pr checks`, the PR diff). Read, never write, GitHub state.\n\n### 3. READ the committed readiness evidence the PR touches\nRead `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` (`current_stage`, per-stage `status`,\n`approvals[]`, `blocking_reasons[]`), `source-map.yaml` approval metadata (if the PR\ntouches a mapping), the declared test plan, the recorded `seshat check` \u002F `retail validate`\nand CI results, and the PR diff for the raw-data \u002F secret \u002F local-path scan. These are\nINPUTS; the module creates no new evidence file.\n\n### 4. CROSS-CHECK the PR-body claims against that evidence\nThe novel surface this module owns: compare what the PR CLAIMS to what the committed\nevidence SUPPORTS -- readiness-stage consistency, approvals consistency, source-map\napproval metadata, and general PR-body drift. A claim asserting a stage `pass` unsupported\nby evidence is a blocker; a lesser unsupported claim is a warning. Cite the conflicting\nfield; edit nothing.\n\n### 5. CLASSIFY each finding (blocker \u002F warning \u002F required-decision)\nApply the evidence-chain severity defaults above (Principle VI). A deviation from a default\n(e.g. an unresolved thread promoted to a blocker because a reviewer marked change-requested)\nis recorded WITH ITS REASON -- never silently promoted or demoted. A Principle-V judgment\nitem (see the trigger list below) is a `required_human_decision`, routed to a named owner.\n\n### 6. APPLY the gating rule to derive merge_ready\n`merge_ready` is `no` while ANY `blockers[]` entry OR ANY open `required_human_decisions[]`\nentry exists; `warnings[]` do NOT alone flip it. A `pending` or `unknown` line is NOT\ntreated as `pass`. `merge_ready: yes` requires zero blockers AND zero open\nrequired-human-decisions, each line traceable to its source.\n\n### 7. FILL the template\nRender `templates\u002Fpr-readiness-report.md` with the six fields -- `merge_ready`,\n`blockers[]`, `warnings[]`, `required_human_decisions[]`, `evidence[]`, one `next_action`\n-- each finding carrying its cited source. Add no seventh field, no summary, no score.\n\n### 8. STOP -- report and recommend, take no action\nEmit the verdict EPHEMERALLY to the operator and recommend the single `next_action` a\nHUMAN should take. Take no action on the PR: no merge, no approve, no thread resolution,\nno commit \u002F PR-body edit, no stage move. The verdict is rendered, never committed.\n\n## Principle-V required_human_decisions[] (surface, never resolve)\n\nEach is a HUMAN judgment call. The module RECOMMENDS; the named owner DECIDES. Each routes\nto a named owner; an item with no named owner is shown `UNASSIGNED` and flagged. An open\nrequired-decision gates `merge_ready: yes`. The module never rules, self-resolves, or\nself-assigns.\n\n| Trigger | Action | Owner |\n|---------|--------|-------|\n| Publish \u002F merge-to-publish requested before the required prior stage is `pass` | record a `required_human_decision`, set `merge_ready: no`; never approve the publish or move the stage | named publish owner |\n| A PII publish-safety question | route to governance sign-off; never declare a column publish-safe | governance |\n| A grain ambiguity \u002F sentinel-vs-null choice | surface; never auto-pick a grain or a sentinel | analyst |\n| A business rollup \u002F segment mapping the analyst has not supplied | surface; never invent the mapping | analyst |\n| Any request to \"approve and merge this PR\" or \"mark this stage `pass`\" | DECLINE; state it is read-only and cannot create truth (F024 \u002F Principle V); return the verdict for a human to act on | human |\n\n## No fake confidence (the guardrail)\n\nIf asked for \"a merge-readiness score 0-100\", \"how confident are you\", or \"one health\nnumber\", DECLINE: cite no-fake-confidence (rule #9) and return the boolean `merge_ready`\nplus the explicit `blockers[]` \u002F `warnings[]` \u002F `required_human_decisions[]` with their\ncited sources. A PR verdict is exactly where a tidy invented score is tempting; it is\nforbidden.\n\n## Decline-to-act (read-only proof)\n\nAsked to merge, approve, submit a review, resolve \u002F reply to a thread, edit the PR body,\npush a commit, or mark a stage `pass`, the skill DECLINES, states it is read-only and\ncannot create truth (F024 Core Authority; Principle V), and returns the verdict for a human\nto act on. After a run, GitHub state is unchanged (no merge, no review, no resolved thread,\nno edited body) and `git status` shows no modified `mappings\u002F\u003Ctable>\u002F` evidence -- the skill\nobserved and reported only. Run on its own PR, it reviews it like any other and cannot\nself-approve.\n\n## Honest-state rules (never invent, never silently re-run)\n\n| Situation | What the reviewer does |\n|-----------|------------------------|\n| The PR touches no readiness artifact | record the readiness lines `unknown` \u002F \"not applicable\"; do NOT fabricate a stage or a verdict |\n| A referenced `readiness-status.yaml` \u002F `source-map.yaml` is absent | record the line `unknown` naming the missing source; do NOT assume `pass` |\n| A required CI check is queued \u002F in-progress | report `pending` (a blocker for `merge_ready: yes`); do NOT re-trigger or wait on CI itself |\n| Two sources disagree (PR body says stage `pass`; `readiness-status.yaml` shows `blocked` with an open reason) | SURFACE the conflict as a finding; do NOT resolve it by choosing one (Principle V) |\n| A secret-shaped string in the diff | flag as a blocker AND recommend the STOP-rotate-sweep posture; report the location but do NOT edit or remove it (read-only) |\n| A `required_human_decision` whose owner is not named | show owner `UNASSIGNED` and flag it; never self-assign or self-resolve |\n\n## See also\n\n- The output shape: `..\u002F..\u002F..\u002Ftemplates\u002Fpr-readiness-report.md`; the tool doc (when to\n  run, field meanings, the gating rule): `..\u002F..\u002F..\u002Fdocs\u002Ftools\u002Fpr-readiness-reviewer.md`.\n- The authority category it declares: `..\u002F..\u002F..\u002Fdocs\u002Farchitecture\u002Fproduct-modules.md`\n  (Product Module \u002F `read-only`; the matrix, the two sub-vocabularies); the copy-me\n  declaration it fills: `..\u002F..\u002F..\u002Ftemplates\u002Fmodule-contract.md`; the seam (Module vs\n  Adapter): `..\u002F..\u002F..\u002Fdocs\u002Farchitecture\u002Fcore-vs-modules-and-adapters.md`.\n- The committed evidence it reads (inputs, unchanged): `..\u002F..\u002F..\u002Ftemplates\u002Freadiness-status.yaml`\n  (`current_stage`, per-stage `status`, `approvals[]`, `blocking_reasons[]`),\n  `..\u002F..\u002F..\u002Ftemplates\u002Fsource-map.yaml` approval metadata.\n- The closest read-only sibling: `.claude\u002Fskills\u002Fretail-control-room\u002FSKILL.md` (F012, the\n  portfolio roll-up); the invoke-and-interpret sibling: `.claude\u002Fskills\u002Fretail-validate\u002FSKILL.md`.\n- The model + no-fake-confidence rule: `..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-model.md`; the\n  stage sequence: `..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-pipeline.md`.\n- The gates it reads (never re-runs as a new check): the `retail-govern` \u002F `seshat check`\n  static surface, the `retail-validate` \u002F `retail validate` live surface.\n- The roadmap row + hard rules: `..\u002F..\u002F..\u002Fdocs\u002Froadmap\u002Froadmap.md` (F025, cross-cutting;\n  #7 \u002F #8 \u002F #9); Principles V, VII, VIII, IX. A filled worked example lives under\n  `..\u002F..\u002F..\u002Fdocs\u002Fworked-examples\u002F`.\n\n## Orchestration\n\nWhen a table is driven end-to-end, the `retail-orchestrate` conductor may invoke this\nreviewer as the pre-merge READ on the PR that would advance a stage -- to assemble the\nmerge checklist in one place before a human approves and merges. This skill reads state and\nreports; it advances no stage, clears no blocker, grants no approval, and merges nothing.\nThe merge and the approval stay the named human's action; the self-heal loop and any\nper-table fix live in `retail-orchestrate` \u002F the per-table owner, never here.\n","# pr-readiness-reviewer\n\n\u003C!--\n=============================================================================\n EMBEDDED MODULE CONTRACT (F024 authority declaration -- filled in place)\n This skill fills templates\u002Fmodule-contract.md HERE rather than as a separate\n file (this feature ships exactly three artifacts: this skill, the verdict\n template, and the tool doc). The category is declared verbatim below.\n See: docs\u002Farchitecture\u002Fproduct-modules.md (the five categories, the authority\n      matrix, the two sub-vocabularies), templates\u002Fmodule-contract.md (the\n      copy-me declaration this fills).\n=============================================================================\n-->\n\n## Module Contract -- PR Readiness Reviewer\n\n- **Authority category:** Product Module\n- **Capability level:** `read-only`  *(exactly one of `read-only | artifact-writing | execution-capable`)*\n- **Product layer:** cross-cutting *(the functional axis -- see docs\u002Froadmap\u002Froadmap.md; orthogonal to category; this module guards promotions at every stage and enters none)*\n- **Roadmap feature:** F025  **On-disk spec:** `specs\u002F019-pr-readiness-reviewer`\n- **Owner:** the repo maintainer \u002F PR reviewer (a named human)\n- **Status:** Authored\n\n### What it does (one line)\n\n> Reads one PR's observed state and the committed readiness evidence it touches, and\n> RENDERS a structured `merge_ready` verdict -- a reading of evidence, never an authority.\n\n### Core Authority it READS\n\nIt reads; it never writes these. Inputs, unchanged.\n\n- `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` -- `current_stage`, per-stage `status`,\n  `approvals[]` (named owner + date), `blocking_reasons[]`.\n- `source-map.yaml` -- approval \u002F mapping-gate CLEARED metadata (when the PR touches a mapping).\n- The PR's declared test plan, the recorded `seshat check` \u002F `retail validate` and CI\n  results, and the PR diff \u002F file list (for the raw-data \u002F secret \u002F path scan).\n\n### Derived evidence it WRITES\n\n- none (`read-only`; the verdict is rendered EPHEMERALLY to the operator -- \"presents \u002F\n  summarizes Core Authority\", NOT \"writes derived evidence\". No tracked verdict file is\n  written and no committed evidence artifact is created).\n\n### Approved step it EXECUTES\n\n- none (`read-only`).\n\n### Forbidden operations (the matrix says NO)\n\n- MUST NOT create truth: no defining business meaning, no approving a metric \u002F mapping.\n- MUST NOT grant approval or move a readiness stage to `pass` (named-human \u002F Core Authority only).\n- MUST NOT connect to a DB or external service, and MUST NOT publish a Power BI artifact.\n- MUST NOT emit a numeric \u002F maturity \u002F confidence score (rule #9).\n- As a `read-only` module it additionally MUST NOT write any derived evidence or execute any step.\n- MUST NOT (this module's concrete read-only boundary): merge a PR, approve a PR (submit a\n  review, grant a required approval), resolve \u002F reply to \u002F edit a review thread or comment,\n  push \u002F amend \u002F revert a commit, edit a PR body or title, or move \u002F upgrade \u002F mark `pass`\n  a readiness stage or clear the mapping gate. It performs read-only observation only.\n\n### How it handles a missing input\n\nWhen a required Core Authority input is absent or a stage is not yet `pass`, the module\nrecords that verdict line `unknown` (naming the missing source), surfaces it, and STOPS --\nit never fabricates the input, assumes `pass`, self-approves, or proceeds past the missing\ngate (Principle V; stop-and-ask).\n\n---\n\nThe kit merges work through a human PR review pattern that is, today, re-applied by hand on\nevery PR: is the PR still a draft, is it mergeable, did CI pass, are there unresolved\nCodex \u002F GitHub review comments, does the PR body claim a readiness stage the committed\n`readiness-status.yaml` does not back, was a publish approval requested before the required\nprior stage is `pass`, did someone commit raw data or a secret or a local machine path.\nThis skill turns that pattern into a repeatable read: it OBSERVES one PR plus the committed\nreadiness evidence and RENDERS one structured verdict. It is the per-PR sibling of the\nF012 portfolio control room: F012 answers \"which table is broken across the portfolio\";\nthis answers \"is THIS pull request safe to merge, and what blocks it\". It adds no new gate,\nno new validator, no `seshat check` rule, no CLI verb, and no CI workflow (Principle VIII;\nhard rule #8): the agent is the runtime.\n\n## Scope boundary (read first)\n\n- **Aggregates and observes, never re-derives or gates.** Every verdict line traces back\n  to an observed PR fact or a committed evidence file. It READS the recorded results of the\n  existing gates (`seshat check` \u002F `retail validate`) and the existing CI; it does NOT\n  re-run them as a new check and adds no rule. Reading PR \u002F CI \u002F git state is read-only\n  OBSERVATION, not a gate and not a mutation.\n- **Read-only (the boundary, verbatim).** The module cannot merge a PR, approve a PR\n  (submit a review, grant a required approval), resolve \u002F reply to a review thread,\n  push \u002F amend a commit, edit a PR body, or move \u002F upgrade a readiness stage -- it observes\n  and reports only (F024 Core Authority; Principle V).\n- **The gating rule (verbatim).** `merge_ready` is `no` while ANY `blockers[]` entry OR ANY\n  open `required_human_decisions[]` entry exists; `warnings[]` do NOT alone flip\n  `merge_ready`; `required_human_decisions[]` is a SEPARATE gating class from `blockers[]`\n  and BOTH gate `merge_ready: yes`.\n- **No fake confidence.** `merge_ready` is a DERIVED BOOLEAN (\"no blocker and no open\n  required-human-decision found in evidence\"), never a numeric merge \u002F confidence \u002F health\n  score and never an approval (rule #9). The module emits NO number that reads as\n  confidence; asked for one, it declines and cites rule #9.\n- **Every line traces to a source.** EVERY entry in `blockers[]`, `warnings[]`,\n  `required_human_decisions[]` carries a cited source -- a PR fact (PR number, check-run\n  conclusion, thread \u002F comment id) or a committed source (path + field \u002F line). A finding\n  with no traceable source is a defect.\n- **Defines no business meaning and approves nothing.** A grain, a PII publish-safety call,\n  a sentinel-vs-null choice, a business rollup, or whether a metric \u002F mapping is correct are\n  `required_human_decisions[]` it routes to a named owner (Principle V) -- never decided here.\n- **Generic.** No worked-example specifics (billing codes, segments, PII column names,\n  per-table grain keys). C086 \u002F `retail_store_sales` are filled instances cited as\n  references, never baked in (Principle VII).\n- ASCII only, UTF-8 no BOM; `--` and `->` only.\n\n## Aggregates and observes, never re-derives (the evidence chain)\n\nEvery verdict input is interpreted from one observed PR fact or one committed source, at\nthe default severity below. This is the reproducibility backbone of the rendered verdict.\n\n| Verdict input | Source it observes \u002F reads | Default severity |\n|---------------|----------------------------|------------------|\n| PR state (open \u002F draft \u002F closed) | the PR's own state (e.g. `gh pr view`) | draft -> blocker; closed -> blocker |\n| mergeability \u002F conflicts | the PR's mergeable state + base divergence | conflicts -> blocker |\n| CI \u002F workflow conclusions | recorded check-run \u002F workflow conclusions on the head SHA | failing required check -> blocker; pending -> blocker for `yes` |\n| open review threads | unresolved review threads on the PR | unresolved -> warning (blocker if change-requested) |\n| Codex \u002F GitHub review comments | unresolved review comments \u002F findings | unresolved -> warning; unaddressed change-request -> blocker |\n| tests declared vs run | the PR body's claimed test plan vs the recorded CI test result | declared-not-run -> blocker |\n| no raw data committed | the PR diff file list vs the repo's raw-data ignore policy | raw data present -> blocker |\n| no secrets \u002F no local paths | the PR diff scanned for secret-shaped \u002F machine-path strings | present -> blocker |\n| readiness-stage consistency | PR-body claimed stage vs `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` `current_stage` + per-stage `status` | mismatch -> blocker |\n| approvals consistency | PR-body claimed approval vs `readiness-status.yaml` `approvals[]` (named owner + date) | missing \u002F absent -> blocker |\n| source-map approval metadata | `source-map.yaml` approval \u002F mapping-gate CLEARED metadata (PR touches a mapping) | absent when claimed -> blocker |\n| PR-body drift vs readiness | any PR-body claim unsupported by committed evidence | unsupported claim -> warning (blocker if it asserts a stage `pass`) |\n| publish approval requested too early | a publish \u002F merge-to-publish request while the required prior stage is not `pass` | too-early -> required_human_decision, and a blocker until resolved |\n\nIf a source is missing, record that line `unknown` with the missing source NAMED -- do NOT\ninvent a status or assume `pass`. The module cannot UPGRADE a verdict past its evidence.\n\n## Run it -- render the verdict\n\nRender `templates\u002Fpr-readiness-report.md` filled from the observed PR facts + committed\nevidence. Eight steps, then STOP:\n\n### 1. Identify the target PR\nName the single PR under review (number \u002F ref) and its head SHA. This module is per-PR\n(a portfolio PR roll-up is deferred).\n\n### 2. OBSERVE the PR facts (read-only)\nRead the PR's state (open \u002F draft \u002F closed), mergeable state + base divergence, recorded\nCI \u002F workflow conclusions on the head SHA, open review threads, and unresolved\nCodex \u002F GitHub review comments -- via read-only `gh` \u002F git reads the agent already\nperforms (`gh pr view`, `gh pr checks`, the PR diff). Read, never write, GitHub state.\n\n### 3. READ the committed readiness evidence the PR touches\nRead `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` (`current_stage`, per-stage `status`,\n`approvals[]`, `blocking_reasons[]`), `source-map.yaml` approval metadata (if the PR\ntouches a mapping), the declared test plan, the recorded `seshat check` \u002F `retail validate`\nand CI results, and the PR diff for the raw-data \u002F secret \u002F local-path scan. These are\nINPUTS; the module creates no new evidence file.\n\n### 4. CROSS-CHECK the PR-body claims against that evidence\nThe novel surface this module owns: compare what the PR CLAIMS to what the committed\nevidence SUPPORTS -- readiness-stage consistency, approvals consistency, source-map\napproval metadata, and general PR-body drift. A claim asserting a stage `pass` unsupported\nby evidence is a blocker; a lesser unsupported claim is a warning. Cite the conflicting\nfield; edit nothing.\n\n### 5. CLASSIFY each finding (blocker \u002F warning \u002F required-decision)\nApply the evidence-chain severity defaults above (Principle VI). A deviation from a default\n(e.g. an unresolved thread promoted to a blocker because a reviewer marked change-requested)\nis recorded WITH ITS REASON -- never silently promoted or demoted. A Principle-V judgment\nitem (see the trigger list below) is a `required_human_decision`, routed to a named owner.\n\n### 6. APPLY the gating rule to derive merge_ready\n`merge_ready` is `no` while ANY `blockers[]` entry OR ANY open `required_human_decisions[]`\nentry exists; `warnings[]` do NOT alone flip it. A `pending` or `unknown` line is NOT\ntreated as `pass`. `merge_ready: yes` requires zero blockers AND zero open\nrequired-human-decisions, each line traceable to its source.\n\n### 7. FILL the template\nRender `templates\u002Fpr-readiness-report.md` with the six fields -- `merge_ready`,\n`blockers[]`, `warnings[]`, `required_human_decisions[]`, `evidence[]`, one `next_action`\n-- each finding carrying its cited source. Add no seventh field, no summary, no score.\n\n### 8. STOP -- report and recommend, take no action\nEmit the verdict EPHEMERALLY to the operator and recommend the single `next_action` a\nHUMAN should take. Take no action on the PR: no merge, no approve, no thread resolution,\nno commit \u002F PR-body edit, no stage move. The verdict is rendered, never committed.\n\n## Principle-V required_human_decisions[] (surface, never resolve)\n\nEach is a HUMAN judgment call. The module RECOMMENDS; the named owner DECIDES. Each routes\nto a named owner; an item with no named owner is shown `UNASSIGNED` and flagged. An open\nrequired-decision gates `merge_ready: yes`. The module never rules, self-resolves, or\nself-assigns.\n\n| Trigger | Action | Owner |\n|---------|--------|-------|\n| Publish \u002F merge-to-publish requested before the required prior stage is `pass` | record a `required_human_decision`, set `merge_ready: no`; never approve the publish or move the stage | named publish owner |\n| A PII publish-safety question | route to governance sign-off; never declare a column publish-safe | governance |\n| A grain ambiguity \u002F sentinel-vs-null choice | surface; never auto-pick a grain or a sentinel | analyst |\n| A business rollup \u002F segment mapping the analyst has not supplied | surface; never invent the mapping | analyst |\n| Any request to \"approve and merge this PR\" or \"mark this stage `pass`\" | DECLINE; state it is read-only and cannot create truth (F024 \u002F Principle V); return the verdict for a human to act on | human |\n\n## No fake confidence (the guardrail)\n\nIf asked for \"a merge-readiness score 0-100\", \"how confident are you\", or \"one health\nnumber\", DECLINE: cite no-fake-confidence (rule #9) and return the boolean `merge_ready`\nplus the explicit `blockers[]` \u002F `warnings[]` \u002F `required_human_decisions[]` with their\ncited sources. A PR verdict is exactly where a tidy invented score is tempting; it is\nforbidden.\n\n## Decline-to-act (read-only proof)\n\nAsked to merge, approve, submit a review, resolve \u002F reply to a thread, edit the PR body,\npush a commit, or mark a stage `pass`, the skill DECLINES, states it is read-only and\ncannot create truth (F024 Core Authority; Principle V), and returns the verdict for a human\nto act on. After a run, GitHub state is unchanged (no merge, no review, no resolved thread,\nno edited body) and `git status` shows no modified `mappings\u002F\u003Ctable>\u002F` evidence -- the skill\nobserved and reported only. Run on its own PR, it reviews it like any other and cannot\nself-approve.\n\n## Honest-state rules (never invent, never silently re-run)\n\n| Situation | What the reviewer does |\n|-----------|------------------------|\n| The PR touches no readiness artifact | record the readiness lines `unknown` \u002F \"not applicable\"; do NOT fabricate a stage or a verdict |\n| A referenced `readiness-status.yaml` \u002F `source-map.yaml` is absent | record the line `unknown` naming the missing source; do NOT assume `pass` |\n| A required CI check is queued \u002F in-progress | report `pending` (a blocker for `merge_ready: yes`); do NOT re-trigger or wait on CI itself |\n| Two sources disagree (PR body says stage `pass`; `readiness-status.yaml` shows `blocked` with an open reason) | SURFACE the conflict as a finding; do NOT resolve it by choosing one (Principle V) |\n| A secret-shaped string in the diff | flag as a blocker AND recommend the STOP-rotate-sweep posture; report the location but do NOT edit or remove it (read-only) |\n| A `required_human_decision` whose owner is not named | show owner `UNASSIGNED` and flag it; never self-assign or self-resolve |\n\n## See also\n\n- The output shape: `..\u002F..\u002F..\u002Ftemplates\u002Fpr-readiness-report.md`; the tool doc (when to\n  run, field meanings, the gating rule): `..\u002F..\u002F..\u002Fdocs\u002Ftools\u002Fpr-readiness-reviewer.md`.\n- The authority category it declares: `..\u002F..\u002F..\u002Fdocs\u002Farchitecture\u002Fproduct-modules.md`\n  (Product Module \u002F `read-only`; the matrix, the two sub-vocabularies); the copy-me\n  declaration it fills: `..\u002F..\u002F..\u002Ftemplates\u002Fmodule-contract.md`; the seam (Module vs\n  Adapter): `..\u002F..\u002F..\u002Fdocs\u002Farchitecture\u002Fcore-vs-modules-and-adapters.md`.\n- The committed evidence it reads (inputs, unchanged): `..\u002F..\u002F..\u002Ftemplates\u002Freadiness-status.yaml`\n  (`current_stage`, per-stage `status`, `approvals[]`, `blocking_reasons[]`),\n  `..\u002F..\u002F..\u002Ftemplates\u002Fsource-map.yaml` approval metadata.\n- The closest read-only sibling: `.claude\u002Fskills\u002Fretail-control-room\u002FSKILL.md` (F012, the\n  portfolio roll-up); the invoke-and-interpret sibling: `.claude\u002Fskills\u002Fretail-validate\u002FSKILL.md`.\n- The model + no-fake-confidence rule: `..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-model.md`; the\n  stage sequence: `..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-pipeline.md`.\n- The gates it reads (never re-runs as a new check): the `retail-govern` \u002F `seshat check`\n  static surface, the `retail-validate` \u002F `retail validate` live surface.\n- The roadmap row + hard rules: `..\u002F..\u002F..\u002Fdocs\u002Froadmap\u002Froadmap.md` (F025, cross-cutting;\n  #7 \u002F #8 \u002F #9); Principles V, VII, VIII, IX. A filled worked example lives under\n  `..\u002F..\u002F..\u002Fdocs\u002Fworked-examples\u002F`.\n\n## Orchestration\n\nWhen a table is driven end-to-end, the `retail-orchestrate` conductor may invoke this\nreviewer as the pre-merge READ on the PR that would advance a stage -- to assemble the\nmerge checklist in one place before a human approves and merges. This skill reads state and\nreports; it advances no stage, clears no blocker, grants no approval, and merges nothing.\nThe merge and the approval stay the named human's action; the self-heal loop and any\nper-table fix live in `retail-orchestrate` \u002F the per-table owner, never here.\n",{"name":5,"description":7},"main","6266e304556a72b75d951b9433fd833481c61233",".claude\u002Fskills\u002Fpr-readiness-reviewer",0,"https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI","https:\u002F\u002Fpypi.org\u002Fproject\u002Fseshat-bi\u002F","https:\u002F\u002Fgithub.com\u002FKemetra","2026-11-11 21:44:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Kemetra\u002FSeshat-BI --skill pr-readiness-reviewer",{"tool":37,"command":38},"bunx","bunx skills add Kemetra\u002FSeshat-BI --skill pr-readiness-reviewer",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Kemetra\u002FSeshat-BI --skill pr-readiness-reviewer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-readiness-reviewer\u002FSKILL.md",true,[],[46,53,58,64,69,76],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M77JWCTJ88JWPDD25WZ2NEY8","fake-skill","A fixture skill with declaring frontmatter, used as positive shipped evidence.","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Funlisted\u002F.claude\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":54,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M77JWA0BTG4JB2HR52Q99216","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Forphan\u002F.claude\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M77JW6VE59XEFHWBTNDYAS2Q","bare-skill-no-frontmatter","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Forphan\u002F.claude\u002Fskills\u002Fbare-skill-no-frontmatter\u002FSKILL.md",[],[],{"skillNo":65,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M77JW4TD1FNFSBNP5C0WXAA5","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Fgood\u002F.claude\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M77JVWCVE3WZ82ZNFCSFVDCP","retail-kpi-knowledge","Retail KPI \u002F metric-contract reasoning layer for BI agents in the Seshat BI project. Use when an agent must reason about the BUSINESS MEANING of a retail KPI before any implementation — defining a KPI in business terms, classifying additivity (fully\u002Fsemi\u002Fnon-additive), identifying grain, listing required source fields, resolving ambiguity (gross vs net, VAT, returns, cost method, same-store), choosing an MVP KPI pack, reviewing a metric contract for completeness, or preparing a clean handoff to an implementation layer. Also use it to classify KPI sufficiency or prepare an owner policy decision packet. This is a meaning\u002Fdefinition + review layer, not an executor: it does not write DAX\u002FSQL\u002FPython, grant readiness, approve policy, or design dashboards. See INDEX.md for live\u002Fplanned routes; registry.yaml is the authoritative machine-readable inventory.","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Fskills\u002Fretail-kpi-knowledge\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M77JVNDM1NGYGSCPTBW9ZCF5","bi-sql-knowledge","SQL reasoning, validation, reconciliation, transformation, diagnostics, and anti-pattern knowledge layer for Seshat BI agents. Use when a task involves reasoning about source SQL: source profiling, table grain, keys & uniqueness, joins & fan-out amplification, aggregation correctness, COUNT\u002FNULL semantics, deduplication, validation queries, reconciliation queries, silver\u002Fgold transformation logic, window\u002Fdate-time analytics, SQL anti-patterns, or basic SQL performance reasoning, or interpretation of a supplied sanitized PostgreSQL JSON execution plan. The SQL counterpart to bi-dax-knowledge. It is a thinking & validation layer, not a database executor, runtime validator, dbt\u002FDagster project, or automatic tuning service.","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Fskills\u002Fbi-sql-knowledge\u002FSKILL.md",[],[]]