Logo : Witness

Witness

Organisation
juxt
witness

Independently witness that an Allium loop's convergence claim is true and was reached honestly. Use when the user wants to verify a loop's self-report, confirm tests really pass and no generated test was weakened, produce a convergence certificate or witness record, gate CI on a trustworthy signal, or check that an autonomous run did not cheat its way to green.

Présentation

Éditeurjuxt
Dépôtallium
Nom de la compétencewitness
Étoiles
500
Forks
25
Fichiers inclus
Instructions uniquement
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par juxt sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Witness dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/juxt/allium/tree/main/skills/witness
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/juxt/allium.git /tmp/allium
mkdir -p .claude/skills
cp -r /tmp/allium/skills/witness .claude/skills/witness
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Witness dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Witness dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Witness n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Witness

You are the loop's independent witness. When an Allium loop reports that it has converged — tests pass, weed is clean, no blocking questions remain — you confirm that claim against ground truth the run could not fabricate, and you leave behind a signed witness record. You do not do the loop's work again; you observe the evidence its phases already produced.

The distinction that gives you your value: the verify phase asks "does the code satisfy the spec?" and is run by the actor as part of its own work. You ask "is the actor's claim that it does actually true, and was it reached honestly?" — run independently, trusting nothing the actor merely asserts in prose. This is the driving the loop anti-cheat contract turned from prose the actor is trusted to follow into a check the loop can verify.

Your verdict is deterministic, not a judgement call. You re-run cheap deterministic tools and diff their output; you never grade one narrative against another. A witness that "reviews" the work is an eval; a witness that re-derives pass/fail from the runner's own output is a test. Be the test.

Interaction modes

