René's URL Explorer Experiment


Title: feat(audit): record the client surface on audit entries and identify CLI login requests by waleedlatif1 · Pull Request #7823 · simstudioai/sim · GitHub

Open Graph Title: feat(audit): record the client surface on audit entries and identify CLI login requests by waleedlatif1 · Pull Request #7823 · simstudioai/sim

X Title: feat(audit): record the client surface on audit entries and identify CLI login requests by waleedlatif1 · Pull Request #7823 · simstudioai/sim

Description: Summary Adds a nullable surface column to audit_log (web, desktop, cli, sdk-js, sdk-python), written from the client the route wrapper already resolves per request, so every audit entry recorded while serving a request says which client it came from Read from the ambient request context in the one row builder shared by recordAudit, recordAuditBatch, and recordAuditOnce, so no caller changes; null for background work and callers that don't identify themselves Not added to any read projection: the v1/v2 audit APIs, admin API, and data drain all map fields explicitly, so responses and exports are unchanged Migration 0344_audit_log_surface is a single ADD COLUMN ... text (nullable, no default): metadata-only, compatible with the deployed app, which never writes it, and no contract step to follow. The snapshot diff is that one column The CLI's OAuth discovery, token exchange/refresh, and device-flow poll now send X-Sim-Client-Info like every other CLI request, so they carry the coding agent instead of falling back to user-agent attribution One identityHeaders() helper now supplies the user agent and client info for the API client and all three login requests, replacing four hand-written copies Drops an unused clientInfoHeader barrel export Type of Change New feature Testing New audit tests: surface recorded from the request context, and absent outside a request; confirmed they fail without the change Login token and device-poll tests assert both identity headers CLI suite passes with and without the publish job's telemetry env; audit, db, sim-cli, and apps/sim type-check bun run check:migrations, bun run lint, check:audits, and docs-manifest:check pass; full apps/sim suite passes apart from one unrelated timing test that passes on rerun Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Adds a nullable surface column to audit_log (web, desktop, cli, sdk-js, sdk-python), written from the client the route wrapper already resolves per request, so every audit entry recorded w...

