Skip to content

chore: sync dev with staging (2026-11-23) - #10340

Merged
waleedlatif1 merged 650 commits into
devfrom
chore/sync-dev-with-staging-2026-11-23
Nov 23, 2026
Merged

waleedlatif1 merged 650 commits into
devfrom
chore/sync-dev-with-staging-2026-11-23

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Brings dev up to current staging so the dev deploy runs current code (needed before retiring the old enterprise env twins in dev). The merge result is identical to staging.

waleedlatif1 and others added 30 commits November 14, 2026 14:50
…10054)

* fix(sso): admit callbacks under the provider id the plugin resolved

The SSO plugin looks a callback's provider up by the raw route segment, while
the admission hook percent-decoded it and dropped anything containing a
separator. A provider id like `acme%2Fidp` therefore minted a session the hook
could not name, so admission (domain check, JIT/seat policy, audit) never ran.

- Resolve the callback provider from the exact, undecoded value the plugin used
- Fail closed when an SSO callback mints a session without a resolvable provider
- Restrict provider ids to URL-path-safe characters on v1, v2, and the repository write

* fix(sso): reject dot-segment provider ids and regenerate v2 openapi

* docs(sso): document the shared provider id schema
#10062)

* fix(realtime): keep admin block locks out of write-role graph replaces

batch-add-blocks and replace-state (realtime) and every HTTP state-replace door wrote workflow_blocks.locked from the payload, so a write member could clear an admin-only lock and then edit or delete the block. A shared helper now keeps protected blocks, their incoming edges and loop config as stored during a full replace and writes every other block unlocked; batch-add skips protected blocks and blocks nested under a locked ancestor and never writes the lock flag.

* fix(realtime): guard locked loop config and re-sync clients when locks win

batch-add-blocks loops/parallels and subflow updates could rewrite a locked container's config. When persistence keeps lock-protected state over a payload, the room is told to reload instead of receiving the rejected payload.

* fix(realtime): cascade orphaned locked children and keep preserved edge ids

A replace that removes an unlocked container now removes its locked children too, matching a direct delete, instead of saving a dangling parentId. Preserved protected edges win by id, so a retargeted edge cannot duplicate one and abort the save. Skipped subflow updates re-sync the room like the other lock-reconciled writes.

* fix(realtime): refuse whole pasted subtrees under a locked ancestor

batch-add-blocks checks each added block against the graph as it will land, so a rejected container's new children and loop/parallel config are refused with it, and an edge refused for targeting a locked block re-syncs the room.
…10067)

path.relative returns backslash-separated paths on Windows, so navigation keys and page URLs never matched the forward-slash entries in meta.json and content:generate failed. Normalize the relative path to forward slashes once; no-op on macOS and Linux.

