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
appliedorfailed. 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 forDERIVER_RECEIPT_RETENTION_SECONDS(default 6 days, so with the 12-hour cleanup pass a receipt is deleted within 7 days of its write). Migration920fda077c7eadds thewrite_receiptsandwrite_receipt_entriestables and the nullablequeue.receipt_idcolumn (#1651) - The conclusion graph, experimental, returns a workspace's conclusions and the links between them, for drawing.
GET /workspaces/{workspace_id}/graph/overviewlists each observer and observed pair with its conclusion count.GET /workspaces/{workspace_id}/graph, optionally narrowed byobserverandobserved, returns the graph's structure as an Apache Arrow IPC stream (application/vnd.apache.arrow.stream) with anETag; a request whoseIf-None-Matchmatches gets a 304.POST /workspaces/{workspace_id}/graph/textreturns the text, session and cited message IDs (source_message_ids,nullfor 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 thanGRAPH_MAX_CONCLUSIONSconclusions (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 onarro3-coreandarro3-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_cardtool 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 wasupdate_peer_cardwith 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_cardremains for rewriting the whole card, and a card rebuild still uses it (#1618) - Card rebuilds read session summaries: the
get_session_summariestool lists the summaries of the sessions the peer took part in, newest first, withoffsetto 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_kindsays how to readtotal:exact,estimate(a full count taken in the background),at_least(thePAGINATION_COUNT_LIMITcap of 100,001, or one more than the page's last row while a next page exists) orat_most, so a display can show950,040,~950,000or100,000+instead of an exact-looking100001.next_cursoris the cursor-mode position after the page's last row: send it ascursorto 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_LIMITreports a full count instead of the limit plus one, so itstotalkeeps growing past 100,000. The full count runs in the background after a response, at most once perCACHE_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/refreshqueues 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/suggestionslists the open suggestions strongest first, with each account and the person it maps to now.POST .../ingest/suggestions/{suggestion_id}/acceptlinks the accounts the wayPOST .../ingest/linkdoes, and.../dismisskeeps them apart for good: a refresh adds and updates open suggestions but never reopens a dismissed one.GET .../ingest/statuscounts the open ones and says when a refresh is running. A person on an ingest record can carryhandle,aliases(up to 10) andemail, 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. Migrationb8c2e4f1a9d3adds theingest_suggestionstable (#1626) GET /v3/experimentallists 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 slackimports a Slack workspace's channels through the CLI, andhoncho-slack exportwrites 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=falseturns 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 counterorganizer_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 turnsobserve_meoff for its person (refused when that person holds other accounts); accepting a noisy session turns its reasoning off.GET .../ingest/suggestionstakeskind; suggestions carryexcludedand, for a noisy session,session;GET .../ingest/statuscountsbotsandnoisy_sessions, andrulesandmodelnow count same-person suggestions only. Migration34f66b471abfletsingest_suggestions.kindhold 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,unlinkand accepting a same-person suggestion returnmoved_recordsandsessions, 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 thehighsame-person suggestions on its own (statusapplied); a workspace with{"organizer": {"apply": false}}only gets suggestions, and after the dry run the organizer only suggests. Accepting an applied suggestion confirms it, andPOST .../ingest/suggestions/{suggestion_id}/undotakes 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/decisionslists 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 pastSESSION_OBSERVERS_LIMITis refused. Migrationf56e3a1e49e8adds theingest_decisionstable and theappliedstatus (#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 laterrevised_atreplaces the stored one, and a record{"op": "delete", ...}removes it for good, leaving a tombstone; the results reportupdatedanddeleted. 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/synclists the sources connectors follow, andGET,PUTandDELETE .../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. Migrationc4d9e1a7b2f6addsworkspaces.ingest_derived_at(backfilled for auto workspaces that already derived), letsingest_recordskeep tombstones, and adds theingest_sync_statestable (#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
totalwithout 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
b7c1d9e4a2f6drops thetenants.tiercolumn, 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_ENABLEDunder[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}/ingestroute 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 theDERIVER_TENANT_FAIRNESS_METRICSsetting 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
totalthat 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 whilepage < pagesstops there; before, it fetched empty pages up to the stalepages(#1619) - Listing sessions with
in_no_scopeno 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)