guildhall-self-review
Use as the Director after a task's change merges, when director status shows quality.self_review on, to record the task's script facts and rubric evidence as a self-review document without changing the task.
- License 许可
- MIT
- 所属仓库
- ndrwl/guildhall
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- guildhall-self-review
- description
- Use as the Director after a task's change merges, when director status shows quality.self_review on, to record the task's script facts and rubric evidence as a self-review document without changing the task.
02 资源文件 2
- 脚本scripts/facts.ps15.6 KB
- 脚本scripts/facts.sh3.7 KB
03 SKILL.md 正文
Self-review
A self-review records how good a delivered task's work was against the rubric in Guildhall's docs/quality.md, so the Director learns from measured quality rather than felt progress.
It is for learning and for workflow-change proposals: it never re-gates, reopens or changes a merged task.
Scripts and recorded checks decide facts, a separate judge session grades what needs judgement, and you never grade your own task.
When
Run it once per task after its merged message, only when guildhall director status --json shows "quality": {"self_review": true, ...}.
When self_review is false or quality is absent, do nothing: the practice is off for this copy.
The Guildmaster may also ask for one on a merged task, whatever the setting.
Steps
-
Read the task's records, none of which change anything:
guildhall task timeline --repo app t-12 --json guildhall task files --repo app t-12 --jsonFrom them take the head that merged, the pull request in the
publish-<k>-prdocument, the review outcomes, the validation results, and each attempt'sduration_secondsand spend. -
Choose the next number
n: one more than theself-review-<n>.jsonfiles already under<copy>/quality/<repo>/<task>/, starting at 1, where<copy>is the absolute copy directory in thecopyfield ofguildhall director status --json. Write every file of this review into that directory. -
Write the merged change's diff against the base it merged onto, from the repository's path in the config:
git -C <repo-path> diff --no-color --no-ext-diff <base>...<head> > self-review-1.diff -
Run the facts script on it with the size budget from
quality.size_budget_linesandquality.size_budget_files, using the twin for your shell, and keep its output:sh <skill-dir>/scripts/facts.sh self-review-1.diff 400 15 > self-review-1.facts pwsh -NoProfile -File <skill-dir>/scripts/facts.ps1 self-review-1.diff 400 15 > self-review-1.factsThe script makes no model call and needs no tool but the shell. It prints counts,
size_over: yeswhen the change is over either budget, and one line per item to read:secret,assertion-removed,sleep-added,skip-added,pull-request-target,write-permissionandunpinned-action, each with itsfile:line. Exit status 2 is a usage error, never a finding. -
Run the report-only tools that are already installed on the changed packages, such as
gocognit -over 15,duplandgovulncheck, and record each one's output. Install nothing: a tool that is missing is recorded asnot run: not installed, which is missing evidence, never a pass. -
Record every gate
docs/quality.mdlists: A1, B1, C1 for its forbidden cases, D4, D5 for its claims, E1, E4, F1 to F3, G1, G2, H3 and H4. E1 comes from the validation result for the exact head; A1, B1, C1, D4, D5, F1 to F3 and G1 from the review outcomes and the facts; E4, H3 and H4 from the timeline,mainCI after the merge and the Director safety checks. G2 is never a script pass, because the facts script cannot see removed table cases, changedwantvalues or assertion libraries: it is alwaysjudge: pendingandpass: null, withassertions_removedand anyassertion-removeditems as its evidence. D4, decisions recorded, passes only when each decision the change makes has a record that meets the repository's bar for one and uses its template, and every record it supersedes or amends is marked. A gate the records cannot show ispass: nullwith what is missing as its evidence, never a guess. -
Record the script-judged scores, such as G3 from the skip and sleep items, and every trend number: the H1, E3 and E5 numbers come from the timeline.
-
Leave every model-judged score
pendingwithscore: null, for a judge session that is neither you nor the task's builder; D1 is always one of them, with the facts script'snontest_lines,filesandsize_overas its evidence, andsize_over: yesis also a flag. Write the judge's brief beside the document asself-review-<n>-judge.md: the criteria to score, G2 and any other gate left pending, the anchors fromdocs/quality.md, and the files it reads. -
Write
self-review-<n>.jsonin the shape below, then tell the Guildmaster in one or two sentences: the lowest pillar, any flag, and any gate the records could not show. -
Start the judge, a separate session that is neither you nor the builder, and go on with other work while it runs:
guildhall quality judge --repo app --review 1 t-12It prints the attempt and the judge chosen, with
separate_familyand, when that is false, the reason. When itsjudgementmessage arrives, read thequality-judge-<k>-judgementdocument fromguildhall task files, copy each criterion'sscoreorpassandevidenceinto the self-review withjudge: model, and rewritelowest_pillar; never change a score the judge gave. Ajudgement-refusedmessage names what was wrong with the judge's answer; ajudge-failedone reports a failed or stopped attempt. Runningquality judgeagain passes over only a failed judge's profile; a stopped judge's profile is chosen again with unchanged settings.
The document
{
"schema": "guildhall.self-review/1",
"repository": "app",
"task": "t-12",
"number": 1,
"base": "4f1c2a9e0b7d6c5a4f3e2d1c0b9a8f7e6d5c4b3a",
"head": "9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f1a0b",
"pull_request": "https://github.com/example/app/pull/7",
"settings": {"size_budget_lines": 400, "size_budget_files": 15},
"facts": {
"files": 6, "test_files": 2, "nontest_lines": 140, "size_over": false,
"sleeps_added": 0, "sleeps_removed": 1, "skips_added": 0, "skips_removed": 0,
"assertions_removed": 0, "secrets": 0, "workflow_problems": 0,
"items": []
},
"tools": {"gocognit": "not run: not installed", "dupl": "not run: not installed", "govulncheck": "No vulnerabilities found."},
"criteria": [
{"id": "E1", "kind": "gate", "judge": "script", "pass": true, "evidence": "validate-1-result: all checks passed for head 9a8b7c6"},
{"id": "G2", "kind": "gate", "judge": "pending", "pass": null, "evidence": "assertions_removed: 0"},
{"id": "E4", "kind": "gate", "judge": "script", "pass": null, "evidence": "not shown: main CI after the merge has not finished"},
{"id": "D1", "kind": "score", "judge": "pending", "score": null, "evidence": "nontest_lines: 140, files: 6, size_over: no"},
{"id": "B2", "kind": "score", "judge": "pending", "score": null, "evidence": ""},
{"id": "H1", "kind": "trend", "judge": "script", "value": 1, "evidence": "one review round, no fix round"},
{"id": "E5", "kind": "trend", "judge": "script", "value": 0.42, "evidence": "task spend: cost measured, 0.42 USD"}
],
"flags": [],
"lowest_pillar": ""
}
criteria holds one entry per criterion recorded, by its id in docs/quality.md: a gate has pass, or pass: null with what is missing, a score has score from 0 to 3, and a trend has value.
judge is script, model, guildmaster or pending, and evidence quotes the record, file:line or command output the entry rests on.
flags lists what the Guildmaster should see, such as a size over budget, a secret item or a gate that failed; a flag never blocks anything.
lowest_pillar is the letter of the pillar with the lowest recorded score, or empty when no score is recorded yet.
Rules
- Change nothing in the task or the repository: no edits, pushes, retries, decisions or rulings.
- Never score a model-judged criterion yourself, D1 included, and never turn a trend into a target for the next task.
- Read the ledger of self-reviews at hallmark time and before you note a workflow-change plan: the criteria lowest over the window are what a workflow-change proposal must target.
The review is complete when the document records every gate in step 6, each with pass or with pass: null and what is missing, the facts and tools, the script-judged scores and trends, a pending entry with a judge brief for each model-judged score, and the Guildmaster has the summary.
04 同仓库更多 Skills
guildhall-steward-triage
Use as the Steward to collect Directors' lessons and incidents into the private config and present each triage decision to the Guildmaster, when they ask, a triage-opened message arrives or startup lists an open triage decision.
guildhall-steward-startup
Use as the Steward when a Steward session starts and its first message names startup.md, to read your notes, work every in-flight rollout approval, then run guildhall steward ready.
guildhall-steward-setup
Use as the Steward when the Guildmaster asks to take over an existing Director copy or provision a new one, to dry-run the plan, get approval of its exact digest, apply it, resume it after a failure or wizard step, or abandon a takeover.
guildhall-steward-rollout
Use as the Steward when the Guildmaster asks to roll out shared settings, check the roster or see what a copy last received, to dry-run, get approval of the exact plan digest and apply it.
guildhall-steward-handoff
Use as the Steward when a wake line says handoff due, your context fills, or the Guildmaster asks you to hand off, to keep your notes current and then run guildhall steward handoff.
guildhall-spec
Use in a plan stage to write the spec the Guildmaster accepts, including problem, solution, contracts, contract tests, acceptance criteria, out of scope and size.