Fixes #10066
…ne (#10069)

* fix(providers): mark retired Nebius models and move the default off one

Nebius Token Factory removed eight serverless models on November 9, 2026,
including nebius/Qwen/Qwen3.5-397B-A17B, the provider default
(https://docs.tokenfactory.nebius.com/november-2026-deprecation-notice).
None of them are in the public catalog any more
(https://tokenfactory.nebius.com/api/public/models_info), so requests to
them fail. Mark them deprecated so pickers hide them while pinned
workflows still validate, and default to nebius/Qwen/Qwen3.8-27B, the
replacement Nebius recommends for Qwen3.5-397B-A17B.

NVIDIA-Nemotron-3-Nano-30B-A3B and nemotron-3-super-120b-a12b leave
Serverless next, on December 9, 2026
(https://docs.tokenfactory.nebius.com/model-deprecations-december-2026),
and the catalog already flags Qwen3-235B-A22B-Instruct-2507 as
deprecated. All three still answer, so they are marked legacy.

* test(nebius): point live vision and prompt-fallback cases at Qwen3.8-27B

MiniCPM-V-4_5 and Qwen3.5-397B-A17B left Nebius Serverless on 2026-11-09.
Qwen3.8-27B is image-capable and lacks native structured outputs, so it
covers both cases.

---------

Co-authored-by: Waleed Latif <walif6@gmail.com>
… ratchet raw reads (#10070)

* fix(blocks): read the mapper operation from the tool-call context and ratchet raw reads

A block's tools.config.params mapper gets the operation only as context.operation on a tool
call (Agent tool rows, Pi, Human v2), so branches on params.operation take the no-operation
path there. Add mapperOperation(params, context), move the mappers that already fell back to
context onto it, and add check:mapper-operation, a per-file ratchet over the remaining
raw reads (505 in 173 files) so they can only shrink.

* fix(blocks): return an empty string from mapperOperation when no operation is set

* fix(audits): track helper argument positions, destructured rests, helper results, and shadowed names in check:mapper-operation; drop _operation strips

* fix(audits): refuse to raise the mapper-operation baseline and alias only helper results that carry their input

* fix(audits): follow local copies when deciding whether a helper returns its params
…aws and infra blocks (#10075)

* fix(integrations): sweep2 m1 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(blocks): keep model format, recursive and extended statistics on tool calls

- tinybird append: fall back to the model's format before the csv default
- sftp mkdir: fall back to the model's recursive before the default
- cloudwatch get_metric_statistics: accept and normalize extendedStatistics from either source
- azure data explorer ingest: an explicitly disabled Run in background stays off
- cloudwatch/codepipeline tests: narrow the mapper so test-types passes
…com, typeform, webflow and wordpress (#10074)

* fix(integrations): sweep2 v4 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(integrations): address v4 review findings

- wordpress: reject unparseable term IDs instead of dropping them, map date explicitly, type search ids as number | string
- typeform: keep filename whitespace when building the file download URL
- brex: reject a limit buffer percentage outside Brex's 0-100 integer range
- calcom: type bookingUrl, hidden and ownerId on event type responses
- tests: call tool builders through ToolConfig instead of a type assertion
…d, telegram and whatsapp (#10073)

* fix(integrations): sweep2 v3 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(integrations): address v3 review findings

- twilio: trim account SID and From number once, mark sender/recipient outputs nullable, make From optional on the block when a Messaging Service is used
- discord: truncate fractional limits, reject more than one message cursor, mark nullable outputs
- telegram: only keep spoiler spans, drop NUL so input cannot alias a protected segment, mark optional animation fields, fall back to model poll options when the stored field is blank
- resend: clamp list limit to 1-100, sentence covers segment or audience, nullable broadcast outputs
- mailgun: clamp events limit to 300
- twilio voice: nextPageToken nullable
- fix test-types errors in twilio and whatsapp tests

* fix(integrations): clamp twilio voice page size, mark discord user avatar nullable

* fix(discord): match get_user output nullability to the User object

* chore: regenerate tool metadata and mapper-operation baseline after rebase
* fix(brex): leave a blank spend-limit buffer and transaction limit unset

Saved Create Spend Limit workflows can carry null or '' for the optional
buffer and transaction limit. The buffer reached Number(), which turned the
blank into limit_buffer_percentage: 0, and a null transaction limit sent
{ amount: null } although Brex's Money.amount is a required integer. Both
fields are optional and nullable on CreateSpendLimitRequest, so omit them
when blank.

* test(brex): narrow the spend-limit body builder result to a JSON object
A tool row keeps stored values across operation switches but renders only the
sub-blocks the new operation shows. A value written only by hidden sub-blocks
stayed out of sight, was withheld from the model's schema as user-provided,
and still reached the block mapper and the vendor.

omitConditionHiddenParams drops a stored value only when every sub-block that
writes it (canonical group included) is decidably hidden for the selected
operation. Agent and Pi tool rows (transformBlockTool), Human-in-the-loop v2
notification tools, and the editor's operation switch all apply it.
… incident.io, sentry and datadog (#10071)

* fix(integrations): sweep2 v1 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* fix(incidentio): keep the creator mapper module-private

* refactor: simplify and clean up the sweep changes

* fix(integrations): address v1 review findings and CI failures

- keep the Linear project-status tool's display name so its docs anchor survives
- pass Slack's comma-separated ID lists through the workflow-block mapper
- reject '..' segments in GitHub content paths; only exact dot-segment GitLab ids
- reject non-array commits in Sentry release create
- mark nullable outputs (Linear dueDate/status, GitHub latest commit v2)
- align descriptions with the vendor contracts (incident.io, Slack, GitHub, Linear)
- drop a dead credential fallback the canonical-param check flags; fix test types

* fix(integrations): keep latest-commit v2 docs, mark Linear project lifecycle timestamps nullable

Inline the v2 commit output so the docs generator still documents it, and shrink the unused-exports baseline now that COMMIT_DATA_OUTPUT_PROPERTIES is imported.

* chore: regenerate tool metadata and mapper baseline after rebase onto staging
…google, microsoft and atlassian blocks (#10076)

* fix(integrations): sweep2 m2 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(integrations): resolve referenced files in the legacy slides image source and keep empty trello descriptions on tool calls

* fix(trello): drop blank card descriptions again so a cleared saved field never erases one

* chore: re-ratchet the mapper-operation baseline onto staging

* chore: regenerate tool metadata and mapper baseline after merging staging
…internal and a–i blocks (#10077)

* fix(integrations): sweep2 m3 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(blocks): keep tool-row conflictTarget, parse affinity rank/winRate args, fix CI type and canonical-id checks

Table upsert keeps a tool row's conflictTarget when conflictColumn is unset; affinity parses model rank/winRate through the same numeric validation; instantly treats a whitespace interestValue as empty on tool calls; file reads the model folderPath via its canonical folderRef; dub's mapper context is optional; buffer test typing; shrink the test-types baseline for ashby.

* fix(blocks): fall back to model args for empty carousel media, blank share emails, and boolean enabled filters

* chore: shrink the mapper-operation baseline after rebasing onto staging

* fix(blocks): keep a numeric zero table limit and drop the model authType when disabling sharing

* fix(blocks): send one folder target on File append/edit tool calls

On a tool call the mapper result is spread over the merged row and model params, so a model
folderPaths survived beside the row's folderPath (or the model's own folderPath) and the file
contract refused the pair. Clear whichever folder arg the resolved target did not set.

* chore: regenerate tool metadata and mapper baseline after merging staging
…j–z blocks (#10078)

* fix(integrations): sweep2 m4 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(blocks): type the sweep2 m4 mapper tests and stripe JSON spreads for test-types

* fix(rocketlane): send only the saved time source when a tool call also names another

* chore: regenerate tool metadata and mapper baseline after merging staging
…sailpoint and snowflake (#10072)

* fix(integrations): sweep2 v2 — read the mapper operation from the tool-call context and validate integrations against vendor specs

* chore: regenerate tool metadata, docs and ratchet baselines

* refactor: simplify and clean up the sweep changes

* fix(integrations): address review on dynamics 365, okta, rippling, zoho desk and snowflake

- dynamics 365: blank canvas Outcome falls back to won
- okta: list_user_groups pages with after/limit and returns nextCursor/hasMore
- rippling: nextCursor output inlined (nullable) so docs list it; create record rejects blank data; cursor placeholder names the query cursor
- zoho desk: restore sharedDepartments maxItems 10 on update_ticket
- test types: narrow the okta url builder and snowflake mapper in new tests

* fix(okta): mark list_user_groups nullable group fields as nullable

* chore: regenerate tool metadata and mapper baseline after rebase

* fix(microsoft-dynamics-365): render owner type and id on agent tool rows

List Owners and Assign Record read ownerType/ownerId, which are block-only
fields a tool row never rendered or stored, so every agent, Pi and HITL call
failed with 'Owner type is required'. Mark both user-only so rows store them;
canvas behavior is unchanged.

* chore: regenerate tool metadata after rebase

* fix(microsoft-dynamics-365): keep a blank close outcome failing instead of assuming won

* chore: regenerate tool metadata and mapper baseline after merging staging
* fix(integrations): close gaps found in the final sweep audit

- resend: a tool row's pinned audience is no longer retargeted by the model's segmentId;
  mappers now receive the row's pinned param ids as context.pinnedParams
- google forms: a missing title, eventType, topicName or watchId stays missing instead of
  becoming the text "undefined"
- tool-row hidden params: a not-clause on a string option is decided as text, so SharePoint
  V2 Get List drops item filters a row hides once Include Columns is Yes
- attio list_records: accept a filter/sorts the json input already parsed
- hubspot create_list, intercom, kalshi: the operation's own field (pinned on a tool row)
  wins over a model arg or a stale canvas value under the tool param name
- rippling: Yes/No flags left on No send a boolean false; setting API name and data type
  apply only to custom-setting writes

* fix(rippling): lead custom object field flags with No change on updates

Is Unique and Enable History follow the dropdown-default pattern: create defaults to No,
an update or an agent tool row leads with No change and sends nothing. Saved workflows
that store 'true' or 'false' keep sending that boolean.
…f the preview (#10082)

* fix(search): read the full text of Slack canvases and files instead of the preview

* fix(search): decode Slack text files in their charset and count every preview read

* fix(search): let a UTF-8 byte-order mark override a declared charset
…rows (#10083)

* fix(table): apply filter and sort builder rules pinned on agent tool rows

Agent tool rows store filter-builder and sort-builder values as JSON text, but
the tool param decoder treated both as plain strings. Table v2 then threw on the
parsed rules and the tool ran on the raw params with the model's own filter in
place of the pinned one (bulk update/delete included); sort rules went out
unconverted, and Table v1 ignored pinned builder rules entirely.

- decode filter-builder and sort-builder values as JSON
- pick the active canonical member from decoded values, so an emptied builder
  ('[]') no longer hides the model's filter
- ToolCallParamsError: Table mapper failures on a tool call fail the call
  instead of falling back to raw params (agent and Pi local tools)
- keep tool-row builder rules as raw text for search/replace

* fix(table): fail a tool call whose v1 builder rules are corrupt

A pinned v1 builder value that does not decode to an array iterated as a string,
built nothing, and fell back to the model's filter. On a tool call it now fails
the call; an empty rule list keeps its model fallback. Also types the new test
helper params.

* fix(agent): record or skip a tool call whose block mapper rejects its params

A pending-call retry now records a ToolCallParamsError as a failed tool call
instead of aborting the continuation (other preparation refusals still abort),
and a Human-in-the-loop v2 notification whose mapper rejects its params is
skipped rather than sent with raw params.

* fix(agent): keep rejected argument values out of the tool-call error

ToolCallParamsError reaches the model before tool-result secret redaction, and a
mapper's message can quote the value it rejected after a {{SECRET}} placeholder
was resolved. The model now gets a static message; the original error stays on
cause for server logs.
…the token off its file host (#10084)

* fix(search): follow Slack's file download redirects without carrying the token off its file host

* fix(search): follow Slack file redirects only within the file host
* fix(github): encode owner and repo in request paths

Route owner, repo, numeric ids, gist ids, usernames and workflow ids through
safeUrlPathSegment, and branches/refs through a slash-preserving encoder, so a
model-supplied value cannot steer the authenticated request to another
api.github.com endpoint. Real names produce byte-identical URLs.

* fix(github): await comment operations so path errors return 400
… Choose? (#10090)

* feat(library): Glean vs Dust: Which Enterprise AI Platform Should You Choose?

* Pi Babysit: address PR #10090 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…he token off its file host (#10088)

* fix(slack): download files from Slack's download URL and never send the token off its file host

* fix(slack): report an off-host file redirect as a 400 from the download tool
…streamed token (#10087)

When a chat selects a response-format field, StreamingResponseFormatProcessor
re-ran JSON.parse on the whole buffer for every token delta, then scanned it
twice more with brace-count regexes, so CPU per response grew with the square
of the output length. Text can only parse to an object once it ends in `}` or
`]`, so parse only then. The brace-count branch re-parsed the same
`buffer.trim()` that had just failed or yielded a non-object, so it could never
return a result and is removed.
…0091)

* feat(library): Snowflake and QuickBooks MCP Servers for AI Agents

* Pi Babysit: address PR #10091 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
…ails: Enterprise Guide (#10092)

* feat(library): AI Agent Identity, Credential Management, and Audit Trails: Enterprise Guide

* Pi Babysit: address PR #10092 feedback

---------

Co-authored-by: Sim Pi Agent <pi@sim.ai>
* fix(confluence): index text from Caelor Optics HTML macros

The rendered view body carries a Connect app macro only as an iframe
bootstrap script, so pages built from an Optics HTML macro synced with no
extractable text. Read the macro's authored HTML from the storage body:
visible text with scripts and styles dropped, plus the object-literal data
its inline scripts declare.

* fix(confluence): skip commented records and bare base64 in Optics script data, retry on a missing storage body

* fix(confluence): keep regex literals and long names in Optics script data
Clarify GitLab account and project validation failures, add safe correlation metadata, and preserve routing-error classification.
A batch of many texts each under NER_WINDOW_CHARS still went through one
nlp.pipe pass, and that pass costs memory for every character in it, like one
long text. Pack the short texts into batches of at most NER_WINDOW_CHARS in
total and take the NER slot per batch.
…#10313)

* fix(billing): reserve Sim's hosted model and tool keys for paid plans

Free-plan payers without prepaid credits no longer run on Sim's hosted
provider keys. One gate, mayUseHostedKey, now guards both hosted model
keys (getApiKeyWithBYOK) and hosted tool keys (executeTool), replacing
the per-tool requiresPaidPlan opt-in. BYOK keys and keys passed on the
block keep working; a caller's own key on a hosted model is reported as
BYOK so its usage is not billed.

* fix(billing): judge the run's admitted payer for hosted model keys

* test(pi): give the handler fixture run metadata
…okups (#10317)

* fix(credentials): apply credential membership to single-credential lookups

GET /api/auth/oauth/credentials?credentialId skipped the membership check
whenever a workflowId was supplied, and GET /api/credentials?credentialId
resolved on workspace scope alone. A workspace reader who is not a member of
a credential could read its display name, provider, and scopes, which the
list forms of both endpoints hide.

- the OAuth lookup checks canUseCredential on every request; a workflowId
  still pins the credential's workspace as an extra constraint
- the internal lookup filters its result through the list mode's own
  visibility rule (listVisibleWorkspaceCredentials + gated service-account
  filter), so a credential hidden from the list reads as absent

* fix(credentials): answer unsupported credential lookups before the access check
Final-state audit of workflows/workspace as code: super-linear regexes and lookups on user input made linear (each with a failing-before test), staged blob uploads run 4 at a time, duplicated helpers consolidated onto shared ones, dead exports removed, hand-written refusal/strict-code/subflow-default data derived from their sources, and docs/guides/SYNTAX.md/exit-code tables brought back in line with the code under new drift tests.
- Cap storage downloads at ref.size and reject anything larger
- Refuse cached values larger than the ref claims
- Cache storage reads by measured bytes, not the caller's declared size
…d Azure Blob (#10314)

* fix(uploads): reject dot-segment storage keys before authorization and Azure Blob

A caller-authored serve URL could decode to a key like og-images/../workspace/<id>/<file>.
Prefix-based checks classified it as a public context and skipped authorization, and the
Azure Blob SDK collapses dot segments when it builds the request URL, so the read landed on
another workspace's blob or a sibling container.

- tryInferContextFromKey answers null for a key with a . or .. segment, so no prefix check
  (serve route, verifyFileAccess, classifiers) trusts an escaped prefix
- verifyFileAccess denies such keys up front
- every Azure block blob client is built through one guard that refuses them

* fix(uploads): treat backslash as a key separator and mirror dot-segment rejection in the file-utils mock

* fix(files): answer not found for an unclassifiable key in the delete route

* test(files): pass a route context in the delete-route traversal test
Integration tools on the Copilot app-tool lane resolved {{VAR}} references in user-only params from the acting user's environment without consulting the turn's secret authority. A run with no secret actor now resolves no reference, and the turn's secret mount policy bounds which names may resolve, matching what function_execute already enforces for sandbox mounts.
#10323)

POST /api/v2/tools/{toolId}/execute now authorizes the caller-supplied credentialId against the request workspace before dispatch, so a credential from another workspace cannot run under the request workspace's allowedIntegrations and deniedTools.
GET /health is unauthenticated and publicly reachable, and returned this pod's
live connection count. It now returns {"status":"ok"}. The connection counter
had no other caller, so it is removed from the room manager.
PII concurrency settings arrive as strings (the env helper skips validation), and mapWithConcurrency refuses a non-number limit, so PII masking failed whenever one was set. Read PII_MASK_CHUNK_CONCURRENCY, PII_REF_CONCURRENCY and PII_SERVICE_CHUNK_CONCURRENCY through envNumber.
…able writes report ignored columns (#10328)

Function blocks that fail now also output errorMessage, the thrown message without the line/code prefix, alongside the unchanged .error; it is declared as a typed error-only output that compile, lint, codegen and the executor read wherever .error is. Table writes return ignoredColumns, the keys they dropped because no column matched, with runtime write behaviour unchanged.
… abort rewrite (#10303)

* chore(db): drop organization.whitelabel_settings and rate_limit_bucket

* chore(next): remove the /api/copilot/chat/abort compatibility rewrite

* chore: describe the Redis-only provider admission store and trim the 0470 header
…stop (#10329)

A turn is cancelled when this node's abort signal fired or when the worker's
terminal said cancelled. The worker sends a cancelled terminal only for a
Stop, but when that Stop reached it another way (another Sim node, or the
worker's own stop handling), live or replayed during recovery, this node's
signal never fired. recordCancelled read only the signal, so a user Stop was
logged at ERROR as "Stream cancelled with unknown abort reason" with an
undefined reason, although finalize correctly reported an explicit stop.

recordCancelled now takes AbortReason.WorkerTerminalStop when the signal is
still live: that is the only other source of a cancelled verdict. Nothing
aborts with it, so the controller, its listeners and the SSE close telemetry
are unchanged. The start test's session mock now delegates to the real
classifier.
… leftovers (#10331)

* chore(cleanup): finish the whitelabel, Redis and self-hosted provider leftovers

* chore(providers): share one unpriced-model builder across discovered providers
…er (#10332)

* fix(models): stop resolving sim-auto to ollama outside the model router

sim-auto is a pseudo-model that only the agent, router and evaluator
handlers resolve, through the model router, at execution time. Every
other provider lookup fell through to getProviderFromModel's unknown-model
default and treated it as an Ollama model:

- translate and guardrails offered Auto but never resolve it, so a run sent
  model sim-auto to provider ollama (or a provider allowlist refused it as
  ollama); editing validation accepted it there and the catalog advertised it
- assertModelAllowed refused sim-auto as provider ollama under
  allowedModelProviders, while the client gate allowed it
- the usage breakdown gave sim-auto rows the Ollama mark and merged BYOK
  sim-auto usage into the Ollama row
- the editor's API-key reset, tool-usage control and attachment cap looked
  up ollama for it (hiding the tool-usage control for Auto), and the first
  two threw uncaught on a blacklisted model
- getPiModelOptions and the router/evaluator serialization looked it up on
  every call, logging a provider warning each time

Now:

- getProviderFromModel throws an explicit error for sim-auto instead of
  answering ollama; the guardrails Vertex-credential check skips sim-auto
  so it cannot reach that throw
- DEFAULT_BLOCK_MODEL (providers/default-model.ts, dependency-free) is the
  one source for the agent/router/evaluator default and the executor's
  DEFAULT_MODELs, which are what sim-auto falls back to
- getSerializedModelProviderId becomes resolveModelProviderId: an unset,
  reference or sim-auto model answers as DEFAULT_BLOCK_MODEL, and it still
  never throws. The agent block (dropping its own special case) and the
  three editor call sites use it, so they no longer throw
- getModelOptions no longer includes Auto; getModelOptionsWithAuto (router,
  evaluator) and getAgentModelOptions do. Editing validation reads one
  declarative MODEL_OPTION_SOURCES map instead of comparing option
  functions: only getModelOptions and getModelOptionsWithAuto fields are
  checked against the catalog, sim-auto is accepted only where the source
  offers Auto on hosted Sim, and a reference or {{ENV_VAR}} value is passed
  through (router and evaluator used to reject them). The agent's model
  field stays unvalidated, as before
- assertModelAllowed skips the provider allowlist for sim-auto (the router
  gates each pool candidate) but still applies deniedModels
- the usage breakdown attributes sim-auto to its own key, labelled Auto, in
  the model and BYOK dimensions; every other model is attributed as before

* fix(models): keep the configured provider for editor decisions on a model

The API-key reset and the attachment cap now read the provider a model value
names as written. The serialization helper substitutes the default model for
a reference or sim-auto, which dropped a reference's explicit namespace (so
switching between models of that provider cleared the key) and gave sim-auto
the default model's larger attachment cap, although Auto can route images to
an inline-only provider. sim-auto and blacklisted models name no provider, so
the key comparison treats them as their own value and the cap stays at the
field's own size.
…h generated exit-code, diagnostic and limit references (#10334)

Workflows and workspace as code docs move under /workflows/code as a tutorial, how-to pages and generated references; exit codes, diagnostics and limits are generated from the engine (check:workflow-code-docs fails on drift); /workflows/workspace-code redirects to /workflows/code/workspace; CI recipes for a PR plan comment and a scheduled drift job; quick fixes from the docs audit.
…10330)

* feat(billing): card-required Pro free trial with a capped allowance

New personal Pro subscribers get a 14-day trial at checkout with a card
collected up front. The trial counts as Pro (features and Sim-hosted
keys) under a fixed 2,000-credit allowance: no weekly refresh, no
on-demand usage, no overage billing, and no team conversion until it
converts. Each card and each account starts one trial; a reused card
ends the trial at once so the card is charged.

* fix(billing): settle trial card checks from claims, retry them, and cap trial credit grants

* fix(billing): serialize trial claims per account and judge only Pro checkout trials

* chore(db): format trial migration snapshot
…ntions, and an env-number audit (#10333)

Primer and operations help cover skipped-block references, rejoining branches, loop/parallel item refs and run logs; v2 log detail leads with a failure summary; export notes nulled bindings; a root AGENTS.md pointer; NO_COLOR/TERM=dumb honoured; Node 22 floor; --summary-file plan/status Markdown for any CI, carried into suggested next commands; check:env-numbers fails raw numeric env reads that skip envNumber.
…d help, and typed Function results in JSON fields (#10335)
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 23, 2026 18:32
@vercel

vercel Bot commented Nov 23, 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 Nov 23, 2026 6:37pm UTC

Request Review

@waleedlatif1
waleedlatif1 merged commit fad7dad into dev Nov 23, 2026
40 of 41 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/sync-dev-with-staging-2026-11-23 branch November 23, 2026 18:34
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] No confirmed blocking issue was found in the inspected paths.

Summary

Syncs dev with staging across deployment, authentication, saved credentials, workflow source, billing, desktop, and documentation.

  • Dev now runs the code that is already on staging.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Push to dev] --> B[Build dev images]
  A --> C[Push database schema]
  A --> D[Upload preview tasks]
  B --> E[Database image selects dev stage]
  F[Compose or Helm deployment] --> G[Database image uses runner stage]
  G --> H[Run versioned migrations]
Loading

Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/sta..." · Reviewed by Greptile

This branch was successfully deployed

1 active deployment
Preview — 7823f529 Deployed Nov 23, 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.

4 participants