Hive Intelligence

Documentation

/ Guides

Issue journal

0.9.0 docs, commit 05e2eb4PyPI packages at 0.9.0docs/guides/issue-journal.mdpublic repository on GitHub

Deprecated. This guide is for existing consumers. See the deprecation and replacement workflow.

hive-zendesk distils closed support tickets into client-scoped issue cards, so that a problem seen once at a client is recognised the next time rather than rediscovered.

The question it makes answerable is "has this happened at this client before, and what fixed it".

Prerequisites

An HTTP endpoint that serves closed tickets, addressed by CONNECTOR_BASE. This has no default: the address belongs to a deployment, and a plausible-looking default fails late and against the wrong host.

A model gateway, for distillation.

A customers.yaml mapping your client keys to their ticket-system organisation ids. That file is corpus-side, because it names your clients.

Modes

uv run hivezendesk <mode> --client <key> --customers <path> \
  --clients-dir <path> --concepts-dir <path> --state-dir <path>
Mode Does
backfill first run, over all available history
incremental since the last recorded run
rebuild reshape cards already staged on R2, without re-fetching or re-distilling each ticket
relink recompute links from issue cards to concept cards, without re-distilling

All four call a model, so all four cost something. rebuild and relink exist because the two model stages fail independently: a bad linking pass is repairable without redoing the distillation, which is the expensive half. Neither is a free operation.

rebuild is not an offline mode either: it still pulls each org's ticket list once, so CONNECTOR_BASE is required for it too and is refused at startup if unset. What it avoids is the per-ticket fetch and re-distilling each thread.

Dry-run first, every time

uv run hivezendesk backfill --client <key> ... --dry-run

--dry-run writes no cards and calls no model, in any mode. A real backfill is one model call per entry, so sizing it first is the difference between a known cost and a surprise.

relink --dry-run runs the lexical shortlist, which is local and free, and stops there. The shortlisted= count it reports is exactly the number of rerank calls the real run would buy, so it prices a relink; it cannot tell you which links that run would choose, because it never asks the model. It issues no request either, so it needs no working gateway credentials. See run.py, the modes.

Two failure modes worth knowing

Closed tickets only, with lag. The tool reads closed tickets. If your ticket system closes tickets on a delay, recent problems are invisible until they close, and that lag can be weeks. An empty result does not mean nothing happened.

For source truncation and how to handle the connector's refusal, see the reference's known limits.

What comes out

Cards under clients/<client>/issues/, typed issue, linked to the concept cards they relate to. Their retrieval rules are in the resolver reference, not an identity-based prohibition on reading another client's history; see the serving trust boundary.

The link back to concepts is what makes them useful: an agent resolving a concept card can see that this exact area has caused a specific problem at this specific client.

Scrubbing

Ticket text contains customer data. hive-zendesk scrubs identifiers before anything reaches the model or a card.

The scrub patterns are tuned to the identifier formats that appear in a given corpus, such as national identity numbers of a particular country's format. Check that the patterns match your data before a first real run. A scrubber tuned for one country's identifier format offers no protection against another's, and it will not tell you it is not matching.

Scheduling

There is none here. Running this monthly, or nightly, or never, is a deployment decision, and Hive ships the tool rather than the cron.