René's URL Explorer Experiment


Title: fix(billing): enforce the plan usage limit mid-run and bill runs that outlive their period by waleedlatif1 · Pull Request #8461 · simstudioai/sim · GitHub

Open Graph Title: fix(billing): enforce the plan usage limit mid-run and bill runs that outlive their period by waleedlatif1 · Pull Request #8461 · simstudioai/sim

X Title: fix(billing): enforce the plan usage limit mid-run and bill runs that outlive their period by waleedlatif1 · Pull Request #8461 · simstudioai/sim

Description: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. - fix(billing): enforce the plan usage limit mid-run and bill runs that outlive their period by waleedlatif1 · Pull Request #8461 · simstudioai/sim

Open Graph Description: Summary Chat runs are moving off a fixed wall-clock deadline, so spend has to be bounded by the plan's usage limit while a run is in progress, not only when it starts. This PR adds Sim's si...

X Description: Summary Chat runs are moving off a fixed wall-clock deadline, so spend has to be bounded by the plan's usage limit while a run is in progress, not only when it starts. This PR adds Sim&...

Opengraph URL: https://github.com/simstudioai/sim/pull/8461

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:79634834-90fa-5535-87b4-a6d51ffb2d93
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB10:3743C5:3A93C6:506FC1:6AFB9998
html-safe-noncefbaed467fef8b0c922a4b9c4f34a41f1d9c7d9c242998e6b361f15e0b91e6237
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjEwOjM3NDNDNTozQTkzQzY6NTA2RkMxOjZBRkI5OTk4IiwidmlzaXRvcl9pZCI6IjYzNDE1MTk2NDM4MzU2MDMzNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccdf2417accf993a524c8e8535641051a022f358d986ed9dd9b765778349ed3f4
hovercard-subject-tagpull_request:4689030194
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8461/commits
twitter:imagehttps://opengraph.githubassets.com/e6df18b45f1eb9cb6f12aeba31fe98f4865470a2c2d0ffc686131a2315a916c7/simstudioai/sim/pull/8461
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e6df18b45f1eb9cb6f12aeba31fe98f4865470a2c2d0ffc686131a2315a916c7/simstudioai/sim/pull/8461
og:image:altSummary Chat runs are moving off a fixed wall-clock deadline, so spend has to be bounded by the plan's usage limit while a run is in progress, not only when it starts. This PR adds Sim's si...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewaleedlatif1
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-cache
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8461/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8461%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8461%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8461/commits
Reloadhttps://github.com/simstudioai/sim/pull/8461/commits
Reloadhttps://github.com/simstudioai/sim/pull/8461/commits
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
https://github.com/simstudioai/sim
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/midrun-usage-enforcementhttps://github.com/simstudioai/sim/tree/fix/midrun-usage-enforcement
Conversationhttps://github.com/simstudioai/sim/pull/8461
Commits16 (16)https://github.com/simstudioai/sim/pull/8461/commits
Checkshttps://github.com/simstudioai/sim/pull/8461/checks
Files changedhttps://github.com/simstudioai/sim/pull/8461/files
fix(billing): enforce the plan usage limit mid-run and bill runs that outlive their periodhttps://github.com/simstudioai/sim/pull/8461/commits#top
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/midrun-usage-enforcementhttps://github.com/simstudioai/sim/tree/fix/midrun-usage-enforcement
fix(billing): enforce the plan usage limit mid-run and bill runs that outlive their periodhttps://github.com/simstudioai/sim/pull/8461/commits/62eb19d5910d62f686762770991e273c93ce6c92
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
62eb19dhttps://github.com/simstudioai/sim/pull/8461/commits/62eb19d5910d62f686762770991e273c93ce6c92
https://github.com/simstudioai/sim/tree/62eb19d5910d62f686762770991e273c93ce6c92
fix(billing): roll forward-moved periods, lock only past period end, skip ended admissionshttps://github.com/simstudioai/sim/pull/8461/commits/16f34f1728125af070a44878b9800188d28676a8
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
16f34f1https://github.com/simstudioai/sim/pull/8461/commits/16f34f1728125af070a44878b9800188d28676a8
https://github.com/simstudioai/sim/tree/16f34f1728125af070a44878b9800188d28676a8
fix(billing): judge long runs against the current period and close review gapshttps://github.com/simstudioai/sim/pull/8461/commits/a2c45c0003e64f9b38ccce4232980c04e5c7154b
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
a2c45c0https://github.com/simstudioai/sim/pull/8461/commits/a2c45c0003e64f9b38ccce4232980c04e5c7154b
https://github.com/simstudioai/sim/tree/a2c45c0003e64f9b38ccce4232980c04e5c7154b
fix(billing): judge mid-run usage against the payer's current periodhttps://github.com/simstudioai/sim/pull/8461/commits/a7b74b85a3bfcd449d212eef1fe652682ef0fe4b
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
a7b74b8https://github.com/simstudioai/sim/pull/8461/commits/a7b74b85a3bfcd449d212eef1fe652682ef0fe4b
https://github.com/simstudioai/sim/tree/a7b74b85a3bfcd449d212eef1fe652682ef0fe4b
chore(billing): sync the worker usage refusal contracthttps://github.com/simstudioai/sim/pull/8461/commits/51725ac1b106accc9fb994717ceecd88915a142c
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
51725achttps://github.com/simstudioai/sim/pull/8461/commits/51725ac1b106accc9fb994717ceecd88915a142c
https://github.com/simstudioai/sim/tree/51725ac1b106accc9fb994717ceecd88915a142c
fix(billing): reload an ended cached period, keep org payers org-scoped, keep blocked accounts blockedhttps://github.com/simstudioai/sim/pull/8461/commits/3a7134d0f280d9731fde973aad4b310b2a469be7
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
3a7134dhttps://github.com/simstudioai/sim/pull/8461/commits/3a7134d0f280d9731fde973aad4b310b2a469be7
https://github.com/simstudioai/sim/tree/3a7134d0f280d9731fde973aad4b310b2a469be7
fix(billing): cache admitted direct-v1 continuation verdicts and bound the callback's standing readhttps://github.com/simstudioai/sim/pull/8461/commits/e1d11025ff618953539c4ac1556754b4787633fe
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
e1d1102https://github.com/simstudioai/sim/pull/8461/commits/e1d11025ff618953539c4ac1556754b4787633fe
https://github.com/simstudioai/sim/tree/e1d11025ff618953539c4ac1556754b4787633fe
fix(billing): roll a direct-v1 run's spend into the payer's current Stripe period and judge its standing mid-runhttps://github.com/simstudioai/sim/pull/8461/commits/d4bd0724f81848acd515d7e8adef1b573ecfd554
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
d4bd072https://github.com/simstudioai/sim/pull/8461/commits/d4bd0724f81848acd515d7e8adef1b573ecfd554
https://github.com/simstudioai/sim/tree/d4bd0724f81848acd515d7e8adef1b573ecfd554
Merge origin/staging into fix/midrun-usage-enforcementhttps://github.com/simstudioai/sim/pull/8461/commits/122687d29718e7308af304e55d19c82e3de5b2af
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
122687dhttps://github.com/simstudioai/sim/pull/8461/commits/122687d29718e7308af304e55d19c82e3de5b2af
https://github.com/simstudioai/sim/tree/122687d29718e7308af304e55d19c82e3de5b2af
test(mothership): pin a usage refusal as non-retryable under the stream retry windowhttps://github.com/simstudioai/sim/pull/8461/commits/19c3658b98ce95967783247b140152483764dfe3
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
19c3658https://github.com/simstudioai/sim/pull/8461/commits/19c3658b98ce95967783247b140152483764dfe3
https://github.com/simstudioai/sim/tree/19c3658b98ce95967783247b140152483764dfe3
test(billing): pin the Stripe-only rollover gate and the decision's subscription ID parsinghttps://github.com/simstudioai/sim/pull/8461/commits/074f4b8477782e643b98f474f199e6aea7483de7
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
074f4b8https://github.com/simstudioai/sim/pull/8461/commits/074f4b8477782e643b98f474f199e6aea7483de7
https://github.com/simstudioai/sim/tree/074f4b8477782e643b98f474f199e6aea7483de7
Merge origin/staging into fix/midrun-usage-enforcementhttps://github.com/simstudioai/sim/pull/8461/commits/a005f4b5e472d2a14ead2f7c7067409b3c1eda4c
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
a005f4bhttps://github.com/simstudioai/sim/pull/8461/commits/a005f4b5e472d2a14ead2f7c7067409b3c1eda4c
https://github.com/simstudioai/sim/tree/a005f4b5e472d2a14ead2f7c7067409b3c1eda4c
fix(billing): judge a non-Stripe run against the period its charges land inhttps://github.com/simstudioai/sim/pull/8461/commits/c544dc729758a6b449aab70d4b5322479058076a
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
c544dc7https://github.com/simstudioai/sim/pull/8461/commits/c544dc729758a6b449aab70d4b5322479058076a
https://github.com/simstudioai/sim/tree/c544dc729758a6b449aab70d4b5322479058076a
test(billing): assert observable verdicts and responses instead of mock callshttps://github.com/simstudioai/sim/pull/8461/commits/4d16e30c1be4fe094d66a0eaa39476f0a49bcc86
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
4d16e30https://github.com/simstudioai/sim/pull/8461/commits/4d16e30c1be4fe094d66a0eaa39476f0a49bcc86
https://github.com/simstudioai/sim/tree/4d16e30c1be4fe094d66a0eaa39476f0a49bcc86
refactor(billing): drop unconsumed refusal plumbing and the straddle retry, and make the reporting-window test deterministichttps://github.com/simstudioai/sim/pull/8461/commits/1291fa8b7bc61dd12df4691e3e96c9b21e1c3a86
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
1291fa8https://github.com/simstudioai/sim/pull/8461/commits/1291fa8b7bc61dd12df4691e3e96c9b21e1c3a86
https://github.com/simstudioai/sim/tree/1291fa8b7bc61dd12df4691e3e96c9b21e1c3a86
Merge origin/staging into fix/midrun-usage-enforcementhttps://github.com/simstudioai/sim/pull/8461/commits/4ec5704db27c16fced970dae21ca5c480779ade0
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
4ec5704https://github.com/simstudioai/sim/pull/8461/commits/4ec5704db27c16fced970dae21ca5c480779ade0
https://github.com/simstudioai/sim/tree/4ec5704db27c16fced970dae21ca5c480779ade0
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.