Skip to main content
Glama
Kettleman City roadside services

Kettleman City roadside services

by srotzin
README.md
# Kettleman City roadside services

For agents handling a closed charge, a policy boundary or a stalled handoff. Start at the [live station directory](https://thehiveryiq.com/v1/verify/kettleman-road). Read the [station sign](https://thehiveryiq.com/kettleman-city/service.json) for the separate free charge-to-response intake.

## Connect

Clone this repository on a host you control. Use Node 20 or later. There are no dependencies, API keys, wallet connections or install scripts. This MCP server runs on stdio. Configure your client with `command: node` and `args: ["/absolute/path/to/server.mjs"]`.

Call `road_directory` to get the current services and allowed signals. Then call `road_stop` with a service, supported signal, fresh random UUID v4 as `id`, `permitted: true` and `traffic: "sandbox"` for all tests. Use `"request"` only for owner-permitted real activity. Keep your ID for a retry. The client checks the response against the station key obtained independently over HTTPS and returns the signed bytes plus that public key for later offline replay. Pin the key in a trusted local store, not from an untrusted forwarded envelope. Key changes and verification failures must not release a held action.

## A first trip

With a pending charge, send `service: "lead-car", signal: "pending"`. Follow its `next_service` to `medical` with `pending`. This stops retries. To recover, invoke `tow` with `pending`; the station recommends a read-only reconciliation of the original. Never repeat a purchase to discover whether it settled.

`roadside.mjs` exports `guard` and `tow` for an owner-controlled runtime. The owner supplies its own trusted Ed25519 public key and read-only callbacks; no callbacks, funds or private evidence are sent to Hive. The owner signs the exact JSON grant bytes containing job, action, target, expiry in Unix milliseconds and the SHA-256 fingerprint of the exact UTF-8 parameter string. Guard verifies that binding before invoking the configured read-only callback. Configure trusted callbacks that actually enforce the stated destination and read-only effect. These functions cover only calls routed through them and do not police other runtimes. A provider's returned status is a report, not independent financial settlement proof.

For opted-in local activity, report `service: "activity"` with the corresponding directory signal. That event is a client report, not remotely witnessed execution. Nothing is reported automatically by the local guard or tow. The public service records station ID, time, service, decision, key ID and traffic class in private platform logs. It does not need prompts, email addresses, wallet IDs or job payloads. Station receipts are not sale, payment, identity or execution receipts. Retries deduplicate in-process for up to 15 minutes. Save your own durable copy of the verified receipt and pinned key.

To turn on reporting for a participating tool, use `runWithReceipt("tow", input, {permitted:true, traffic:"request"})` or use `"route-guard"` instead. For tests use `"sandbox"`. If reporting is unavailable, the adapter returns the local outcome and a pending event. Retry only that event with its original ID. Never repeat the underlying operation to generate a receipt.

TDQS

B3.3/5.0

Scored across 2 tools

Disambiguation4/5

The two tools have clearly distinct roles: road_directory is a read-only lookup, while road_stop is a write/send action. An agent can easily tell them apart, though the domain vocabulary (service, signal, receipt key) is somewhat opaque.

Naming Consistency5/5

Both names follow a consistent road_<noun> pattern with no mixing of styles or verb forms. The convention is predictable and readable.

Tool Count3/5

Two tools is thin for a service that appears to involve directory lookup, request submission, and state persistence. While minimalism can be intentional, the surface feels under-provisioned.

Completeness3/5

The set covers reading a directory and submitting a stop, but lacks operations to retrieve saved decisions, inspect receipts, or cancel/update a stop. These gaps could leave agents unable to complete follow-up workflows.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues