> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Test, publish and pin a plugin

> Certify your plugin, ship a versioned build and configure Quivr to use it.

Run the Contract Runner before you publish a build. Then deploy the plugin as an HTTP service and give Quivr a pin, the entry that selects an exact manifest and the service that runs it.

## Prerequisites

* A plugin project with `quivr-plugin.yaml`, test fixtures and the tooling from [Build your first plugin](https://docs.quivr.thevibecompany.co/build/first-plugin.md).
* A place to publish and run the build where Quivr can reach it. A plugin that reads or uploads files also needs access to Quivr's Blob storage URLs.
* An operator who can apply the deployment configuration and verify the active plan with a key granting `plugins:admin`.

## Steps

**1. Run the Contract Runner**

From your plugin directory, run the following command. The report contains the result of each check and any issue it found.

```bash theme={null}
quivr plugin test --report contract-report.json
```

The runner starts `run.command`, probes health, compares discovery with the manifest and exercises the declared Contributions over HTTP. It checks response schemas and deadlines, replays work where the contract requires stable answers, and checks that invalid input is refused. For an API that requires signed calls, it also checks request authentication. Each job has its own checks, such as resuming from a connector checkpoint or matching a retrieval fixture's expected ranking.

Keep one fixture for every behavior you need to protect. Include fixtures for each connector kind, alert rule, search profile or file type you intend to ship. Pass `--fixture <file>` for each explicit fixture you want the runner to use. See the [protocol reference](https://docs.quivr.thevibecompany.co/reference/plugin-protocol.md) for fixture shapes and check names.

To check a running release build, run the same command with `--endpoint <plugin URL>`. Pass the directory containing the exact release manifest and fixtures if it differs from your working directory. For signed calls, the runner uses the plugin's entry from its `QUIVR_ENGINE_PLUGIN_KEYS` environment variable.

**2. Publish a versioned build**

Set the manifest's `version` to the version you plan to release. Build the service with that exact `quivr-plugin.yaml` and run the Contract Runner again on the release build. Then publish the executable, package or container alongside the matching manifest and fixtures. Record the build's immutable identifier, such as a container image digest, so the operator can redeploy the same bytes.

Start that build at an endpoint Quivr can reach. Use HTTPS for remote endpoints. Provision the [signing keys](https://docs.quivr.thevibecompany.co/reference/plugin-protocol.md#signed-engine-requests) for signed calls through your deployment's secret store. Give the plugin its own ring, and put the same ring under its ID in Quivr's engine key map.

**3. Pin it in Quivr**

Add an entry to the existing `plugins` array in the JSON file named by `QUIVR_CONFIG`. Use the same release manifest on each Quivr process. The following example adds the CSV reader from the tutorial. Replace the example endpoint and path with the address of your running service and the path where Quivr can read its manifest.

```json theme={null}
{
  "manifest": "/etc/quivr/plugins/csv-rows/quivr-plugin.yaml",
  "endpoint": "https://csv-rows.example.com",
  "routes": [{"media_type": "text/csv", "mode": "required"}]
}
```

For the Go tutorial, point the pin at the `harbour-rank` manifest and endpoint and omit `routes`. Keep the installed `core.retrieve` plugin that the scaffold's `composed` profile depends on. If you already have a [profile map](https://docs.quivr.thevibecompany.co/reference/configuration.md#search-profiles), you can keep its `default` target and submit searches with the full name `harbour-rank/default`. If the new pin gives you multiple retrieval plugins, supply a profile map with an explicit `default` target.

Apply the configuration to your Quivr deployment and restart the API and worker processes. Startup validates the local pins. When Quivr calls the service, discovery must report the digest of the exact manifest you pinned.

## Check it worked

Use [Manage plugins](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md#pin-a-plugin) to check the registered version and digest with the operator API and confirm its role in the active Pipeline Plan. Then send real work through the selected role. For the CSV reader, ingest a file with media type `text/csv` and check that a search hit identifies one of its row Parts. For the Go plugin, search with `profile` set to `harbour-rank/default`.

If you rerun the Contract Runner after changing the service, use the manifest and fixtures from that same build. When replacing an active version, follow the [activation and rollback procedure](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md) so the deployment can finish work it pinned to the previous version.

## Next

* [Plugin pin fields](https://docs.quivr.thevibecompany.co/reference/configuration.md#plugin-pins) lists the settings each job needs.
* [Manage plugins](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md) covers registration, activation and rollback.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.