Skip to content
Back to skills

Kb Judge

ASecurity

[KB] Settle disputed knowledge-base entries. Takes one disputed entry or its cluster, builds the dossier of both sides, runs a FULL live investigation (every stand involved, storefront, Admin/REST, VirtoOZ docs, source at the deployed version, BL/ECL oracles as hypotheses) that establishes the build and settings each observation was made under, and proposes a verdict per dispute as a reviewed PR on the base. A human merges; nothing is decided from the papers and nothing is auto-resolved.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
researchrustgobashgitfrontendbackend

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add VirtoCommerce/vc-mcp-testing-module --skill kb-judge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kb Judge?

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

Security grade badge for Kb Judge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/virtocommerce-kb-judge/badge)](https://www.skillsdirectory.com/skills/virtocommerce-kb-judge)

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: kb-judge
description: "[KB] Settle disputed knowledge-base entries. Takes one disputed entry or its cluster, builds the dossier of both sides, runs a FULL live investigation (every stand involved, storefront, Admin/REST, VirtoOZ docs, source at the deployed version, BL/ECL oracles as hypotheses) that establishes the build and settings each observation was made under, and proposes a verdict per dispute as a reviewed PR on the base. A human merges; nothing is decided from the papers and nothing is auto-resolved."
argument-hint: "[<KB-id> | cluster <KB-id> | next] --base <local vc-knowledge checkout>"
---

# /kb-judge — settle a dispute by investigating it, then let a human sign

A `kb_dispute` only flags an entry ("a dispute retires nothing — it flags, and a human decides").
Until this skill nothing helped the human decide and nothing could record that they had, so a
disputed entry stayed DISPUTED forever and agents kept re-arguing it. `npm run kb:disputes -- list`
prints the queue as it stands.

**Three things this skill never does:** decide from the dossier alone; write to the base's `main`;
resolve a dispute its own session took part in (`kb:disputes resolve` refuses that — see Step 6).

Input: an entry id, `cluster <id>`, or `next` (the top of the queue). `--base` is a local checkout of
`VirtoCommerce/vc-knowledge`; the operator says which, or ask.

## Step 1 — Bring the base up to date

```bash
npm run kb -- push                       # anything this session queued lands first
git -C <base> switch main && git -C <base> pull --ff-only
```

A PR built on a stale checkout conflicts with every confirm that arrived meanwhile.

## Step 2 — Take the case

```bash
npm run kb:disputes -- list --base <base>              # the queue: clusters, worst first
npm run kb:disputes -- cluster <KB-id> --base <base>   # the dossiers of the whole cluster
```

Judge a **cluster**, not an entry: entries that share two concepts or anchors are usually one
behaviour seen from several sides, and ten disputes in one feature are more likely one change than
ten errors. Note each dispute's `at` from the dossier table — it is the dispute's handle in Step 6.

Read the dossier's **hints** as hypotheses to test, never as findings.

## Step 3 — Ask the base and the docs what is already known

- **The base, for each coordinate of the cluster:** `mcp__kb__kb_ask` (CLI:
  `npm run kb -- ask "<coordinate> <question>"`) — siblings at the same coordinates, an entry that
  already states the other half, a duplicate. Rule: `CLAUDE.md` §Essential Rules → *Product context*.
- **VirtoOZ, for the documented mechanism** — what the platform is supposed to do. A doc
  decides a mechanism, never a UI string, a count or a layout.
- **The oracles, for the intended behaviour:** the `BL-*` rules (`.claude/knowledge/oracles/bl/*.yaml`)
  and `ECL-*` sections at the cluster's coordinates and concepts — what the platform should do,
  from human sources. Each matching rule goes into the specialists' brief as a hypothesis.

None of the three settles a dispute. All three shape the investigation. A verdict that contradicts a
rule is a finding, not a tie-break: [`investigation.md`](investigation.md) §3.

## Step 4 — Investigate, live and in full

Follow [`investigation.md`](investigation.md). In short, for every disputed clause:

1. Split each entry into atomic clauses and map every evidence item to the clause it touches.
2. Establish the **conditions** of every stand the evidence names, plus one more: deployed build,
   theme, the settings, store, role and entity state the clause can depend on.
3. Re-observe on each of those stands with a **fresh fixture** — storefront (`qa-frontend-expert`,
   `playwright-chrome`) and Admin/REST (`qa-backend-expert`, `playwright-edge`), dispatched per
   [`../../templates/agent-dispatch.md`](../../templates/agent-dispatch.md) §Agent Prompt Structure and
   [`../../rules/agents.md`](../../rules/agents.md) (lanes, at most three browser agents at once).
4. Read the source at each stand's **deployed** version, and its history, to find whether and where
   the behaviour changed.
5. When the sides differ, vary ONE condition at a time until the difference has a name.

Specialists **report** their observations with conditions; they do not write to the base. Who
records what, and how a held run keeps its queue private: [`investigation.md`](investigation.md) §3.
Observations of a disputed entry are recorded in Step 6 with `observe`; observations of other entries
go through the normal door with `conditions`
([`../../knowledge/execution/kb-capture-contract.md`](../../knowledge/execution/kb-capture-contract.md)
§Conditions).

**Reconstruct the past builds, not only today's.** A stand's build moves; the evidence was made on the
build of its day. The deploy repo's history gives it — `.claude/templates/agent-dispatch.md`
§Build Verification names the files; read them at the commit in force on each evidence item's date.
A dispute is most often two generations of the platform, not two errors.

**If a source cannot be reached** (a stand down, no access, the reproduction inconclusive), that
dispute gets no verdict. Say what is missing; do not infer it.

## Step 5 — Decide, per dispute

One verdict per contradicting evidence item, from the table in
[`investigation.md`](investigation.md) §4: `claim-amended`, `version-scoped`, `conditions-scoped`,
`split`, `dispute-wrong`, `defect-fixed` — or **no verdict**, which leaves the dispute open. A verdict states what was
observed, on which stands, under which conditions, and which source confirms the mechanism; if any of
the four is missing, it is not a verdict yet.

Disputes copied to a child by an earlier split (`splitFrom` on the item) are often about the sibling:
see [`investigation.md`](investigation.md) §4.

## Step 6 — Write the decision on a branch of the base

```bash
git -C <base> switch -c judge/<cluster-slug>-<yyyymmdd>
```

**One judge branch open at a time.** A merged judge PR that edits an entry's body makes
`kb:sync-base` refuse every other branch (it only carries appended evidence and resolutions), so a
second branch opened alongside the first must be brought up to date by hand.

**Run every `kb:disputes` write inside this Claude Code session.** Outside one there is no session key:
`observe` and `resolve` refuse, because the party check would have nothing to compare.

1. **Edit the entries** the verdicts require: the claim in the body, the build range or condition the
   entry now holds under, `appliesTo` for a closed axis. Change the **subject** only when it states
   the clause that was wrong — the id stays the one minted from the old subject, and a later capture
   of the new one is refused by subject, not by id. A split goes through a `split` plan and
   `npm run kb:migrate-schema2` (its header has the shape); it copies every evidence item, open
   disputes included, to **every** child.
2. **Record the investigation's observations of each disputed entry**, one per stand and build, on the
   entry (after a split: the child) the observation concerns — never before a split, which would copy
   it to a sibling it never looked at:

   ```bash
   npm run kb:disputes -- observe <KB-id> --deployment <stand> --conditions "<k=v; k=v>" \
     --note "<what was seen>" --base <base>
   ```

   `observe` takes only an active entry with an open dispute, so record before you resolve. It marks
   the item as the investigation's: it does not count in the queue, and after `claim-amended` it is
   what the entry's trust is made of — confirmations of the old wording stop counting. One judging
   session counts as ONE confirmation however many stands it observed.
3. **Close each dispute you have a verdict for, on each entry that holds it** — after a split, run
   `resolve` once per child (the verdict may differ between children):

   ```bash
   npm run kb:disputes -- resolve <KB-id> --at <dispute at> --verdict <verdict> \
     --why "<one checkable sentence>" --in <branch or PR> --base <base>
   ```

   It writes the verdict onto that entry's copies of the dispute, rebuilds `index.json`, and
   **refuses** a session that confirmed or disputed the entry itself, before or after the dispute — a
   party never judges its own case. Only your own `observe` items after the dispute do not disqualify
   you, so never `kb_confirm` / `kb_dispute` an entry you are judging — a queued one counts too (even
   under a held queue), and so does one pushed to `main` after you branched (`resolve` fetches it). If
   two different disputes share one `at`, it refuses until `--by <that dispute's by>` names one. A
   party is a session, not a person: when the dispute carries your own `who` it says so, and the PR
   must too. Both `observe` and `resolve` run the push's secret gate over what they write and refuse on
   a hit. `resolve` takes only an active entry (a retired one is judged on its successors).
   `claim-amended` records the hash of the body `main` holds (`--main <ref>`, default `origin/main`)
   and refuses while the body is still that one — edit the claim first.
4. `git -C <base> diff` — every change must be one a verdict explains. `observe` and `resolve` rewrite
   only the touched entry's index row; never run `kb reindex` on a judge branch, which also rewrites
   every stale row in the base (`list` names them; they are repaired by a separate reindex PR).

## Step 7 — Open the PR, never merge it

**Not before every client reads resolutions:** the ai-tools change that introduced `kb:disputes`
merged and pulled by the team — an older client counts a resolved dispute as open. Then bring the
branch up to date (`npm run kb:sync-base -- --base <base>`, review, commit; it carries main's appended
evidence and resolutions), push it and open a PR against `main` of `VirtoCommerce/vc-knowledge`. The PR description is
the judgement, in English, readable without this session:

- per entry: the clauses, which held, which did not;
- per dispute: its `at`, the verdict or "open — <what is missing>", and the observations behind it —
  stand, conditions, date, the ids of the evidence the investigation banked;
- the sources: the VirtoOZ page, the source file at the deployed version, the PR that changed it;
- the oracles: each `BL-*` / `ECL-*` the cluster touches, and whether the verdict agrees with it — a
  contradiction is listed for `/qa-review-oracles bl`, never fixed in the rule;
- the before/after count from `npm run kb:disputes -- list`.

No screenshots, no client names, no credentials, no emails: the base and its PRs are public. **The
operator merges.** If they reject a verdict, fix the branch; never push to `main`.

## Step 8 — Report

Tell the operator, in their language: the cluster, the PR link, how many disputes got a verdict
and which, which stayed open and why, the ids banked during the investigation, and every `BL-*`
the verdicts contradict (to run through `/qa-review-oracles bl`).

## Where things live

`scripts/kb/disputes.mjs` (the CLI), `scripts/kb/core/disputes.mjs` (queue, clusters, hints,
dossier, the resolution write and its independence check), `scripts/kb/core/conditions.mjs`,
`RESOLUTIONS` in `scripts/kb/core/index-build.mjs`. The open-dispute count is also on `/kb-report`
panel 5.

Files in this skill

  • SKILL.md11.1 KB
  • investigation.md9.9 KB

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 research →

Comments

Loading comments…

Newsletter

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