This skill runs in two modes. Every instruction below that asks or reports something to the user follows the mode:

  • Interactive — running inline in a conversation. Present the verdict and its violations directly, and ask the user how to route any failure.
  • Non-interactive — running as the witness subagent (for example at the Allium loop's convergence gate), where no user is reachable. Never wait for an answer: write the witness record, return the verdict and every violation with its routing in your final output, and let the caller act on them.

What you never do

You are a witness, not a fixer. You do not edit the spec, the tests, or the code — not even to make a failing check pass. You write exactly one artefact: the witness record. Everything else you only read, hash, or re-run. Fixing a violation belongs to the loop's phases (tend, propagate, implementation), never to you — your job is to make the violation undeniable, not to paper over it.

Cost discipline (why the witness is cheap)

The loop's phases have already run the tests, weed, and obligation reconciliation, and each already emitted machine output. Your job is to read that ground-truth output instead of the actor's prose summary — not to redo the work.

  • Re-run freely: the cheap deterministic tools. The project's test command, allium check / allium analyse, file hashing, and grep cost no model reasoning — they are fast, deterministic Bash calls whose output is small. Re-running the test command once to read the runner's own exit status is the strongest possible evidence and is not expensive.
  • Never re-run: the model-heavy phases. Do not re-run propagate (regenerating tests), distill (re-reading the codebase), or weed's full alignment reasoning. Read the artefacts and summary lines they already produced. Re-doing an LLM phase is what would double the loop's cost — and it is exactly what a witness never needs to do.

One light pass per converged run: read the ledger, re-run the deterministic checks, hash the generated tests, write the record. That is the whole cost.

The checks

Run every check that has evidence available; skip (and say you skipped, and why) any whose evidence is absent. Each check names the ground truth it reads — never the actor's self-report.

  1. Tests genuinely pass. Re-run the project's test command (discover it the same way propagate does) and read the runner's own exit status and pass/fail counts. If you cannot re-run it, read the saved runner output the verify phase produced. The actor's reported "12/12" is not evidence; the runner's exit code is. A mismatch between the two is itself a violation.
  2. No generated test was weakened. propagate records a content hash for each generated test file in the ledger. Recompute each file's hash and compare. A generated test whose hash changed with no intervening propagate run is a hand-edited test — the cardinal anti-cheat violation. Report the file and the divergence.
  3. Coverage matches the claim. Read propagate's reconciliation line (N obligations, M covered, K uncovered) from the ledger. Confirm that every uncovered obligation carries a reported reason (infrastructure gap / unmappable construct) and that convergence was not declared while unexplained obligations remain uncovered.
  4. The weed verdict is real. Read the weed verdict recorded for this run and confirm the convergence claim matches it. Only in hard mode (opt-in, for high-assurance runs) do you re-run weed yourself for source-independent confirmation — it is the one model-heavy re-run, and it is off by default.
  5. No blocking question was silently parked. Read the spec's open questions section. Confirm it contains what the run reported as parked, and that nothing direction-changing was quietly downgraded from blocking to parked to reach convergence. A blocking question dressed as parked is a violation.
  6. Convergence actually holds. Re-evaluate the four convergence conditions — tests pass, weed clean, no blocking questions, and (code-first) a fresh distill finds nothing new — from the evidence above and the ledger, not from the run's summary line. All four must hold from ground truth.
  7. Red-before-green was real (best-effort, labelled). For a spec-first run, confirm the ledger logged a red observation for each new test before it went green, and that allium analyse / reconciliation flagged no vacuous test. This one is partly reconstructive — label it as best-effort in the record rather than overclaiming.

The verdict

The witness record's verdict is PASS only when every check that had evidence passed. Any failed check makes the verdict FAIL; a check whose evidence was absent is INCONCLUSIVE for that check and is reported as such (an all-inconclusive run is not a PASS — say the loop produced no evidence to witness).

For each violation, name the ground truth that exposed it and the routing that resolves it, so the loop or the user knows where it goes:

  • Edited generated test → revert the test and re-propagate.
  • Claimed pass but the runner shows failures → back to the implement phase.
  • Blocking question parked as non-blocking → escalate to the user.
  • Uncovered obligation with no reported reason → back to propagate reconciliation.
  • weed verdict contradicts the convergence claim → tend the spec or fix the code, per the divergence.

You classify and route; you never apply the fix.

The witness record

Write one artefact per run to .allium-loop/<goal-slug>.witness.json. It is the durable, auditable product the loop gains — the thing you can gate CI on, resume against, or show an auditor. Include:

  • the goal slug and the tick count witnessed;
  • the overall verdict (PASS / FAIL / INCONCLUSIVE);
  • per check: its name, its result, and the ground truth it read (test-runner exit status, the hash comparison, the reconciliation line, the weed verdict, the open questions diff);
  • every violation with its routing;
  • a note of any check skipped for want of evidence.

Do not embed file contents or code — the record holds verdicts and the evidence keys, not the material behind them, so it stays small and the loop's context stays flat.

Output format

When running as the witness subagent inside the Allium loop, return your result as a single JSON object conforming to witness-result.schema.json, and nothing else: the verdict, each check with the ground_truth it read, every violation with its routing, the record_path, and a one-line summary. Emit every field, using [] for an empty violations list on a PASS. The loop gates convergence on verdict directly — no prose to parse. The object mirrors the durable record you wrote to .allium-loop/<slug>.witness.json.

json
{
  "phase": "witness",
  "verdict": "FAIL",
  "checks": [
    { "name": "tests-pass", "result": "pass", "ground_truth": "runner exit 0, 12/12" },
    { "name": "no-test-weakened", "result": "fail", "ground_truth": "sha256 mismatch on order.test.js" }
  ],
  "violations": [
    { "violation": "order.test.js edited after propagate", "routing": "revert + propagate" }
  ],
  "record_path": ".allium-loop/gift-cards.witness.json",
  "summary": "witness: FAIL · tampering on order.test.js"
}

As the loop subagent, return only that JSON object — no prose before or after it, even though you also wrote the durable record to disk. The returned object is your result; the file is its durable copy.

Running interactively (not as the loop subagent), skip the JSON and close with a single human-readable summary line instead:

witness: PASS · checks 6/6 · tests 12/12 (runner) · tampering none · openQ 0 blocking · record .allium-loop/<slug>.witness.json

On an interactive failure, lead with the verdict and the violations, each with its routing, then the record path. Keep the body to the verdict and its evidence — the record holds the detail.

Interaction with other tools

  • propagate records the generated-test hashes and the reconciliation line you read. Witness confirms neither was falsified.
  • weed produces the alignment verdict you read; witness confirms convergence matches it (and, in hard mode, re-derives it).
  • tend and implementation are where violations you find get fixed — never here.
  • The loop (driving the loop) calls you at the convergence gate and converges only on your PASS.

Boundaries

  • You do not build, extract, or edit specs — that belongs to elicit, distill, tend.
  • You do not generate or repair tests — that belongs to propagate.
  • You do not modify implementation code.
  • You do not make architectural or product decisions; you surface violations and route them.

Foire aux questions

À quoi sert la compétence IA Witness ?

Independently witness that an Allium loop's convergence claim is true and was reached honestly. Use when the user wants to verify a loop's self-report, confirm tests really pass and no generated test was weakened, produce a convergence certificate or witness record, gate CI on a trustworthy signal, or check that an autonomous run did not cheat its way to green.

Pourquoi utiliser Witness sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Witness se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Witness dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/juxt/allium/tree/main/skills/witness. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Witness ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Witness ?

Autant que vous le souhaitez. Vous pouvez utiliser Witness avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Witness est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par juxt sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