Skip to content

merge queue: checking #7613 on dev (4d5067b), stacked on 7 pull requests ahead - #7620

Closed
mergify[bot] wants to merge 29 commits into
devfrom
mergify/merge-queue/5f6435f466
Closed

mergify[bot] wants to merge 29 commits into
devfrom
mergify/merge-queue/5f6435f466

Conversation

@mergify

@mergify mergify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Note

This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch legislative-mayonnaise-jdntp2 of the dev queue, to test #7613 before it merges into dev.

What this draft tests

Mergify checks that #7613 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:

  1. dev at 4d5067b
  2. the 7 pull requests queued ahead of this batch, listed below, which bring the tip to 07e808e
  3. #7613, the pull request of this batch

The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.

✨ Where it stands: closed

Pull requests batch (#7546, #7535, #7528) which was ahead in the queue failed.

Follow the dev queue in the dashboard

What happens next

  • Mergify closes this draft.
  • #7613 is still in the queue.

Tip

A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the 7 pull requests ahead, so a failure here can come from them as much as from #7613. See only this batch's changes.

Queued ahead of this batch

These pull requests entered the queue before this batch and are not part of it.

Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 07e808ed25e743bebe95db0cf255d49e492e81d0
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 7613
    scopes: []
queue_base_sha: 4d5067b50caa3166494ff4022db8c21105d9ea19
scopes: []
...
Required conditions of queue rule dev for merge
  • check-success=CI required
  • all of [🛡 Merge Protections rule dev required CI]:
    • check-success=CI required
    • check-success=contribution-legal
  • any of [🛡 GitHub repository ruleset rule protect-dev]:
    • check-neutral = CI required
    • check-skipped = CI required
    • check-success = CI required
  • #review-threads-unresolved = 0 [🛡 GitHub repository ruleset rule protect-dev]
  • check-success=contribution-legal
  • github-review-approved [🛡 GitHub repository ruleset rule protect-dev]
  • any of [🛡 GitHub repository ruleset rule protect-dev]:
    • check-success = contribution-legal
    • check-neutral = contribution-legal
    • check-skipped = contribution-legal
Required conditions to stay in the queue

bobikenobi12 and others added 29 commits November 25, 2026 03:51
The first run on dev failed: v2 renamed version/title/commit/createGithubReleases
and refuses the old names. Pass the app token as github-token so the Version
packages PR triggers CI.
… policy re-check, org:manage_agents, agent policy, consent grants, token auto-approve (AGT-L2-S)

The server half of the AGT-L2 surfaces, built to the signed-off design now committed
under docs/design/agt-l2/.

- Approvals list read (G2): queryApprovalsPage with a (created_at, id) keyset cursor and a
  facet pass over the unfiltered universe, scoped to the org and the projects the viewer may
  view; served as approvals.list and approvals.get (the decision sheet).
- Decision reason (G3): apply_approvals.decision_reason (nullable, at most 500 characters),
  written on deny through decideApplyApproval and returned on the approval read. One migration.
- Policy re-check at decision time (G14): decidable.ts answers from applyRequirement, the read
  returns it, and decideApproval refuses a blocked approve with the new code policy_refused.
  Deny is always available.
- org:manage_agents (G7): a PDP verb carried by the owner role, grantable through custom
  roles; updateAgentPolicy and the policy read are guarded by it and record Activity.
- Consent grants (G8, G17): answerAgentConsent checks the org's kill switch and allow-list and
  what the role allows, hands the narrowed scopes to Better Auth's consent endpoint, then writes
  agent_oauth_grants (org, scopes, projects) before returning the redirect. Expired and
  already-answered requests come back as their own outcomes. disconnectAgent keeps the grant
  with revoked_at, withdraws the client's tokens and empties the consent.
- Service tokens (G10, G11): a console read, create with auto-approve environments, edit
  environments and revoke; auto-approve needs org:manage_agents and only takes non-production
  environments of the token's projects on a token with the Deploy scope.
- Agent-app catalogue (G15): lib/agents/catalog.ts matches CIMD client ids to known apps.

Closes #7500
#7477)

Off means off (maintainer decision 2026-11-24). While an org owner has agent
access turned off, the in-product agent is refused every tool: reads, design
tools, plan proposals and approval requests, not only applies.

- lib/agent/kill-switch.ts: guardAgentTools wraps the tool set the turn route
  hands the model. Every in-product route and subagent passes through it. Off at
  turn start drops the client tools and tells the model in the system prompt;
  every server tool re-reads the switch before it runs, so a switch turned off
  mid-turn refuses the next call.
- lib/approvals/policy.ts: agentAccessRefusal is the one decision, shared by
  table 4.2 and the guard; the table's PLAN column now states the refusal.
- An approval granted before the switch was turned off is refused at consume
  (gate test for both agent kinds). The MCP route's whole-request refusal was
  already covered by mcp-route-audience.test.ts.
- docs: agents/security says what off means for MCP and the console assistant.

Closes #7477
/api/webhooks/paddle verifies Paddle-Signature (HMAC-SHA256 over ts:body,
constant-time, 5-minute window, any h1 during rotation; fails closed without
config), normalizes subscription/transaction/adjustment events into the
provider-neutral seam types, and applies each exactly once through the shared
(provider, event_id) ledger.

applyBillingEvent writes organization_billing under an occurred_at watermark
(no regression from out-of-order or replayed events, no revival of a canceled
subscription, one subscription per slot, never over a live Stripe one), keeps
the paddle_transaction mirror, grants credit packs once and reverses them on a
full refund or chargeback, and alerts the operator on chargebacks, partial
refunds and org mismatches. custom_data is untrusted: the row holding the
subscription decides the org; custom_data only names one that exists.

A Paddle past_due subscription keeps its plan for a 7-day grace
(entitlementStatus), wired into the entitlement readers; Stripe rows are
unchanged. The Paddle adapter is registered in the seam with parseWebhook;
purchase/plan/usage methods throw until L4/L5.
…t, no 24-row cap, no count pill

Transaction history read Stripe with `limit: 24` and paged those rows in the browser, ten at a
time, so charge 25 and every later one could not be reached. It now pages through Stripe's own
cursor. `starting_after` is mapped onto the console's opaque keyset cursor and `has_more` decides
`nextCursor`. The table renders through DataTable's server mode with the shared ListFooter
(scroll sentinel plus "Load more").

The Invoices page read up to 200 rows (the input allowed 500), paged them 20 at a time in the
browser, showed a raw CountPill and a "Showing the N most recent" note. `billing.invoices` now
answers a keyset page from `queryInvoicesPage`. The order is coalesce(paid_at, created_at)
truncated to ms, then id. Filters apply to the rows pass. The status facet pass covers the org's
unfiltered invoices and runs on the first page only, and so does `universeEmpty`. The panel reads
the list through `useKeysetList`. A filter change restarts at page one, and filtered-empty is now
told apart from first-run empty by `universeEmpty`. The count pill and the cap note are gone.

Both list-standard debt files are deleted.
…ount pill (LST-12)

The support cases list was the reference implementation LST-0 lifted its
cursor codec and footer from; it now reads through those shared pieces
instead of its own copies.

- queryCasesPage pages through lib/queries/keyset.ts (ms-truncated sort
  key, row-value predicate, limit+1 for an exact end) and returns
  { rows, nextCursor, facets, universeEmpty } with a literal facets key.
  universeEmpty is read off the unfiltered facet pass.
- support.cases takes keysetPageInput(): an opaque cursor (malformed is
  a 400), limit default 50, max 100. CaseCursor, nextCaseCursor and
  CASE_PAGE_SIZE are gone; listCasesForOwner is the bell's unpaged read.
- CaseList uses useKeysetList + ListFooter; the hand-rolled
  useQuery/useInfiniteQuery pair, mergeCasePages and the inline footer
  are deleted, as is the PageToolbar count.
- The route prefetches the first page of the same infinite query.
- list-standard/support-cases.json deleted: nothing left to declare.

Closes #7494
…d as a bounded list (LST-5)

The PageToolbar count and the per-group SectionHeading count pills go, and
the filtered-empty sentence no longer states the catalog size. The catalog
is recorded as a bounded list: its rows are the connectors table, written
only by the generated seed from packages/core/categories/catalog.json.

Closes #7487
@mergify mergify Bot closed this Nov 25, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/5f6435f466 branch November 25, 2026 06:03
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.

1 participant