github plastic-labs/honcho v3.8.0

2 hours ago

Added

  • Each message write records a receipt of the background work it queued: one entry per representation it updates (each observer and observed peer) and per summary tier, each ending applied or failed. A failure that is retried keeps the entry pending, and a representation saved for some observers but not others fails only theirs. A summary that fell back and saved nothing fails its tier, though its queue item completes. Receipts aren't returned by the API yet. They are kept for DERIVER_RECEIPT_RETENTION_SECONDS (default 6 days, so with the 12-hour cleanup pass a receipt is deleted within 7 days of its write). Migration 920fda077c7e adds the write_receipts and write_receipt_entries tables and the nullable queue.receipt_id column (#1651)
  • The conclusion graph, experimental, returns a workspace's conclusions and the links between them, for drawing. GET /workspaces/{workspace_id}/graph/overview lists each observer and observed pair with its conclusion count. GET /workspaces/{workspace_id}/graph, optionally narrowed by observer and observed, returns the graph's structure as an Apache Arrow IPC stream (application/vnd.apache.arrow.stream) with an ETag; a request whose If-None-Match matches gets a 304. POST /workspaces/{workspace_id}/graph/text returns the text, session and cited message IDs (source_message_ids, null for a conclusion that cites no message) of up to 20,000 conclusion IDs. Only admin and workspace keys reach them, and a missing workspace or peer is a 404. A graph with more than GRAPH_MAX_CONCLUSIONS conclusions (default 150,000) is a 422 before any rows load, and the caller narrows it by observer or observed. Each process builds one graph at a time, and a build delays other requests on that process while it runs, about 280 ms at 150,000 conclusions in a local measurement. The server now depends on arro3-core and arro3-io. The graph routes may change or stop working without notice (#1625, #1663)
  • Dreams edit the peer card one entry at a time. A new edit_peer_card tool adds, removes or replaces entries without resending the card, and the deduction specialist is asked, every dream, to check the conclusions it reviewed against the card. Before, the only write was update_peer_card with the complete list, and dreams almost never rewrote a long card: a card at the 40-entry limit stayed unchanged. An edit that would take the card past 40 entries is refused, so the dreamer makes room by removing the entries that matter least. update_peer_card remains for rewriting the whole card, and a card rebuild still uses it (#1618)
  • Card rebuilds read session summaries: the get_session_summaries tool lists the summaries of the sessions the peer took part in, newest first, with offset to page back. A rebuild surveys summaries, recent conclusions and a search per entry kind before writing the card, with up to 20 tool rounds instead of 6 (#1618)
  • Offset list pages carry two new fields. total_kind says how to read total: exact, estimate (a full count taken in the background), at_least (the PAGINATION_COUNT_LIMIT cap of 100,001, or one more than the page's last row while a next page exists) or at_most, so a display can show 950,040, ~950,000 or 100,000+ instead of an exact-looking 100001. next_cursor is the cursor-mode position after the page's last row: send it as cursor to read the rest of the list without offsets or counts. A walk that follows it does not skip or repeat rows while the list changes, which an offset walk does without the cache (2.6% of rows skipped in a 47,500-row walk with concurrent writes). Both fields are additive; installed SDKs ignore them (#1619)
  • With the cache enabled, a list longer than PAGINATION_COUNT_LIMIT reports a full count instead of the limit plus one, so its total keeps growing past 100,000. The full count runs in the background after a response, at most once per CACHE_PAGINATION_ESTIMATE_REFRESH_SECONDS (default 600) per distinct list query, under a cache lock so one process counts at a time, and is abandoned after 30 seconds. While it is fresh, requests report it without running the capped count: page 1 of a 950,000-conclusion workspace went from a ~30 ms count to 7.9 ms in total in a local measurement (#1619)
  • Ingest suggests which imported accounts are one person, experimental. POST /workspaces/{workspace_id}/ingest/suggestions/refresh queues a deriver task that scores pairs of imported accounts by their names, their emails, a person saying they are another account ("on GitHub as alexdev") and links to their own work in another source, and stores what it suggests. GET .../ingest/suggestions lists the open suggestions strongest first, with each account and the person it maps to now. POST .../ingest/suggestions/{suggestion_id}/accept links the accounts the way POST .../ingest/link does, and .../dismiss keeps them apart for good: a refresh adds and updates open suggestions but never reopens a dismissed one. GET .../ingest/status counts the open ones and says when a refresh is running. A person on an ingest record can carry handle, aliases (up to 10) and email, used only to make suggestions; the email is stored as a digest scoped to the tenant and workspace, never as text. Workspace and admin keys only. Migration b8c2e4f1a9d3 adds the ingest_suggestions table (#1626)
  • GET /v3/experimental lists the server's experimental features, each with its description and whether the server has it on, so a client can tell a feature that is off (405) from one the server doesn't have. Admin, workspace, peer and session keys can read it; a named-scope key cannot (#1662)
  • Slack connector (experimental), connectors/slack: honcho ingest from slack imports a Slack workspace's channels through the CLI, and honcho-slack export writes them to JSONL files. It reads the public channels the app is in, or the channels named; a private channel only when named. A thread's replies stay in their channel, merged in by time and linked to the thread's parent (metadata.reply_to, metadata.thread), and each account carries its profile email, so a Slack account links to the same person on other sources. It doesn't follow a workspace live yet (#1673)
  • Ingest suggestions (experimental) have model work past the identity rules: one model call over the workspace's roster (each account's tool, names and handle, an email marker, how much it wrote and a few messages that link elsewhere) groups the accounts that are one person, with ORGANIZER_MODEL_CONFIG (Claude Sonnet 5.5). ORGANIZER_MODEL_ENABLED=false turns it off for the server, and {"organizer": {"model_enabled": false}} for a workspace, leaving the rules alone. The model's pairs go through the rules' conflict check, and two accounts of one source are never linked by a model alone. A model suggestion a later call no longer makes is withdrawn. With no API key and no base URL for the model's transport, the rules run alone. On one team's real data (four sources, 98 known pairs), it linked 74 to 94 of them over five runs, with no wrong link, where the rules alone link 28, for about 8,600 model tokens per million ingested. Every model call's tokens count toward the Prometheus counter organizer_tokens_processed (by tenant, decision and token type), so organizer spend is exact per tenant (#1630, #1670)
  • Ingest suggestions (experimental) also name accounts that look like bots their source didn't flag (kind: "bot") and sessions whose records come mostly from bots (kind: "noisy_session"), with the evidence: a name that says it's automated, templated messages, posting on a fixed schedule, and never replying. Accepting a bot turns observe_me off for its person (refused when that person holds other accounts); accepting a noisy session turns its reasoning off. GET .../ingest/suggestions takes kind; suggestions carry excluded and, for a noisy session, session; GET .../ingest/status counts bots and noisy_sessions, and rules and model now count same-person suggestions only. Migration 34f66b471abf lets ingest_suggestions.kind hold the two new kinds (#1630)
  • Ingest (experimental): during the dry run a link moves the records already stored for review, with their sessions, so linking needs no reset; POST .../ingest/link, unlink and accepting a same-person suggestion return moved_records and sessions, and the dry-run link is refused when a person being merged has messages that aren't stored records. After each suggestion refresh in the dry run, the organizer applies the high same-person suggestions on its own (status applied); a workspace with {"organizer": {"apply": false}} only gets suggestions, and after the dry run the organizer only suggests. Accepting an applied suggestion confirms it, and POST .../ingest/suggestions/{suggestion_id}/undo takes back an applied or accepted link made in the dry run, putting every account the link moved back on the person it was on before, with its records, and dismisses the suggestion. GET .../ingest/decisions lists the workspace's decision log, newest first, optionally for one person (peer_id): each link the organizer applied, each suggestion accepted, dismissed or undone, and each direct link and unlink, with the accounts, evidence and confidence as they were and who decided. A move in the dry run takes the membership lock of each session it touches, brings back a kept person who had left a session the merged one was still in, and an unlink that would take a session past SESSION_OBSERVERS_LIMIT is refused. Migration f56e3a1e49e8 adds the ingest_decisions table and the applied status (#1630)
  • Ingest (experimental) follows a source live. During the dry run (until the workspace first derives, recorded as workspaces.ingest_derived_at), a record sent again with a later revised_at replaces the stored one, and a record {"op": "delete", ...} removes it for good, leaving a tombstone; the results report updated and deleted. Both are refused after the dry run. derive: "auto" stores records for review during the dry run and derives them as they arrive after it. GET .../ingest/sync lists the sources connectors follow, and GET, PUT and DELETE .../ingest/sync/{source}/{source_instance} read, save and forget one connector's position and health, so a second runner on the same source is refused. Migration c4d9e1a7b2f6 adds workspaces.ingest_derived_at (backfilled for auto workspaces that already derived), lets ingest_records keep tombstones, and adds the ingest_sync_states table (#1630)

Changed

  • A page that ends its list (a non-empty page with no next page, or an empty page 1) reports the rows up to its end as total without running a count, so page 1 of a list that fits on one page runs one query instead of two (#1619)
  • Peer card entries may cover durable work facts: ongoing roles and responsibilities, projects, things the peer owns or maintains, and the tools and environments it works in. The rule was that anything likely to change within six months stayed off the card, which kept rebuilt cards to a few lines. Entries carry no pronouns for the peer, and the dreamer never infers them (#1618)
  • Migration b7c1d9e4a2f6 drops the tenants.tier column, which nothing has read since 3.7.0 stopped returning it. Rolling back to 3.7.0 stays safe (#1657)
  • Auto workspaces and the ingest API are off unless the server turns them on with EXPERIMENTAL_AUTO_WORKSPACES_ENABLED (AUTO_WORKSPACES_ENABLED under [experimental] in config.toml). Before, any key that could create a workspace could make one auto and use ingest. With the setting off, creating a new auto workspace and every /workspaces/{workspace_id}/ingest route answer 405 with the setting's name. An existing auto workspace still answers as a workspace, and its ingest routes work again once the setting is on. A deployment that uses ingest on 3.7.0 sets it when it upgrades. The API logs the experimental features that are on at startup (#1662)
  • The deriver's per-tenant fairness metrics (deriver_claims_total, deriver_claim_wait_seconds, deriver_inflight_units) and the DERIVER_TENANT_FAIRNESS_METRICS setting that turned them on are removed. They were for load testing and off by default. A deployment that still sets the variable is unaffected (#1563)

Fixed

  • A total that is too high (a cached count taken before rows were deleted, or a full count taken in the background) no longer walks SDK clients past the end of a list. The page that ends the list reports the rows up to its end, and an empty page after the first reports at most the rows before it, so a client paging while page < pages stops there; before, it fetched empty pages up to the stale pages (#1619)
  • Listing sessions with in_no_scope no longer slows down with the square of the workspace's size. Postgres could plan the filter to read every session membership in the workspace once per session, for both the page and its total, so one request on a large workspace could run for a very long time. The filter now matches each session to the workspace's scope memberships by equality, which Postgres runs as a single hash anti join (#1620)
  • Removing many sessions from a scope at once no longer times out. Each removal ran as its own deriver task, and the tasks updated the same rows in parallel, so they waited on each other's locks until statements timed out, and adding sessions back to the scope timed out behind them. All removals from one scope now run in order on one worker (#1658)

Don't miss a new honcho release

NewReleases is sending notifications on new releases.