Skip to content

feat(global): add oraclecloud-search - #70

Open
lucacome wants to merge 1 commit into
ai-job-search-dev:mainfrom
lucacome:feat/oracle
Open

lucacome wants to merge 1 commit into
ai-job-search-dev:mainfrom
lucacome:feat/oracle

Conversation

@lucacome

@lucacome lucacome commented Nov 26, 2026 •

Copy link
Copy Markdown

What changed and why

Adds a self-contained portal for employers whose careers site runs on Oracle
Recruiting Cloud (ORC), the candidate-experience front end of Oracle Fusion
Cloud HCM. ORC has no global index, so the CLI takes one employer's careers URL
or <host>/[<lang>/]<site> and searches that board through the public
recruitingCEJobRequisitions API; detail reads one posting through
recruitingCEJobRequisitionDetails. This covers large ORC tenants such as
JPMorgan Chase and Oracle's own board with the repo's standard search/detail
contract.

Portal

The five checks

  • The contract. search (--format json|table|plain) and detail
    (--format json|plain) are implemented; errors are written to stderr as
    JSON with exit code 1; 429/5xx are retried with exponential backoff;
    runtime dependencies are empty; 68 network-free tests cover parsing,
    URL validation, filtering, retry/backoff and CLI errors. SKILL.md has
    the required Query syntax: line under the search command.
  • A safety pass. No install or lifecycle scripts, no
    trustedDependencies, no bunfig.toml or .npmrc, no environment or
    file reads, and the only requests are to the declared ORC host's
    /hcmRestApi/ endpoints.
  • Honest scoping. The personal-use note is in SKILL.md. Nothing is
    metered and no API key is needed, so the skill ships enabled: true.
  • robots.txt and terms respected. The CLI never crawls careers pages.
    It uses only the public REST endpoints the employer's own careers site
    calls. Caveat: robots.txt is per tenant and some hosts answer it with a
    WAF 403, so it could not be verified for every board. Oracle's REST API
    reference also labels the Recruiting CE endpoints as "only for Oracle
    internal use"; that is a terms caveat, and the skill is documented as
    personal-use only. No browser impersonation or block circumvention is
    used.
  • Search only. The portal reads postings and never fills in or submits
    applications.

Ownership

  • /portals/global/oraclecloud-search/ @lucacome is in
    .github/CODEOWNERS, and oraclecloud-search is unique across the repo.

Deviations from the contract

No contract-shape deviations. Board-specific limits:

  • --location is a client-side filter over the fetched page; ORC's free-text
    location finder did not scope results on the tested tenants, and location
    facet ids are opaque.
  • --jobage is sent to the board as postingStartDate and also applied to the
    returned page.
  • --location-id <id> is an optional numeric passthrough for tenants that
    require one to scope results (the upstream provider names BNY Mellon and
    American Express).
  • --query rejects commas, semicolons and control characters because they are
    the separators of ORC's finder grammar.
  • detail accepts a public posting URL only; the URL carries the host,
    language and site. This matches workday-search.
  • Branded ORC hosts on an employer's own domain (for example
    enterpriseplatform.dell.com) are not supported; the host pin covers
    Oracle's pod family only.
  • robots.txt was not verifiable on hosts that answer 403; see the caveat
    above. The CLI stays on the REST endpoints and does not work around it.

Verification

Ran in portals/global/oraclecloud-search/cli/:

  • bun install
  • bun run typecheck — pass
  • bun test — 68 pass, 0 fail (network-free; CLI tests preload the no-network
    stub)
  • python3 tools/security_guards.py — pass
  • Manual live checks, not replayed in CI:
    • JPMorgan Chase: search -q "software engineer" returned real postings;
      detail returned the full description and multi-location string.
    • Oracle's own ORC tenant: search -q "engineer" and detail returned real
      postings.
    • --location-id 300000020694566 scoped the JPMorgan Chase board from 6,801
      to 844 results.
    • --jobage 7 scoped JPMorgan Chase to 1,103 results and Oracle's own tenant
      to 325; the returned dates were within the window.
    • recruitingCESites was checked on both tenants; the list includes backups
      and retired sites, so it is documented but not exposed as a board chooser.
    • An unknown detail id returns 404 on the direct path; the finder form
      returns 200 with an empty items array (documented in
      url-reference.md).

Summary by cubic

Adds a self-contained portal for searching any employer's Oracle Recruiting Cloud (ORC) careers site, which has no global index. The CLI takes one board URL, searches through the public recruitingCEJobRequisitions REST API, and reads single postings via detail. No authentication or runtime dependencies, with network-free tests and a CODEOWNERS entry.

Limits

  • --jobage is sent to the board as postingStartDate and also applied to the returned page.
  • --location is a client-side filter over the fetched page because ORC exposes location as opaque per-board facet ids.
  • --location-id is an optional numeric passthrough for tenants that require one to scope results.
  • --query rejects commas, semicolons, and control characters, which are separators in ORC's finder grammar.
  • detail accepts only a public posting URL; branded ORC hosts like enterpriseplatform.dell.com are not supported.
  • --location input is trimmed to remove leading and trailing whitespace.

Written for commit c8c2cb8. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 18 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 issues found across 6 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="portals/global/oraclecloud-search/cli/README.md">

<violation number="1" location="portals/global/oraclecloud-search/cli/README.md:89">
P3: The finder syntax example still omits the `postingStartDate` segment, so the README describes `--jobage` as an upstream filter while showing an incomplete request shape. Add `[,postingStartDate=<date>]` to that example.</violation>
</file>

<file name="portals/global/oraclecloud-search/cli/src/commands/search.ts">

<violation number="1" location="portals/global/oraclecloud-search/cli/src/commands/search.ts:198">
P2: Capture one timestamp for the search and pass it to both `jobageCutoff` and `filterByJobage`; otherwise a slow request spanning UTC midnight can cause valid postings from the cutoff day to disappear.</violation>
</file>

<file name="portals/global/oraclecloud-search/url-reference.md">

<violation number="1" location="portals/global/oraclecloud-search/url-reference.md:11">
P3: This Oracle link is specifically documented as a preview-mode detail endpoint, not a generic detail endpoint. Label it as preview mode so readers do not confuse it with the direct path described below.</violation>

<violation number="2" location="portals/global/oraclecloud-search/url-reference.md:63">
P3: This request can return only the first 50 sites, so it does not guarantee every tenant site. Say it returns up to 50 items and document following `offset`/`hasMore` when enumerating the collection.</violation>
</file>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant