René's URL Explorer Experiment


Title: feat(ashby): incremental job sync, custom field writes, and application lifecycle ops by mzxchandra · Pull Request #6703 · simstudioai/sim · GitHub

Open Graph Title: feat(ashby): incremental job sync, custom field writes, and application lifecycle ops by mzxchandra · Pull Request #6703 · simstudioai/sim

X Title: feat(ashby): incremental job sync, custom field writes, and application lifecycle ops by mzxchandra · Pull Request #6703 · simstudioai/sim

Description: Summary Extends the Ashby connector so a scheduled job/req sync can run incrementally, and adds the write path needed to annotate reqs and retract applications. Reads list_jobs accepts Ashby's syncToken and returns it as nextSyncCursor, turning a scheduled sync from O(all reqs) into O(changed reqs). Ashby only returns the token once the last page is drained, which the param description states. list_job_postings gains includeUnpublishedJobPostings, plus the posting status field. Without status a caller cannot tell a returned draft from a published posting, which makes the flag useless. Writes (new operations) customField.setValue / setValues — the only way to annotate a job or req, since Ashby has no job notes and no job tags. Writing null clears a value, so the annotation is reversible. application.delete — requires candidatesDelete, a module permission separate from candidatesWrite. application.changeSource — corrects source attribution on programmatically created applications. candidate.anonymize — strips PII; the record itself remains, because Ashby exposes no candidate deletion endpoint. Bug fix found while testing against a real Ashby org ashbyErrorMessage rendered Ashby's documented errors: [{message, parameter}] shape as [object Object], hiding the real cause. That is the form a 403 for a missing module permission arrives in. Destructive-write safety null clears a custom field, so every write here requires explicit intent before it can destroy data. This matters because the block's required markers only cover the editor: on the agent path a model calls the tool directly, so tools.config.params never runs and validateRequiredParametersAfterMerge skips a param marked not-required. set_custom_field_value rejects an absent or blank fieldValue; an explicit null still clears. change_application_source requires unsetSource to clear, and rejects a source ID and an unset request together — preferring either one silently discards the other. Ashby has no "leave unchanged" mode, so setting and clearing are the only two intents and exactly one must be expressed. The editor cannot produce the pair: the Source ID field is conditioned off while the clear switch is on. set_custom_field_values rejects an empty array locally rather than relying on Ashby. The custom field value parser is deliberately narrow rather than a blanket JSON.parse, which corrupts real text: 1e999 becomes Infinity and serializes back out as null — a clear; long numeric ids lose precision past 2^53; prose starting with { turns into an object. Only the literal keywords, {/[/" prefixes, and exactly round-tripping numbers decode. On the sync cursor's name Ashby calls it syncToken. Surfacing it under that name renders it [REDACTED] in block output, because syncToken matches the /^.*token$/i deny-list in redaction.ts — and an incremental sync is unusable if the operator cannot read the cursor the next run needs. An earlier revision of this PR fixed that by exempting syncToken from redaction globally. That was the wrong trade: it would have stopped redacting that field name product-wide, in any current or future integration, across execution traces, block output, the console, and telemetry — and the sharp edge was this block's own Sync Token input, where an operator pasting an API key would have had it stored verbatim. redaction.ts is untouched by this PR. The output is named nextSyncCursor instead, which is what it actually is — an opaque resumption marker, the same class as the cursor and nextCursor fields the redactor already leaves alone. This connector already translates Ashby's wire vocabulary on the way out (limit→perPage, results→jobs). The wire name and the request param stay syncToken, matching Ashby's docs, and the input keeps being redacted, which is the protective behaviour. A test pins the invariant: syncToken is sensitive by name, nextSyncCursor and nextCursor are not. Test Coverage Ashby-surface tests went 4 → 142. Full suite: 25,129 passed, 41 skipped, 0 failures (1,875 files). Every commit typechecks independently. Verified live against a real Ashby production organization, and end-to-end through the workflow editor: The sync cursor is returned only on the last page (confirmed two ways: a 2-page walk and a perPage=1 walk), and replaying it returns a strictly smaller result set. A custom field value can be written and then cleared with null, confirmed by reading the object back both times. includeUnpublishedJobPostings returns a strict superset, with status reporting Published / Draft. 11 distinct real Ashby error payloads all render readably. Every one was [object Object] before this branch. A 17-block edge-case workflow exercised stale/garbage sync tokens, perPage bounds, all five fieldValue encodings, empty and single-element setValues, and the three permission/not-found error paths. apps/sim/tools/ashby/ashby.live.test.ts is committed but inert by default: ASHBY_LIVE=1 ASHBY_API_KEY=... bunx vitest run tools/ashby/ashby.live.test.ts Add ASHBY_LIVE_WRITES=1 for the write phase. Note that vitest.setup.ts stubs global fetch for every file in the app, so the live file restores the real implementation and asserts the restore worked — without that guard the whole suite silently passes against a mock. Review Greptile 5/5. One Cursor Bugbot finding — a source ID and an unset request could be supplied together and the body preferred the source ID, turning an intentional clear into a set — fixed by rejecting the pair rather than picking a winner, and by making the editor unable to produce it. A Codex prototype-pollution concern was investigated and refuted: the redactor builds a fresh object via Object.entries, and JSON.parse never invokes the __proto__ setter. Known gaps The API key available for testing lacked candidatesDelete, so delete_application and change_application_source have error-path-only live verification. Their success paths are covered by mocks. In particular change_application_source's explicit-null unset is proven against mocks but not against the live API. delete_application's { applicationId } response shape comes from Ashby's OpenAPI spec, not an observed live response, for the same reason. Eight other Ashby list_* tools still understate perPage as "(default 100)" when Ashby caps at 100 and silently truncates. Pre-existing; only list_jobs was corrected here to avoid widening scope. Five other Ashby list_* tools still expose a syncToken output, which is redacted for the reason described above. Pre-existing, and renaming them would break any workflow already chaining the value, so it is left for a separate change. candidate.anonymize's response is persisted to execution traces like any other block output. If the endpoint echoes the pre-anonymization record, log retention could outlive the erasure. That is a platform-level retention question, not specific to this diff. Evals No prompt-related files changed — evals skipped.

