Skip to content

v0.9.73: mcp oauth client metadata, kubernetes sandbox provider, list_my_activity ga - #10714

Merged
waleedlatif1 merged 20 commits into
mainfrom
staging
Dec 3, 2026
Merged

waleedlatif1 merged 20 commits into
mainfrom
staging

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

waleedlatif1 and others added 10 commits December 2, 2026 17:20
…10691)

The runtime treats a stored '' as a missing required value, but check counted any written field as filled, so source get could print x: '' for a required dropdown and check passed a workflow that then failed to run.
* feat(search): count Search use per integration

Adds organization_search_integration_daily, a content-free daily count per
organization, surface, integration and member of how each search reached an
integration (ok, partial, reconnect, rate limited, unavailable, timeout) and
of results opened from it. Searches count on the same surfaces member
activity counts, set by the adapter that knows the surface. Opens are
recorded through a member-only organization endpoint from the Search page
and organization chats. Rows cascade with the member or organization and are
swept with adoption history after 400 days.

* fix(search): drop non-null assertions and unused exports in Search opens

- Pass organizationId in the open mutation's variables, so the caller's
  organization check types it instead of a non-null assertion
- Keep the open contract's body and surface schemas file-local
- Tighten comments that overstated what the counts and migration promise
- Assert the outsider refusal by its error class; drop a test that only
  exercised input validation and a client test that asserted on mocks

* fix(search): count opens from recently viewed sources on the Search page

* fix(search): keep integration counts on listings, tool results and recovered chats

- Key a Search page listing's repeat rule by the filters the caller sent, not the end date the
  listing implies, so a refetch within the minute counts nothing.
- Open chat tool-activity results through the shared source navigation, so they count like other
  opened sources.
- Give a recovered interactive chat turn the surface its chat post set, so its searches still
  count; unattended turns still count nothing.

* fix(search): give the search activity result link a props interface

* refactor(search): reuse the account status and open surface types for integration counts

---------

Co-authored-by: Waleed Latif <walif6@gmail.com>
Adds a Website section to the knowledge base connectors guide: setup
fields, page discovery by sitemap or link crawl, what gets indexed,
robots.txt and Crawl-delay handling, and how removed pages reconcile.
Also lists Website in the credentials table, source examples and the
available-connectors catalog.
* feat(chat): jump to latest button in the chat transcript

- Show a round "Jump to latest" chip above the composer while the latest message is out of view; clicking it lands on the last row and resumes auto-follow.
- useAutoScroll exposes follow() and isAtLatest(); the post-stream settle keeps its gesture guard until a still-running glide parks.
- The button waits for each chat's landing, so opening or switching chats never flashes it.
- A keyboard jump moves focus to the composer (UserInputHandle gains focus()).
- The border-shadow chip variant gets a focus-visible surface matching its hover.

* fix(chat): show the jump after a wheel at the top, and cancel the settle on unmount

- A user gesture that ends a chat's landing now re-reads the position, so an upward wheel at the very top, which fires no scroll event, still offers the jump.
- The unmount cleanup runs after the streaming effect's teardown, so a transcript that unmounts mid-stream leaves no glide or recheck timer behind.

* refactor(chat): fold jump focus into onJump, share distance-from-bottom, reuse chip ring

---------

Co-authored-by: Waleed Latif <walif6@gmail.com>
* feat(mcp): register with OAuth client ID metadata documents

Sim now serves an OAuth Client ID Metadata Document at
/api/mcp/oauth/client-metadata and offers its URL as the client_id to MCP
authorization servers that advertise client_id_metadata_document_supported,
ahead of dynamic client registration, as the MCP authorization spec
recommends. A pre-registered client ID and stored registrations still win.

On by default for Sim Cloud, opt-in for self-hosted via
MCP_OAUTH_CLIENT_METADATA_DOCUMENT_ENABLED. Canva is excluded: it rejects
redirect URIs it has not allowlisted.

* chore(helm): bump chart version for the MCP OAuth metadata document setting

* refactor(mcp): derive OAuth client metadata paths from contracts and trim tests

- Build the redirect and metadata URLs from the route contracts' paths
- Shared HubSpot/Zoom client fingerprints use getMcpOauthRedirectUrl
- Prove the HTTPS guard through the SDK flow on both providers
- Drop duplicate tests and trim repeated comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Waleed Latif <walif6@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(ci): bound and retry the e2e browser system package install

* fix(ci): bound the dpkg recovery between browser package attempts
* feat(search): make list_my_activity generally available

Remove the my-activity feature flag. list_my_activity is offered to every person in the Search MCP, the organization Assistant, organization chats and the Organization Search block; its use case still authorizes each call (a person principal and Organization Search availability). The Mothership entitlement stays granted until the worker stops gating the tool on it.

* test(search): expect list_my_activity and its entitlement by default
…ogin (#10694)

* feat(people): match manager references by employee number, email or login

Directories fed by an HR system often fill Okta's managerId with an
employee number, email or username instead of the manager's Okta ID.
Publish dropped those references, so a fully synced directory could
show no reporting lines at all.

Publish now matches each manager reference in order: account ID, then
employee number (Okta employeeNumber, Entra employeeId, SCIM enterprise
employeeNumber), then email, then login, case-insensitively for the
last two. The first key with a match decides. A reference several
accounts share at that key is left unlinked with a manager_ambiguous
warning; one that names nobody, such as a departed manager, is dropped
silently as before. References that already equal an account ID skip
the matching entirely, so ID-linked directories do no extra work.

Each publish logs how many references each key matched.

Schema: nullable people_directory_stage.employee_number and
people_directory_issue.reference; no backfill.

* test(people): cover email-before-login precedence and name the SCIM employee-number case

* improvement(people): tighten manager reference matching

- Match each step against the stage table directly instead of building every key
  for the run, and scope the update to the run (about half the time for an
  ID-linked directory with a few departed managers)
- Decide "already an account ID" once per reference so the log counts are direct
- Fold the email step with the shared foldedEmail rule
- Employee numbers match in any case, as SCIM and LDAP define them
- Someone named as their own manager heads the chart without a warning, as
  Okta models a CEO; real loops still warn
- Leave out a SCIM manager value longer than any key instead of cutting it to
  257 characters, which could falsely match a login or employee number
- Drop Entra employeeId: Entra names every manager by object ID, so it can
  never match
- Docs state trimming, case rules and the self-manager rule; warning text has
  no empty reference gap
- Tests: case folding, employee number before email, untrimmed SCIM values,
  self-reference by employee number

* feat(people): finish manager matching across sync and import

- One-time Okta, Entra and SCIM imports find managers by the same rule as
  Directory sync (shared managerFinder), and leave a self-named head without one
- Okta reads people who still work there: active, awaiting activation, in
  recovery, password expired or locked out; staged, suspended and deprovisioned
  stay out
- The sync status counts manager references that match nobody
  ("3 managers not found"), so a manager field in an unreadable format shows up
- SCIM identifiers are trimmed of tabs and line breaks where they enter, so every
  source stages references trimmed and the publish step drops its own trimming
  and the redundant account-ID step
- Migration 0488 also adds people_directory_sync.unmatched_managers

* fix(people): count missing managers once and keep migration 0488 replay-safe

- managers not found counts distinct references, not every report of a
  departed manager
- An oversized SCIM manager value is cut one character past the longest key,
  so it still counts as not found without ever matching someone
- The email step folds both sides, so non-ASCII emails match whatever the
  database collation
- The SCIM import falls back for an empty manager email like the provider import
- Migration 0488 adds its columns IF NOT EXISTS, with the replay header its
  neighbours carry

* fix(people): judge SCIM import manager matches against the whole connection

The one-time SCIM import built its manager finder from organization members
only, while a directory sync matches against every active account on the
connection. It now reads the active accounts any member's manager reference
could name, so a match, an ambiguous one and a non-member manager resolve the
same way in both.

* fix(people): trim SCIM usernames of tabs and line breaks like manager references

A SCIM userName is now trimmed of the same whitespace as a manager reference
when staged and when the one-time import looks for candidates, so a reference
naming a username sent with a trailing tab links in both.

---------

Co-authored-by: Waleed Latif <walif6@gmail.com>
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner December 3, 2026 15:00
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 3, 2026 6:39pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 262 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
This PR changes infrastructure or deployment configuration. Ultrareviews find 2.4x more serious bugs than standard reviews. Comment @cubic-dev-ai ultrareview to run one.

Turn on auto-fix | Re-trigger cubic

Comment thread helm/sim/values.yaml Resolved
Comment thread apps/sandbox-agent/src/lifetime.ts Resolved
Comment thread docker/sandbox-pi.Dockerfile Resolved
Comment thread helm/sim/templates/_helpers.tpl Resolved
Comment thread apps/sandbox-agent/src/lifetime.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

…#10715)

A SCIM username past the 2,048-character key limit was cut to its prefix for a directory sync but kept whole for a one-time import, so the two could disagree on a manager reference. One shared login expression now drops it, as Okta and SCIM employee numbers already do, so a shortened username never matches anyone's reference.
…ins, v2 deploy examples (#10717)

- Sort content posts by date with a slug tie-breaker so index pages list the same posts on every request; many posts share a date and the read order differs between servers, so some posts dropped off the paginated index.
- Self-hosting upgrade and Kubernetes docs pinned v0.9.17, below the v0.9.33 floor the same page says never to roll back past; pin v0.9.72.
- Deployment docs showed v1 curl examples while linking the v2 reference; use the v2 deploy, undeploy and rollback endpoints.
…ut reaches apt (#10718)

Playwright starts apt through its own sudo when it runs as a normal user, so
apt runs as root where the attempt's timeout cannot signal it. A stalled
apt-get update outlived the timed-out attempt and held the apt lists lock,
and every retry then failed at once on that lock. Running timeout under sudo
makes playwright start apt directly, in the timeout's own process group, and
does the same for the dpkg recovery.
…tibility baseline (#10719)

- #10717 changed the self-hosting release pins and the deployment curl examples on purpose; record their new hashes so the docs source check passes on staging.
- Tell deployment pollers to stop on failed or superseded attempts, not only wait for active.
#10716)

* fix(sandbox): tighten path, lifetime, seccomp, and RuntimeClass checks

* chore(helm): bump chart to 1.17.1

* fix(sandbox): validate a set RuntimeClass even when unisolated; fix docs release example
…custom tools in source (#10722)

Copilot authoring refused the labels the tool picker derives from a binding (a child workflow's Workflow/workflow_executor, an MCP tool's name and id), which childWorkflow().asTool() and mcp().tool() write, and a saved custom tool's empty params, so every such tool Mothership added through source failed at apply although check passed. Authoring now accepts a label only when the binding's own definition derives it, and materialize writes a saved custom tool as its id alone, as the picker does.

check also hints the fix for TS2448 (a block named above its declaration), the type error Mothership hit most while editing source.
…r questions, fix stale facts (#10720)

* improvement(library): drop Sim self-rankings, lead roundups with buyer questions, fix stale facts

- Remove self-assigned scores, rank columns and "best overall" claims for Sim across 19 posts; answer "which is best" by team type and disclose that Sim publishes each comparison. Correct a false FAQ claiming another guide ranked Sim first.
- Rewrite the leads of the five highest-traffic roundups to answer the buyer's exact question, order by team type, add LangGraph/CrewAI and Lindy where engines recommend them, and replace a vague governance cell with plan-accurate SSO, SCIM, permission group and audit log facts.
- Name Sim and its concrete blocks in the direct answers of the how-to posts engines already cite, scope the triage page's native-tool guidance, and add Sim's MCP facts to the MCP builders guide.
- Fix stale facts: templates are prompt cards rather than a workflow gallery, model provider count is derived from PROVIDER_DEFINITIONS (31), new Agent blocks start on Auto on Sim Cloud, Free plan limits, HIPAA/GDPR wording, Dust prices, and redirected docs links.

* improvement(library): apply evidence and fact-check review findings

- Restore the top AI assistants section order (its search traffic is assistant queries) and keep the new buyer-question heading with a TL;DR link.
- List Sim, disclosed and unnumbered, on the template libraries page with its 2,000+ prompt-based agent templates, and note that Chat with Sim and Sim-hosted models (including Auto) need a paid plan wherever readers are sent to them.
- Remove the remaining numbered and "closest alternative" Sim framing, lead the triage and MCP answers with both options, align Zapier Agents and price-coverage wording, and say "model providers" for the provider count to match /models.
- Revert date bumps on pages with a link or number change only.
…ery browser (#10721)

* fix(desktop): make continue-in-browser and bring-back reliable for every browser

- Open Arc and Dia with a plain open instead of open -n, which started a second app instance; they open in their front profile, so the panel offers one choice per browser and bring-back reads every profile, taking the one that changed the site last
- Bring-back imports what the browser has for the site right away and reloads the page; it waits (up to 30s, cancellable, after the Keychain prompt) only when the browser has nothing for the site yet
- Keep the handoff pending after a bring-back so it can be brought back again; never write cookies once a cancel, newer continue, or sign-out retires it
- Panel: busy state survives remounts, results and errors show inline, Cancel stays available while checking, clearer copy, passkey hint picks a browser and skips the AWS access portal, notices are announced

* chore(desktop): keep cookieFailure module-private

* fix(desktop): report cookies the built-in browser refused as nothing imported
…acity errors for Kubernetes sandboxes (#10724)

* improvement(sandbox): warm capacity, startup timings, and clearer capacity errors for Kubernetes sandboxes

* fix(sandbox): count startup timings from the first create request

* fix(sandbox): time the running step from the sandbox container's own state
@waleedlatif1
waleedlatif1 merged commit b5d2636 into main Dec 3, 2026
194 checks passed

This branch was successfully deployed

1 active deployment
Preview — f0df3ccd Deployed Dec 3, 2026 by vercel[bot]
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.

3 participants