/converge:convergefrom converge
Use when a user wants to give an AI agent or Codex explicit software targets, measurable completion criteria, deterministic scoreboards, evidence audits, and repair loops.
Ships in converge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the work is bigger than one obvious bugfix and the user wants the software to become complete, trustworthy, or production-ready.
The goal is convergence: give AI explicit targets, score progress against evidence, repair the smallest failing rows, and repeat. "100%" is not a feeling and not an LLM self-grade. It means every required target row is either passing with evidence or explicitly blocked with an owner and next action.
The Greenmark v4 pattern is the model:
Converge is the contract and operating doctrine, not a single runtime. Do not overfit Converge to one JSON file, one Python script, or one repository shape.
The durable row contract is:
| Field | Meaning |
|---|---|
target_id | Stable identifier for the target row. |
target | Expected value, state, threshold, maturity stage, or behavior. |
probe | Observed value from the implementation, test, query, UI, API, or evidence. |
delta | Difference, transition, gap, or mismatch between probe and target. |
class | Match/miss/block/drift/regression classification. |
evidence | Literal proof or path to proof. |
next_action | Smallest repair, refresh, escalation, or retirement move. |
For any row that claims a pass, add a proof envelope when the proof depends on an environment, fixture, external provider, browser surface, or harness control. The envelope should make bounded truth explicit:
| Field | Meaning |
|---|---|
proof_envelope.environment | Local, staging, production, hosted dependency mix, or other runtime boundary. |
proof_envelope.surface | Browser/API/domain/CLI surface actually exercised. |
proof_envelope.proof_id | Stable proof artifact id or run id. |
proof_envelope.captured_at | Timestamp for freshness and drift. |
proof_envelope.external_dependencies | Providers/services touched by the proof. |
proof_envelope.bypassed_controls | Controls disabled, mocked, skipped, auto-satisfied, or otherwise not real. |
proof_envelope.side_effects | Control-plane, data-plane, fixture, account, or provider mutations caused by the run. |
proof_envelope.fails_to_test | Negative-space claims this proof does not establish. |
Adapters produce rows. Aggregators summarize rows. Codex repairs rows. Eidos preserves the outer evidence loop. The Python helpers in this plugin are local reference utilities and adapters, not the Converge engine.
The starter lattice schema lives at:
/Users/dshanklin/plugins/converge/schemas/converge-spec.schema.json
The portable adapter row schema lives at:
/Users/dshanklin/plugins/converge/schemas/converge-row.schema.json
Good adapters include:
Pick the convergence style that matches the work. A plugin, dashboard, API, agent, or data pipeline should not all be judged by the same pressure.
| Style | Use When | Done Means |
|---|---|---|
exact_match | The target is deterministic: generated files, schemas, known outputs, reconciliations. | Probe equals target within strict tolerance. |
tolerance_band | The target has acceptable variance: performance, finance rounding, model eval scores. | Probe stays inside an explicit acceptable band. |
staged_maturity | A system grows through phases. | Targets mature through declared, implemented, tested, verified, shipped, observed, hardened. |
regression_hardening | Stability matters more than new surface area. | Previously passing rows stay passing and recurring failures become invariants. |
drift_homeostasis | The environment changes: APIs, data, dependencies, user behavior. | Freshness monitors pass and deviations are corrected before green becomes stale. |
exploratory_narrowing | The right implementation is unknown. | Each iteration eliminates hypotheses and shrinks uncertainty. |
consensus_evidence | No single check is authoritative. | Multiple independent evidence paths agree. |
graceful_degradation | Partial function is acceptable under failure. | Critical paths continue, degraded paths are explicit and bounded. |
Use one primary style and optional secondary styles. The primary style decides what "closer" means; secondary styles provide guardrails.
The Greenmark PDF-to-warehouse comparison grid is a core Converge pattern: compare the external target against the system probe, compute the delta, classify the row by tolerance, and aggregate the bias.
Use this for any software claim that can be measured numerically or discretely:
| Column | Meaning |
|---|---|
| Target | The outside or canonical value the system must match. |
| Probe | The value produced by the current implementation, query, API, UI, or test. |
| Delta | Probe minus target, preserving direction. |
| Tolerance | The acceptable difference for this target. |
| Class | match, rounding, miss_small, miss_large, or missing. |
| Cause | Current best explanation for non-match rows. |
| Next Action | Smallest repair or investigation that could move the row. |
Keep both row-level and aggregate signals:
Do not reduce this to pass/fail too early. The delta is the steering signal.
Drift is when the world changes but the target lattice does not. Passing rows can become dishonest if their evidence, evaluator, or assumptions age out.
Track these drift types:
| Drift Type | Meaning | Response |
|---|---|---|
| Spec drift | Requirements changed but targets still encode old intent. | Update target rows before repairing code. |
| Code drift | Implementation changed but docs, tests, or target rows did not. | Re-score affected rows and add traceability. |
| Data drift | Inputs, schemas, APIs, or distributions changed. | Add schema/sample monitors and refresh fixtures. |
| Evaluator drift | Checks no longer measure the north star. | Fix the evaluator before trusting green rows. |
| Context drift | Agent assumptions became stale across time or handoffs. | Re-read canonical surfaces and refresh evidence. |
Every score is time-bound: green as of a specific target version, evidence snapshot, and evaluator version.
Regression is when a row that used to pass stops passing. Regressions should be treated as injury signals because they reveal instability in the convergence process.
Converge should:
Iteration is the metabolism of Converge: target -> attempt -> score -> audit -> repair -> re-score. Each loop should shrink uncertainty and leave better substrate behind.
A good iteration:
Living systems maintain function despite noise, mutation, damage, and changing environments. Converge should borrow these patterns:
| Biological Pattern | Software Meaning |
|---|---|
| Homeostasis | Track target bands and correct deviations before they become failures. |
| Feedback loops | Let every score directly shape the next repair target. |
| Immune memory | Promote repeated failures into durable checks. |
| Adaptation | Weight work by survival pressure: the north star, not equal row count. |
| Mutation and selection | Let AI generate repair hypotheses; deterministic checks select. |
| Developmental stages | Mature targets through declared, implemented, tested, verified, shipped, observed, hardened. |
| Redundancy | Important claims need multiple evidence paths. |
| Apoptosis | Kill or supersede targets that harm convergence or no longer serve the north star. |
Create or refresh only the tables needed for the current scope. Prefer compact JSON, CSV, Markdown tables, or repo-native formats over a giant prose spec.
| Table | Purpose |
|---|---|
| North Star | Names the actual business/product outcome and the scoring formula. |
| Target Inventory | Lists files, services, routes, commands, APIs, docs, and data surfaces in scope. |
| Layer Scoreboard | Crosses each target with completion layers such as declared, implemented, tested, verified, documented, shipped. |
| Decision Table | Captures branching business logic and expected outputs. |
| State Table | Captures legal states, transitions, guards, and side effects. |
| Invariant Table | Captures rules that must always hold, with check commands where possible. |
| Test Matrix | Maps scenarios to deterministic commands, expected results, and evidence. |
| Traceability Table | Links target -> implementation -> test -> evidence. |
| Evidence Audit | Stores literal proof: command output, screenshots, API responses, logs, or manual blocker notes. |
| Target/Probe Grid | Compares canonical target to current probe, with delta, tolerance class, cause, and next action. |
| Drift Monitors | Names assumptions, freshness windows, and recheck triggers. |
| Regression History | Records row transitions, previous evidence, cause, and whether intentional. |
| Iteration Ledger | Records loop number, score delta, repair target, hypothesis, result, and next move. |
| Repair Targets | Lists failing rows, smallest next repair, owner, status, and why it matters. |
Use a small display vocabulary for humans:
| State | Meaning |
|---|---|
pass | Required row is complete with evidence. |
fail | Required row is not good enough; repair it. |
blocked | External dependency or decision needed; name owner and unblock path. |
skip | Not required for this north star; explain why. |
If a repo already has richer states, keep them internally but collapse to these four in summaries.
Use proof-surface classes when a row passes only under a bounded proof envelope:
| Class | Meaning |
|---|---|
pass_real_surface | Proof exercised the real target surface with required controls enabled. |
pass_controlled_harness | Proof passed in a fixture, mock, local harness, or controlled environment. |
pass_with_bypass | Proof passed only because one or more controls were disabled, skipped, or auto-satisfied. |
pass_controlled_harness and pass_with_bypass are qualified passes. They may
be useful progress, but they must not silently count as full green for a real
production target. Add explicit gap rows or next actions for every bypass and
for every fails_to_test item. The reference aggregator emits
generated_gap_rows from proof_envelope.fails_to_test; treat those generated
rows as the next proof queue unless a more specific repo-owned row already
exists.
proof_envelope and create or
retain a gap row for what remains unproved.blocked
or fail honestly.The plugin includes a small Python reference adapter for simple JSON specs, a pytest/JUnit adapter, and a row aggregator. Use them to test the contract shape, not as the canonical Converge engine:
python3 /Users/dshanklin/plugins/converge/adapters/json_reference.py path/to/converge-spec.json
python3 /Users/dshanklin/plugins/converge/adapters/pytest_adapter.py --junit path/to/junit.xml --out pytest-rows.json
python3 /Users/dshanklin/plugins/converge/adapters/aggregate_rows.py reference-rows.json pytest-rows.json
The template lives at:
/Users/dshanklin/plugins/converge/assets/templates/converge-spec.json
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub eidos-agi/eidos-marketplace --plugin converge