Skip to content

Friendly model names everywhere; Slack DM replies when Rovara can't handle a message - #1900

Merged
abhishek255 merged 4 commits into
mainlinefrom
feat/model-names-dm-reply
Dec 5, 2026
Merged

abhishek255 merged 4 commits into
mainlinefrom
feat/model-names-dm-reply

Conversation

@abhishek255

@abhishek255 abhishek255 commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Friendly model names (Code API 1.31)

  • Every offered model gets a displayName beside its id; the id stays the key. The catalog stores the provider's own name when discovery has one (Bedrock model name, an inference profile's name, Anthropic display name), otherwise a deterministic prettifier ("Qwen3 Coder 480B", "Ergo 1.0") with a small override map.
  • Returned to the website on the step models page (offered list, state models, each step's effective model) and on the company engine and learning model reads (displayNames).
  • The gateway sends displayName only where its catalog is on; Code names every offered model itself when a gateway sends none, so older strict readers are not broken.
  • API version 1.31 (1.30 belongs to the connection permission gaps change). The version digest entry equals 1.29's because the changed routes carry no schema in the digest.

Slack DM failure reply

  • When Rovara cannot handle a DM (the broker did not take it, or the person could not be checked), it replies once in the DM: "Sorry, I couldn't handle that message. Please try again in a minute."
  • Final failures only: a pending claim still gets a 500 so Slack retries, and nothing is said then. The once-per-event marker lives on the event's own claim partition (sort key REPLY), the only key family the ingress role may write. No message text is logged.

Tests and gates

  • New tests for both parts, including no duplicate reply on retry and no reply while pending.
  • tsc -b, typecheck:all (heap 10240), eslint on changed files, complexity ratchet (no baseline raised), and a 1157-file run of every importer plus tests/contract, tests/journeys and the inventory tests. The 5 files that failed in that run were rerun and pass: the version-pinned e2e fixtures need Node v22.23.2, and two were fixed in this branch.

Not in this PR: the Slack account-link notice (a separate redesign replaces it).

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

m2 and others added 4 commits December 5, 2026 13:31
…andle a message

Model names (Code API 1.30)
- Every offered model has a displayName beside its id (the id stays the key). The catalog stores the
  provider's own name when discovery has one (Bedrock modelName, an inference profile's name, Anthropic
  display_name), else a deterministic prettifier ("Qwen3 Coder 480B", "Ergo 1.0"), with a small override map.
- The gateway sends displayName on the offered list only where its catalog is on; Code names every offered
  model itself when a gateway sends none. Returned to the website on the step models page (offered, state
  models, each step's effective model) and the company engine and learning model reads (displayNames).

Slack DMs
- A DM Rovara could not handle (the broker did not take it, or the person could not be checked) is answered once
  in the DM with plain words, never while the claim is pending; the once-only marker sits on the event's own
  claim partition (sort key REPLY), the only key family the ingress role may write. No message text in logs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ps change's)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rson check fails; explicit Ergo name override

The person check failing now takes the event's claim first (a claim in flight is a 500 for Slack to retry, a handled one is ignored, neither says sorry), says the failure once, and gives the claim back. The IAM test records sort keys and covers the REPLY marker on that path. Ergo has an explicit override in both copies of the name map.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
It ran out of the 4 GB heap on CI twice on this branch (the type graph
behind the workflow-* tests grew), the same fix tests-unit-c and
tests-unit-m already have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@abhishek255
abhishek255 added this pull request to the merge queue Dec 5, 2026
Merged via the queue into mainline with commit cb8c553 Dec 5, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants