Prerequisites
- A plugin project with
quivr-plugin.yaml, test fixtures and the tooling from Build your first plugin. - 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.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 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 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 For the Go tutorial, point the pin at the
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.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, 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 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 typetext/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 so the deployment can finish work it pinned to the previous version.
Next
- Plugin pin fields lists the settings each job needs.
- Manage plugins covers registration, activation and rollback.