Repository navigation
RFC: How scanning works today, and where the pieces don't line up #7425
Replies: 4 comments 3 replies
|
Thanks @technomensch: this is a careful map, and keeping what you saw in use apart from what you read in the code makes it easy to check. |
|
Fair question, @technomensch. Today it is item by item: each mismatch that turns up gets its own issue, and #2369 holds the part where constants copied into Your map is the closest thing to a plan for that review, so the most useful next step is to make it pickable: one issue per row where the CLI and the web disagree, each linking back here. Small, separate issues are what contributors pick up, and they keep the on-purpose differences (which we'll mark as such) apart from the real gaps. |
|
Thanks @technomensch, the time you put into this shows, and the core finding holds: Explore, scheduled scans and the CLI don't all run the same script. A first pass against current
We'll go through the remaining paths the same way and note corrections in this thread. If you can attach the |
|
Thanks for the source file, @technomensch. Corrections from the remaining paths will go on that |

Uh oh!
There was an error while loading. Please reload this page.
About this RFC
I come from knowledge management, documentation and process analysis, not software development. I have used career-ops a lot for my own job search, and I kept running into places where the parts do not fit together. I used Claude to research the code and fill gaps in my knowledge.
This RFC is not a proposal for code, architecture changes or an implementation plan. I want maintainers and contributors to:
I am happy to help with testing, review and documentation.
What comes from me, and what needs checking
Note
web/AGENTS.mdsends web design proposals to Discussion #156. I posted this as an RFC because #6494 and #5140 set that precedent. I will move it if you prefer.The short version
You can start a scan from the Explore WebGUI screen, a scheduled scan, or the CLI. They look like one system. They are not.
portals.yml.So where you start decides what gets searched, what gets ignored, and what gets saved. You cannot tell this from the screens.
No code goes with this RFC. I am asking for direction first.
1. What exists today
The three entry points
The two scan scripts
scan-ats-full.mjssearches public company lists from nine job-board systems. It does not read your savedtracked_companiesorjob_boards. It loads no plugins. The web screens offer only four of the nine (Greenhouse, Lever, Ashby, Workday).scan.mjssearches the companies and boards you saved inportals.yml. It is the only scan that loads provider plugins.Some code is shared:
scan-ats-full.mjsborrows its filter matching and pipeline writer fromscan.mjs.The web screens
Explore
portals.ymlwhen the page opens: roles to find, roles to exclude, and four location lists.portals.ymlis dropped for that search.Scheduled scans
scan-ats-full.mjs. It does not include your saved companies.scan.mjs, so it reads the lists inportals.yml.portals.ymland swaps in the schedule's own filters. A blank "roles to find" falls back to the file. A blank "roles to exclude" or location list means empty.The CLI
node scan.mjsandnode scan-ats-full.mjsreadportals.ymllive and apply the full syntax./career-ops scanis the AI agent's scan mode. It runsscan.mjsfirst, then adds Playwright, ATS APIs and WebSearch. Only thescan.mjsstep is mapped here.node plugins.mjs run <plugin>runs ingest and search plugins. Only the CLI can do this. The web UI has no plugin page.data/pipeline.mdanddata/scan-history.tsvright away.Settings that only one path uses
Neither script reads
seniority_boostorsearch_queries. The AI agent's scan mode does. Explore ignorestitle_filter_full,title_filter_overrides,domain_filter,content_filterand the optional filters, even if the file sets them.How filter entries are handled
Finding and saving
portals.yml/api/portalsroute was built for onboarding. It changes onlytitle_filter.positiveandlocation_filter.allow, and keeps comments. It writes a timestamped.bakfirst. It also keeps at most 24 roles. Reusing it as is for "Save as defaults" would cut the shipped file's 37 roles to 24. Nothing offers a restore.Seeing what happened
scan.mjslogs rejected postings with a reason and writesdata/scan-runs.tsv. You can only read those from the terminal.2. The goal everything shares
All of these are meant to work together. They read
portals.yml, run scans, and put results into one pipeline.portals.ymlis meant to be the source of truth for filters and companies. Today the web copies it, changes it, and drops parts of it before it reaches a script.3. User stories
Each story is something I ran into, or would expect to work.
portals.ymland the web UIPlugins
4. The crossroads
Right now there are several engines presenting themselves as one system. To move forward, the project needs to make some deliberate choices. Three questions come first.
Question 1: One engine or two?
Do we merge into one shared scan script, or keep two on purpose (public lists vs. your saved list)?
Question 2: What is Explore for?
Is Explore a limited, ad-hoc search of public boards? Or is it meant to be a full view of everything in
portals.yml?Question 3: Should plugins reach the web?
Should the web UI manage and show plugins, or should plugins stay a CLI feature? This one is covered in the #1335 comment (US-15 to US-18). I list it here because the answer to Question 1 affects it.
5. Smaller questions
These matter once the big three are answered.
title_filter,location_filterandsearch_querieswith a check and a diff? Richer boxes per list? Or neither? (US-12)scan-runs.tsv? (US-14)portals.yml, or show as blank with a warning? (US-04)seniority_boostandsearch_queriestoo? (US-11)Related work
#6494 (shared write boundary for web routes), #5140 (a Settings page control), #1147 and #1516 (chip paste splitting), #2369 and #3102 (web copies of core logic drifting), #1321 and #1335 (the plugin layer), #4081 (review-before-write for config), #4201 (streaming results into Explore), #5423 and #5431 (the China preset added a second source to Explore through
scan.mjs).Method and limits
/career-ops scansteps afterscan.mjs, Explore's "AI search" mode, and Explore's "China employers" option.templates/portals.example.yml. Itslocation_filteris a commented-out example.scan.mjsandscan-ats-full.mjsonly.All reactions