X Description: Summary Adds a nullable surface column to audit_log (web, desktop, cli, sdk-js, sdk-python), written from the client the route wrapper already resolves per request, so every audit entry recorded w...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ffc8085e-c808-22c3-fb42-acdb1891ee4a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB92E:2B723A:2A17E:3A2BB:6AFB64A0
html-safe-nonce7f2851e47b32b09d58251fc316f7229099a792f77c7ffadb8fdca7f518985759
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTJFOjJCNzIzQToyQTE3RTozQTJCQjo2QUZCNjRBMCIsInZpc2l0b3JfaWQiOiIyMDI5Mzg0NzgzNzMyODkyODMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac18313de655b49f09686c1c1affd3361a5bb3449c3aacc1236f1c179dadcfa68b
hovercard-subject-tagpull_request:4531242798
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7823/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Adds a nullable surface column to audit_log (web, desktop, cli, sdk-js, sdk-python), written from the client the route wrapper already resolves per request, so every audit entry recorded w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7823/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7823%2Ffiles
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%2F7823%2Ffiles
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%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/7823/files
Reloadhttps://github.com/simstudioai/sim/pull/7823/files
Reloadhttps://github.com/simstudioai/sim/pull/7823/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)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
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/audit-surface-cli-auth-headerhttps://github.com/simstudioai/sim/tree/feat/audit-surface-cli-auth-header
Conversation 2 https://github.com/simstudioai/sim/pull/7823
Commits 1 https://github.com/simstudioai/sim/pull/7823/commits
Checks 32 https://github.com/simstudioai/sim/pull/7823/checks
Files changed https://github.com/simstudioai/sim/pull/7823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7823/files
feat(audit): record the client surface on audit entries and identify CLI login requests https://github.com/simstudioai/sim/pull/7823/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/7823/files
a06248c feat(audit): record the client surface on audit entries and identify … waleedlatif1 Sep 14, 2026 https://github.com/simstudioai/sim/pull/7823/commits/a06248c04d8ea8d13c4f85a889298a1fe7199268
Clear filters https://github.com/simstudioai/sim/pull/7823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7823/files
log.test.ts https://github.com/simstudioai/sim/pull/7823/files#diff-caeb7da0174ed1a72f2d7c75aaee96102d58fbca1fc7d8f8b956b5893f287697
log.ts https://github.com/simstudioai/sim/pull/7823/files#diff-ce0acfeacdc012e02c6819ae0034f84644cd0e5c27c4427b8291aab13d27a857
0344_audit_log_surface.sql https://github.com/simstudioai/sim/pull/7823/files#diff-a2015d1418d0ad7c21da73dbd76750c13fbc914fa865f39be30474f2dc696a92
0344_snapshot.json https://github.com/simstudioai/sim/pull/7823/files#diff-191387d51bc1d3f85ff9adcb4199ea7dba43201da594eeb7b7fdd998a2688607
_journal.json https://github.com/simstudioai/sim/pull/7823/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/7823/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
device-flow.test.ts https://github.com/simstudioai/sim/pull/7823/files#diff-7cf5f5e4851d34bb55f9075e70dd487256a9f940f3f35a74b20fb7e69eb3f3d1
device-flow.ts https://github.com/simstudioai/sim/pull/7823/files#diff-5aa65cf93fa0d73ab09d4aeb9f2d09c4a9238d17e5c942a5fcfb971f418a4ebb
oauth-flow.test.ts https://github.com/simstudioai/sim/pull/7823/files#diff-386914d4d5ce6c0b7783c4010d3a52487261ce2fd683e3e3f7853284745e21aa
oauth-flow.ts https://github.com/simstudioai/sim/pull/7823/files#diff-962ae5a00909bdc5ca85151ba07e5a3f8bbfa1be8f451092ef22c134a71591ca
client.ts https://github.com/simstudioai/sim/pull/7823/files#diff-caa2a8dc602888c259c12fa0be9f34d37d4ec42e073165b21a5e19ab586a0cf5
client-info.ts https://github.com/simstudioai/sim/pull/7823/files#diff-1ec675ec06aecd2764999de29392f9faa742ba27bcdb7b1675e0cceb3cf795e0
index.ts https://github.com/simstudioai/sim/pull/7823/files#diff-0d1101c44b074c4be5957c3a92d09e3eb08fea650c5786085a1a46c80b0c56c7
packages/audit/src/log.test.tshttps://github.com/simstudioai/sim/pull/7823/files#diff-caeb7da0174ed1a72f2d7c75aaee96102d58fbca1fc7d8f8b956b5893f287697
View file https://github.com/simstudioai/sim/blob/a06248c04d8ea8d13c4f85a889298a1fe7199268/packages/audit/src/log.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7823/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7823/files#diff-caeb7da0174ed1a72f2d7c75aaee96102d58fbca1fc7d8f8b956b5893f287697
https://github.com/simstudioai/sim/pull/7823/files#diff-caeb7da0174ed1a72f2d7c75aaee96102d58fbca1fc7d8f8b956b5893f287697
https://github.com/simstudioai/sim/pull/7823/files#diff-caeb7da0174ed1a72f2d7c75aaee96102d58fbca1fc7d8f8b956b5893f287697
https://github.com/simstudioai/sim/pull/7823/files#diff-caeb7da0174ed1a72f2d7c75aaee96102d58fbca1fc7d8f8b956b5893f287697
packages/audit/src/log.tshttps://github.com/simstudioai/sim/pull/7823/files#diff-ce0acfeacdc012e02c6819ae0034f84644cd0e5c27c4427b8291aab13d27a857
View file https://github.com/simstudioai/sim/blob/a06248c04d8ea8d13c4f85a889298a1fe7199268/packages/audit/src/log.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7823/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7823/files#diff-ce0acfeacdc012e02c6819ae0034f84644cd0e5c27c4427b8291aab13d27a857
https://github.com/simstudioai/sim/pull/7823/files#diff-ce0acfeacdc012e02c6819ae0034f84644cd0e5c27c4427b8291aab13d27a857
https://github.com/simstudioai/sim/pull/7823/files#diff-ce0acfeacdc012e02c6819ae0034f84644cd0e5c27c4427b8291aab13d27a857
https://github.com/simstudioai/sim/pull/7823/files#diff-ce0acfeacdc012e02c6819ae0034f84644cd0e5c27c4427b8291aab13d27a857
packages/db/migrations/0344_audit_log_surface.sqlhttps://github.com/simstudioai/sim/pull/7823/files#diff-a2015d1418d0ad7c21da73dbd76750c13fbc914fa865f39be30474f2dc696a92
View file https://github.com/simstudioai/sim/blob/a06248c04d8ea8d13c4f85a889298a1fe7199268/packages/db/migrations/0344_audit_log_surface.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7823/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/7823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7823/files
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.