Skip to content

About

Make an agent check its own verdict before it writes a negative capability conclusion. Ships a dot skill via the official provider registry.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dsh-dot-gate

Remind an agent to check its own verdict gate before it treats a negative capability conclusion as settled. By default the write lands and the reminder follows it; hardMode: true refuses the write before it lands.

The problem

An agent that keeps notes will eventually write something like "this model cannot do X" into a wiki. That sentence outlives the evidence it was based on. The usual reminder plugins fire on a tool-call counter - they nudge when the agent is busy. But the failure is not busyness, it is speed of judgement: one source is read, a capability is declared impossible, and the claim is committed.

A counter-based nudge need not line up with that failure, while the action does by construction. That is the design argument, not a measured correlation - no such measurement exists in this repository.

What it does

It watches tool/call / tool/ptc-dispatch-start for write and edit calls whose target path contains a watched prefix and whose body contains a configured phrase. On the next step it injects one reminder asking the agent to run the project's own gate and to state sources, counter-examples, the metric used, whether the contrasted variable is known to be effective, and a re-runnable command.

It does not judge the claim. Whether three sources are enough is a policy question; this plugin only refuses to let the claim pass silently. It blocks nothing by default - hardMode: true is what denies a write.

Two modes

mode what happens why
hardMode: false (default) the write lands, then one reminder is injected the file is already on disk, so the reminder asks for a correction
hardMode: true the write is refused by a tools/pre-execute guard, with a model-facing reason the only place a write can actually be stopped

The guard is opt-in on purpose. The reasoning is that a gate which blocks on its first day tends to get uninstalled - an expectation about users, not something this project has measured. The reminder mode is the cheaper order to find that out in.

Install

dsh plugin --profile <name> add dsh-dot-gate

Then add dsh-dot-gate to dsh.profile.bundles in the profile's package.json and restart the host. Editing cordis.patch.yml config hot reloads; Node code does not.

Config

- insert:
    - id: dot-gate
      name: dsh-dot-gate
      config:
        maxPerTurn: 1
        paths: [Wiki/]
        tools: [write, edit]
        words: [做不到, cannot be done]
key default meaning
maxPerTurn 1 reminders per turn; 0 disables the mid-turn reminder (the close-boundary objection is a separate path)
steerAtTurnEnd false object once at the close boundary when a reminded hit was never rewritten without the word; the turn then runs another step. Not yet observed in a live turn
auditPath '' JSONL path for one line per hit; empty means no audit file is written (the plugin still reads its pack and skill from disk)
paths ["Wiki/"] a write is inspected only if its path contains one of these
tools ["write","edit"] tool names to inspect
words see above any match marks the write as a capability claim

Judgement pack

What counts as enough evidence lives in one JSON file, read by both implementations. It carries data only: the words that mark a claim, the watched paths, the thresholds, the registered quantities and their liveness.

Two packs ship:

pack what it is
packs/generic.json the default. Same rules, empty registries - the mechanism without anyone's quantities
packs/examples/h3-camera-study.json a filled-in example: evidence standards for camera-movement claims in a video-model study

That split is the point. A general tool must not ship with one project's measurement names baked in; a project either fills in metrics/liveVars or points packPath at its own file. Until a quantity is registered, citing it is refused - which is the intended first-run experience, not a bug.

rules composes atoms from a closed vocabulary; it never invents one. A pack that names an unknown atom is refused at load, with the key. A rule that referenced another rule's outcome would be a state machine, so that is refused too.

The skill it ships

The package also contributes a skill named dot, through the official skill registry rather than through a profile path:

export const inject = ['skills']
ctx.skills.registerProvider(() => ({ name: 'dot-gate', async list() { ... }, async get() { ... } }))

The skill body lives in skills/dot/SKILL.md and is read from disk when the registry lists it, so editing that file needs no rebuild. It describes the loop the plugin only nudges towards: collect sources, name a registered quantity, check that a contrasted variable is actually live, write down a re-run, then gate the conclusion.

Why a provider and not a directory setting: customSkillDirs configures one existing provider. A plugin that wants to contribute skills should register its own, which is the seam the bundled skills use.

Privacy

The plugin reads tool arguments in memory to match a phrase, and reads its pack and SKILL.md from disk at load. It opens no socket and keeps no state across restarts. It writes one file, and only when auditPath is set: one JSONL line per hit, holding the word, the path and up to 120 characters of the written text. Nothing leaves the process.

Limits

  • It sees the call, so the file may already be on disk when the reminder lands. The reminder asks for a check, not a revert.
  • Phrase matching is deliberately dumb. It will miss paraphrases and it will fire on quotations of other people's claims.
  • It has no opinion about your gate. Point words at whatever your project treats as a conclusion.

Process

One page from "is this worth doing" to "released": PROCESS.md.

What broke while building the companion robot, with the error text and the command that produced it: docs/running-a-plugin-robot.md (中文).

License

MIT

About

Make an agent check its own verdict before it writes a negative capability conclusion. Ships a dot skill via the official provider registry.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages