remote_policy can be published but never filtered or read from search results #14
Replies: 1 comment
|
You're right, this was a gap rather than a deliberate simplification. The point that convinced me is the one you made: the search item already carries skills_required, baseSalary, employmentType, urgency, and fit_score, so it's clearly not restricted to identity fields. remote_policy being left out was an oversight, and remote preference is too common a query to make agents pay an N+1 get_job_detail for it. Fixed both halves, both optional and backward-compatible:
Made it an array on the input so an agent can ask for more than one policy at once, e.g. ["hybrid", "remote"]. Merged in #26 Thanks for writing it up with the coverage figures, that's exactly the kind of report that makes a gap easy to act on. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Implementing an OJCP provider, we ran into an asymmetry in the remote vocabulary that looks unintentional — asking here in case the simplification is deliberate.
The four-value vocabulary is defined once and usable almost nowhere:
job-posting.json→get_job_detailremote_policy:on_site/hybrid/remote/flexibleresponses/search-jobs.jsontools/search-jobs-input.jsonlocation.remote_ok: booleancandidate-context.jsonlocation_preference.remote_ok: booleanSo an agent can't ask for hybrid roles — the filter is boolean — and can't sort them out of the results either, because the field isn't in the search item. The only way to learn that a posting is
hybridis to callget_job_detailon each result in turn. "Show me hybrid roles near me" turns one search into N+1 calls, and remote preference is one of the most common things a candidate actually asks about.What makes it look accidental rather than a deliberate payload-size decision: the search item already carries
skills_required,baseSalary,employmentType,urgencyandfit_score. It isn't restricted to identity fields — it already includes the signals an agent ranks on.remote_policyseems to be the one that got left out.Schema extensibility means a provider can include it anyway (we do), but an agent can't rely on it, which is what a standard vocabulary is for.
Two additions would close it, both backward-compatible and neither breaking existing consumers:
remote_policyto the job object inresponses/search-jobs.json— same enum, optional.remote_policyas a filter accepting the same four values, alongside the existingremote_okrather than replacing it.remote_ok: truestays meaningful as remote or flexible.Happy to open a PR if this reads as a gap rather than an intentional simplification.
All reactions