Fast approvals for routine fixes

Security patches and routine fixes get approved in minutes, by code owners who pre-cleared them, after a risk score weighs shipping against waiting.

Bump axios to 1.21.0 by cyrusagent×
github.com/acme/web/pull/1294
acme / webType / to search

Bump axios to 1.21.0 #1294

Opencyrusagent wants to merge 1 commit into main from cyrus/eng-482-patch-axios
Conversation3Commits1Checks4Files changed2
cyrusagentbotcommented 2 minutes agoContributor···
Change riskLow 12
2 filesLockfile and package.json only312 tests pass
Risk of waitingHigh 81
High-severity advisoryCredentials exposed on redirectFix available

Pre-cleared by @mchen for dependency patches in web/. Requesting her approval.

M
mchen approved these changes Pre-cleared via Cyrusjust now
Changes approved
1 approving review by mchen
All checks have passed
4 successful checks
No conflicts with base branch
Merging can be performed automatically.
Merge pull request ▾You can also merge this with the command line.

Pre-cleared by your code owners

Code owners connect their personal GitHub account and pre-clear the kinds of change they trust, like dependency patches in the paths they own. Approvals come from their account, so CODEOWNERS and branch protection still hold.

Pre-cleared approvalsacme/web
M
Maya Chen@mchen GitHub connected
web/Dependency patchesLockfile
S
Sam Okafor@sokafor GitHub connected
api/Security patches
P
Priya Nair@pnair GitHub connected
docs/DocsTypos

Risk scored against the risk of waiting

Every change gets a risk score from its diff, the files it touches and its test results. Cyrus weighs that against the risk of not releasing, such as advisory severity and how long the exposure stays open.

Change riskLow 12
2 filesLockfile and package.json only312 tests pass
Risk of waitingHigh 81
High-severity advisoryCredentials exposed on redirectFix available

Everything else goes to a person

Changes outside a pre-clearance, or that score too risky, go to the right code owner with a summary of what changed and why it was held.

cyrusagentbotcommented just nowContributor···

This changes src/auth/session.ts, which no code owner has pre-cleared. Requesting review from @acme/security.

Summary: session cookies now set SameSite=Lax and expire after 14 days instead of 30.

cyrusagent requested a review from acme/security

How Cyrus does it

  1. Connect code owners

    Owners link their personal GitHub accounts.

  2. Pre-clear change types

    Choose the fixes each owner trusts in their paths.

  3. Cyrus scores the risk

    Change risk is weighed against the risk of waiting.

  4. Approve or hand off

    Pre-cleared, low-risk changes are approved; the rest go to owners.

More automations

Security patching Dependency advisories become tested pull requests.

E Engineering › ENG-482☆  ···‹  3 / 14  ›

Patch high-severity axios advisory

Dependabot alert #37 on acme/web: axios before 1.21.0 can forward credentials across cross-origin redirects. Severity: High.

ActivityUnsubscribe
DDependabot created the issue via GitHub14m ago
Security patching automation delegated to Cyrus14m ago
CyrusAgent2m agoCompleted
axios is a direct dependency of web and a transitive one through @acme/sdk.
Ran pnpm up axios@1.21.0 -r
Ran pnpm audit --prod0 vulnerabilities
Ran pnpm test312 passed
Opened acme/web#1294

Upgraded axios to 1.21.0 in web and @acme/sdk and refreshed the lockfile. The audit is clean and all 312 tests pass.

No code changes were needed. Ready for review in acme/web#1294.

Code review A careful first review on every pull request.

Add exponential backoff to email worker by mchen×
github.com/acme/api/pull/1291
acme / apiType / to search

Add exponential backoff to email worker #1291

Openmchen wants to merge 2 commits into main from mchen/email-backoff
Conversation3Commits2Checks4Files changed2
cyrusagent bot reviewed 4 minutes ago
⌄src/workers/email.ts+9 −2
4141 } catch (err) {
42- await sleep(5 * 60_000);
42+ const delay = Math.min(2 ** job.attempt * 1000, 120_000);
43+ await sleep(delay);
cyrusagentbot4 minutes ago
Resend sends a Retry-After header on 429s. Prefer it when present so we don’t retry before the window resets:
Suggested change
- const delay = Math.min(2 ** job.attempt * 1000, 120_000);
+ const delay = retryAfterMs(err) ?? Math.min(2 ** job.attempt * 1000, 120_000);
Commit suggestion
cyrusagent approved these changes just now

Dev support Answers from your codebase, right in Slack.

←  →  ◷Search Acme?
# eng-support ⌄M24
MessagesCanvasFiles
Yesterday ⌄
P
Priya Nair2:14 PM
@Cyrus where do we set the session timeout for the dashboard?
2 repliesLast reply yesterday at 2:20 PM
S
Sam Okafor4:47 PM
Staging is back up after the database migration. Thanks for your patience, everyone.
If anything looks off, drop it in this channel.
Today ⌄
Connor9:12 AM
Reminder: on-call handoff moves to Thursdays starting next week.
S
Sam Okafor9:58 AM
@here web 2.41 is out. Release notes are in #product.
M
Maya Chen10:31 AM
@Cyrus customers say signup confirmation emails are arriving 10+ minutes late since yesterday. Can you take a look?
👀 1🙏 2
M3 repliesLast reply today at 10:38 AM
B I S 🔗 ≔ </>
Message #eng-support
+  Aa  ☺  @➤

Bug fixes Delegate a bug and get back a tested fix.

E Engineering › ENG-517☆  ···‹  3 / 14  ›

Discount codes apply twice when the cart is edited

Reported by two customers today. Apply a code, change a quantity, and the discount is subtracted a second time at checkout.

ActivityUnsubscribe
PPriya Nair delegated to Cyrus31m ago
CyrusAgent6m agoCompleted
Quantity changes re-run applyDiscount on an already-discounted total.
Added cart.test.ts › keeps one discount after editfails as reported
Edited src/cart/pricing.ts
Ran pnpm test cart48 passed
Opened acme/web#1302

Root cause: recalculate() applied the discount to the discounted subtotal instead of the original. The fix computes from line items every time. A regression test is included in acme/web#1302.

Ship security patches the same day

Start a 7-day free trial on Pro or Team. Setup takes minutes.