Skip to content
Back to skills

Task Review

ASecurity

Stage 4. Run the reviewer subagent against the acceptance criteria and approved plan, log issues with severity, and record a PASS/FAIL verdict. PASS → Done, FAIL → Rework.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 14, 2026
developmentpythonbashgit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add ehtesham1981/light-harness --skill task-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Task Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Task Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ehtesham1981-task-review/badge)](https://www.skillsdirectory.com/skills/ehtesham1981-task-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: task-review
description: Stage 4. Run the reviewer subagent against the acceptance criteria and approved plan, log issues with severity, and record a PASS/FAIL verdict. PASS → Done, FAIL → Rework.
disable-model-invocation: true
argument-hint: [task name]
---

You are running **/light-harness:task-review**.

**Which task.** Each task has its own folder, `.tasks/<name>/` (a git worktree on branch `task/<name>`), and this session works on one task. Use the task named in `$ARGUMENTS`, else the task this session started or worked on earlier, else run `light-harness tasks` and use the only task in progress, or ask the human which one. Below, `<name>` is that task:
- Add `--task <name>` to every `light-harness` command (they're shown that way below). If `light-harness` isn't found, use `sh "${CLAUDE_PLUGIN_ROOT}/bin/light-harness"` in its place, and give subagents that full command too.
- The task's contract is `.tasks/<name>/.light-harness/contract.md` (ignored by git, never committed). Scope paths and all code and test files are inside `.tasks/<name>/`. Run tests and git commits there, e.g. `cd .tasks/<name> && python3 -m pytest`.
- Tell every subagent the task folder, the task name and the contract path in its brief.
- If this session was opened inside a task folder itself, paths are relative to it and `--task` is optional.

**Slow suites.** `set-status Review`, `verify` and `verdict pass` (like `redgate`, unless `test_cmd_files` scopes it to the task's test files) run the project's whole suite, and may first wait for a machine-wide run slot while other tasks' suites run. When the suite takes more than a minute or two, run them in the background (Bash `run_in_background`) and wait for the notification, or give the Bash call a `timeout` above the expected suite time, and tell the reviewer the same. Don't let the tool kill a gate mid-run and retry in a loop. A suite past `suite_timeout` fails with exit 124.

1. Run `light-harness status --task <name>`. Status must be **Build** (or **Review** if a previous review was interrupted). Otherwise stop and name the right command.

2. If status is Build, run `light-harness set-status Review --task <name>`. This re-runs full verification (it reuses the implementer's passing run if the code hasn't changed since) and refuses to enter Review if it fails. On refusal, report the failures and tell the human to run `/light-harness:task-implement`.

3. **Start the reviewer and the sweepers together.** Run `light-harness status --task <name>`:
   - Its `Sweeps:` line lists the Invariant/Preservation BRs. Sweepers run **one at a time**, one after another: no two sweeps run at once on the machine, and each sweeper runs its sweep through `light-harness sweep-run --`, which holds the machine-wide sweep lock. (The config's `parallel` is still accepted but no longer starts several sweepers.)
   - On a re-review (the audit trail from `light-harness log --task <name>` has an earlier verdict), sweep:
     - the rules whose code changed since the **last `verdict` event**: run `git diff <its code snapshot>` in the task folder. Not the newest `review-requested`, which step 2 just recorded for this round.
     - any rule that an Open or Fixed issue in §11.2 names

     The reviewer may sweep more rules itself.

   In **one message**, start the reviewer and the first sweeper:
   - **The `light-harness:reviewer` subagent** with this brief: "Review the implementation independently against contract.md: re-run verify, check every AC with evidence (§11.1), check business rules, plan conformance, deviations, test quality and gaming. Sweepers are sweeping <BR ids, or: no rules>. Don't sweep those; I'll send you their report files to check and reproduce. For any other Invariant or Preservation BR, decide yourself whether it needs a sweep (see your instructions) and do it. Log issues in §11.2 with severity and a defect Class, and re-check any existing ones over their whole class. If this is a re-review, scope it to what changed since the last verdict (see your instructions). Don't give a verdict until I've sent you the sweep reports."
   - **One `light-harness:sweeper` subagent.** When it finishes, start the next, one after another, until every rule to sweep is covered. To keep the rounds few, give a sweeper several rules. Brief each one: "Task folder <path>, task <name>, contract <path>. Review round <N>. Sweep <BR ids> independently against each rule's oracle, with base copies from `light-harness baseline --task <name> --out <a new temp folder of your own>`. Run your sweep through `light-harness sweep-run -- <command>`. Write your report to <a temp file path, one per sweeper> and return that path."
     - The review round is on the `Review:` line of `light-harness status` (1 + the times the task entered Rework).
     - From round 2, add to the brief each of its rules' `Frozen generator BR-n: …; seed …` lines from §11.3: "Re-run this frozen generator unchanged, plus dimensions for the code the rework changed. Report any new dimensions separately." Sweepers in round 1 report their generator; the reviewer records it there.

   No rules to sweep: start only the reviewer, and tell it there are no sweepers.
   Pass every subagent the task folder, the task name and the contract path. Don't pass anyone your own opinion of the work. Each must judge from the contract, code, tests and git history.

4. **Hand the sweep reports to the reviewer.** Ignore any verdict in the reviewer's first reply: until it has the sweep reports, it should return interim findings only.
   When every sweeper has finished, send the reviewer the paths of all the report files with SendMessage (to its agent id from step 3; if SendMessage is deferred, load it with ToolSearch first). Use this message: "Sweep reports: <paths>. Read each one and check it instead of repeating it: run the consistency check (sample size, oracle, seed), then reproduce each reported difference plus a small fresh sample of your own. Re-run a sweep in full only if the tree changed since the sweeper ran or its report fails the consistency check. Log the confirmed defects in §11.2 and save their probes, record every sweep's method, sample size, differences and the path you took in §11.3 (and in round 1 the frozen generator), finish §11.3 and return your recommended verdict, the blocking issue IDs and any Follow-ups."
   If a sweeper failed or wrote no report, say which rules it had, so the reviewer sweeps them itself.
   If SendMessage can't be used at all, start a new `light-harness:reviewer` with this brief: "Continue the review of <task> (folder, contract). The first reviewer's work is in §11. Re-run verify, then do the sweep step: sweep reports <paths>. Check each one (consistency, then reproduce its differences plus a small fresh sample; re-run in full only if the tree changed since the sweeper ran or the report is inconsistent), log the confirmed defects in §11.2 and save their probes, finish §11.3 and return your recommended verdict, the blocking issue IDs and any Follow-ups."

   The reviewer checks a sweep rather than repeating it: it re-runs a sweeper's sweep in full only if the tree changed since the sweeper ran or the report fails the consistency check (sample size, oracle, seed, differences reproducible). Otherwise it reproduces the reported differences plus a small fresh sample, and §11.3 says which path it took for each rule.

5. Record the verdict the reviewer recommends:
   - PASS: `light-harness verdict pass --by reviewer --task <name>`
   - FAIL: `light-harness verdict fail --by reviewer --task <name>`

   The harness refuses PASS if any Critical/High/Medium issue is unresolved, any AC is unticked, a saved probe is neither promoted to a regression test nor waived, or verification fails. **Review is the final stage:** `verdict pass` reuses the verify pass the review saw (its reuse key unchanged and the pass anchored in the audit trail, the `verify-pass` lines in `light-harness log`), and runs nothing. If anything in the key changed since (the tree, the probes, the config…), it refuses and runs nothing: re-run `light-harness verify --task <name>`, have the reviewer review the change, then record the verdict. The §11.4 block says how the pass was obtained (`Suite and probes: reused verify <label> (key <12 hex>)`, or `fresh run`). `verdict pass --fresh` is the explicit opt-in to running the suite and the probes here: use it when the reviewer reports a flaky test, code that reads ignored files or outside state, anything odd in the audit trail, or the task is high-stakes. If PASS is refused for any other reason, record **FAIL**. Never edit issues to get a pass.

   **Saved probes.** Each probe the reviewer saved is promoted in Build or Rework, so after a FAIL sends the task back (`probe promote` refuses in Review): the implementer adds a small regression test named after its rule and defect class that names the probe's id (e.g. `RV-1.1`; the issue's id alone isn't enough), commits it as a step-N commit, and runs `light-harness probe promote <id> --test <path> --task <name>`, so the reviewer reviews the promoted test too. A probe not worth keeping is waived by the human only (`light-harness probe waive <id> --reason "..."`). No new work is added after the PASS: the close-out commit below only records the reviewed tree.

   `verdict` also refuses (pass or fail) a Critical, High or Medium issue without `Direction: wrong result`, and a Follow-up status before review round 3; send the reviewer back to fix the row. Follow-up issues don't block a pass. `verdict pass` refuses when tracked files changed since Review began, naming them: don't restore them yourself; record **FAIL** (`verdict fail` lists the changed files), so the implementer handles them in Rework.

6. Report to the human:
   - **PASS** → status **Done**. Summarise the evidence and any open Low issues. Relay every Follow-up from the verdict's **Follow-ups** section, with its `gh issue create` command, for the human to create if they want (the harness never calls GitHub). Then offer the close-out:
     - **Finish the task** (default): with the human's OK, first commit anything still uncommitted in the task folder (`cd .tasks/<name> && git add -A && git commit -m "<summary>"`), so the branch holds exactly the reviewed work. Then run `light-harness finish-task <name>` from the project's main folder (add `--branch <name>` if the human wants the branch named differently, e.g. `feature/<ticket>`). It removes `.tasks/<name>/` and keeps the work on its branch, ready to merge or to open a pull request from; the branch carries no harness files. The contract and audit trail stay available with `light-harness show <name>` and `light-harness log <name>`, and later tasks can build on this one with `start-task <new-name> --from <name>`. (If this session was opened inside the task folder itself, it can only mark the task finished; the human then runs the same command from the main folder.)
     - Merging or pushing the branch is the human's call; don't do it unless they ask.
   - **FAIL** → status **Rework**. List the blocking issues (ID, severity, one line each). Next: `/light-harness:task-implement` to fix them, then `/light-harness:task-review` again.

<!-- Copyright 2026 Ehtesham Ahmed. Part of Light Harness (see NOTICE). SPDX-License-Identifier: Apache-2.0 -->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.