Open Graph Description: Summary Extends the Ashby connector so a scheduled job/req sync can run incrementally, and adds the write path needed to annotate reqs and retract applications. Reads list_jobs accepts Ashby's...

X Description: Summary Extends the Ashby connector so a scheduled job/req sync can run incrementally, and adds the write path needed to annotate reqs and retract applications. Reads list_jobs accepts Ashby&#...

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

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:57356db8-6b83-816c-a595-fdf92311a4d4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE84:C4B81:A81448:E7EE28:6AFB516D
html-safe-nonce6febf9563f21ad80f77782f854f38e423b57851f1ca0008fa3e3a82a710ce8f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTg0OkM0QjgxOkE4MTQ0ODpFN0VFMjg6NkFGQjUxNkQiLCJ2aXNpdG9yX2lkIjoiOTA0MTcxNTM2NjA3MzE2MDA0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb2db13f12b6b62e0039c6bc645c66945959acbd3bb36a347b3d4a86619d131f0
hovercard-subject-tagpull_request:4282778515
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/6703/files
twitter:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
og:image:altSummary Extends the Ashby connector so a scheduled job/req sync can run incrementally, and adds the write path needed to annotate reqs and retract applications. Reads list_jobs accepts Ashby's...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6703/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6703%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%2F6703%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/6703/files
Reloadhttps://github.com/simstudioai/sim/pull/6703/files
Reloadhttps://github.com/simstudioai/sim/pull/6703/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/ashby-sync-and-writeshttps://github.com/simstudioai/sim/tree/feat/ashby-sync-and-writes
Conversation 15 https://github.com/simstudioai/sim/pull/6703
Commits 7 https://github.com/simstudioai/sim/pull/6703/commits
Checks 31 https://github.com/simstudioai/sim/pull/6703/checks
Files changed https://github.com/simstudioai/sim/pull/6703/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6703/files
feat(ashby): incremental job sync, custom field writes, and application lifecycle ops https://github.com/simstudioai/sim/pull/6703/files#top
Show all changes 7 commits https://github.com/simstudioai/sim/pull/6703/files
ff584ef feat(tools): add incremental job sync and draft postings to Ashby reads mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/ff584efa56967c505580bfdf3a0634578b1a85f7
7f987ce fix(tools): render Ashby object-shaped API errors readably mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/7f987ce1a1b30dc3e18c1bf6397c5f629b66980a
98bab16 feat(tools): add Ashby custom field writes, delete, source, and anony… mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/98bab16243afff5e283501882b115714284d3b6a
f3c993a test(tools): cover the new Ashby request and response shapes mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/f3c993a228b3faec2031aed2d1d7cc6d106ee53f
4f52ff4 feat(blocks): expose the new Ashby operations in the block mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/4f52ff438436c2ce6f79d8ac1f2b8d9baae8bdb6
734a8b6 docs(ashby): document the new operations, permissions, and limitations mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/734a8b61f8bffccdd0b92c175aa8ec52fe153e3c
2deb0e1 fix(blocks): stop a stale create-path source id leaking into a source… mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6703/commits/2deb0e1f69dfb8e10a16595312d5f1082374bdf5
Clear filters https://github.com/simstudioai/sim/pull/6703/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6703/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6703/files
ashby.mdx https://github.com/simstudioai/sim/pull/6703/files#diff-0aaad6908bb87fd260aa03a6a619a10d9af4705cffbcc20567f7fa6f17b89f04
ashby.test.ts https://github.com/simstudioai/sim/pull/6703/files#diff-da577e95e831294ba5e5cf85db89fdfb5c5426b99013c48395a2e57979481c1c
ashby.ts https://github.com/simstudioai/sim/pull/6703/files#diff-5e438a0e2abe4b26ad7b6c44433e287f8e05ff886038924cee93d01a69e581af
integrations.json https://github.com/simstudioai/sim/pull/6703/files#diff-0c4cc916562765dac61bd44d1b984d95e44d7901c070e0a3f668474c684d92bd
anonymize_candidate.ts https://github.com/simstudioai/sim/pull/6703/files#diff-c1e2b0ee2592fd371053962b01313558af4f1e4ab8ea5ad0feab3c2bc57abdcf
ashby.live.test.ts https://github.com/simstudioai/sim/pull/6703/files#diff-119303be4582d8348c994d55d06d64cf6341569e4dea8835d2b34aba92fec87a
ashby.test.ts https://github.com/simstudioai/sim/pull/6703/files#diff-7516ce523d1ad1147772d64565bbcb9262e0653e22c55fcce242d51b30e933f1
change_application_source.ts https://github.com/simstudioai/sim/pull/6703/files#diff-5c675ce9f2a647c97044e5aae13199b0f505d78b7ded9e795e37953f85c45534
delete_application.ts https://github.com/simstudioai/sim/pull/6703/files#diff-de84fb934af8d06317ea0d5a871b8e4680774fdfeeed19a03c79df0f8b4d2b2d
index.ts https://github.com/simstudioai/sim/pull/6703/files#diff-9bfb56884bfef7ab68aaecb82643fcad7ff25405fcfdfee08b1607afacd0e595
list_job_postings.ts https://github.com/simstudioai/sim/pull/6703/files#diff-219b1c67b7b04ba3ed1d6448db9dc3cb4d3c919866b081a863ecbedcbac4fb05
list_jobs.ts https://github.com/simstudioai/sim/pull/6703/files#diff-c500dd237c66875222c540c6ea372cb00a912d9d08d4fdc28d0aecf81176eddc
set_custom_field_value.ts https://github.com/simstudioai/sim/pull/6703/files#diff-730176ea055a3fe9ab5bda8266e5d5d722e861bf1fbb7bba2bfa4eb7b8aace48
set_custom_field_values.ts https://github.com/simstudioai/sim/pull/6703/files#diff-5d49e36157cf1198cb482afc97fb4050ecba204dfd35f660fd1b9ca7da4866df
types.ts https://github.com/simstudioai/sim/pull/6703/files#diff-681d9d424e494a66026ef2d4e8caf42d42d22652218054db8a277567bde65d53
utils.test.ts https://github.com/simstudioai/sim/pull/6703/files#diff-b146ca1d8f7605e7286ffa2aa446c88fabba572a8be4439f497f3e593b5565e8
utils.ts https://github.com/simstudioai/sim/pull/6703/files#diff-f48d877ba8daa4ed7296e5ba812a887a6f531dea70f44865f0bb12d80fa8862d
tool-ids.ts https://github.com/simstudioai/sim/pull/6703/files#diff-fde8cbb4483aa4a8015ca3e576ab1c9b472d1c97c521fa67e81b469a5297bdfb
tool-metadata.ts https://github.com/simstudioai/sim/pull/6703/files#diff-3a953213cad2b14799015043b75c22cd4815397d3a43ccbf138816bedfdfccd7
tool-outputs.ts https://github.com/simstudioai/sim/pull/6703/files#diff-9fd709d7ce13d883503da15dae272e6c0a0a4fc25d7ec475f4ce6875c097b6aa
registry.ts https://github.com/simstudioai/sim/pull/6703/files#diff-a05e54887bf05477726b00df4183dd4a3fa0fd1f82b867bbf156e1b6a6d7e3fa
apps/docs/content/docs/en/integrations/ashby.mdxhttps://github.com/simstudioai/sim/pull/6703/files#diff-0aaad6908bb87fd260aa03a6a619a10d9af4705cffbcc20567f7fa6f17b89f04
View file https://github.com/simstudioai/sim/blob/2deb0e1f69dfb8e10a16595312d5f1082374bdf5/apps/docs/content/docs/en/integrations/ashby.mdx
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/6703/files
apps/sim/blocks/blocks/ashby.test.tshttps://github.com/simstudioai/sim/pull/6703/files#diff-da577e95e831294ba5e5cf85db89fdfb5c5426b99013c48395a2e57979481c1c
View file https://github.com/simstudioai/sim/blob/2deb0e1f69dfb8e10a16595312d5f1082374bdf5/apps/sim/blocks/blocks/ashby.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6703/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6703/files#diff-da577e95e831294ba5e5cf85db89fdfb5c5426b99013c48395a2e57979481c1c
https://github.com/simstudioai/sim/pull/6703/files#diff-da577e95e831294ba5e5cf85db89fdfb5c5426b99013c48395a2e57979481c1c
Please reload this pagehttps://github.com/simstudioai/sim/pull/6703/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6703/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.