Repository navigation
merge queue: checking #7613 on dev (4d5067b), stacked on 7 pull requests ahead - #7620
Closed
mergify[bot] wants to merge 29 commits into
Closed
mergify[bot] wants to merge 29 commits into
mergify[bot] wants to merge 29 commits into
Conversation
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
…als facet builder
…e policy row for the decision re-check
…fter dev took 0181
#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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
devqueue, to test #7613 before it merges intodev.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:
devat4d5067b07e808eThe 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
devqueue in the dashboardWhat happens next
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 ciRequired conditions of queue rule
devfor mergecheck-success=CI requireddev required CI]:check-success=CI requiredcheck-success=contribution-legalprotect-dev]:check-neutral = CI requiredcheck-skipped = CI requiredcheck-success = CI required#review-threads-unresolved = 0[🛡 GitHub repository ruleset ruleprotect-dev]check-success=contribution-legalgithub-review-approved[🛡 GitHub repository ruleset ruleprotect-dev]protect-dev]:check-success = contribution-legalcheck-neutral = contribution-legalcheck-skipped = contribution-legalRequired conditions to stay in the queue
#review-threads-unresolved = 0#review-threads-unresolved = 0[🛡 GitHub repository ruleset ruleprotect-dev]-draftbase = devgithub-review-approved[🛡 GitHub repository ruleset ruleprotect-dev]dev required CI]:check-success=CI requiredcheck-success=contribution-legalprotect-dev]:check-success = contribution-legalcheck-neutral = contribution-legalcheck-skipped = contribution-legalprotect-dev]:check-success = CI requiredcheck-neutral = CI requiredcheck-skipped = CI required