borderless 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- borderless-0.1.0/LICENSE +21 -0
- borderless-0.1.0/MANIFEST.in +7 -0
- borderless-0.1.0/PKG-INFO +190 -0
- borderless-0.1.0/README.md +160 -0
- borderless-0.1.0/borderless/__init__.py +3 -0
- borderless-0.1.0/borderless/cli.py +320 -0
- borderless-0.1.0/borderless/cli_options.py +19 -0
- borderless-0.1.0/borderless/criteria.py +33 -0
- borderless-0.1.0/borderless/evaluator.py +602 -0
- borderless-0.1.0/borderless/intl_visas.py +275 -0
- borderless-0.1.0/borderless/llm_review.py +226 -0
- borderless-0.1.0/borderless/markdown_report.py +172 -0
- borderless-0.1.0/borderless/policy.py +30 -0
- borderless-0.1.0/borderless/profile_loader.py +175 -0
- borderless-0.1.0/borderless.egg-info/PKG-INFO +190 -0
- borderless-0.1.0/borderless.egg-info/SOURCES.txt +26 -0
- borderless-0.1.0/borderless.egg-info/dependency_links.txt +1 -0
- borderless-0.1.0/borderless.egg-info/entry_points.txt +3 -0
- borderless-0.1.0/borderless.egg-info/requires.txt +9 -0
- borderless-0.1.0/borderless.egg-info/top_level.txt +1 -0
- borderless-0.1.0/pyproject.toml +57 -0
- borderless-0.1.0/setup.cfg +4 -0
- borderless-0.1.0/tests/test_cli.py +52 -0
- borderless-0.1.0/tests/test_evaluator.py +212 -0
- borderless-0.1.0/tests/test_intl_visas.py +111 -0
- borderless-0.1.0/tests/test_llm_review.py +118 -0
- borderless-0.1.0/tests/test_markdown_report.py +17 -0
- borderless-0.1.0/tests/test_profile_loader.py +48 -0
borderless-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Deven Mahesh Mistry
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: borderless
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Evaluate profile evidence for US and international talent/skilled-migration visas
|
|
5
|
+
Author: Deven Mistry
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/deven367/borderless
|
|
8
|
+
Project-URL: Repository, https://github.com/deven367/borderless
|
|
9
|
+
Keywords: visa,immigration,eb1a,eb1b,niw,o1a,global-talent,cli
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: pyyaml
|
|
22
|
+
Requires-Dist: rich
|
|
23
|
+
Requires-Dist: click
|
|
24
|
+
Requires-Dist: openai
|
|
25
|
+
Requires-Dist: anthropic
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# borderless
|
|
32
|
+
|
|
33
|
+
A CLI that scores candidate profile evidence across US employment-based immigration categories (**EB-1A**, **EB-1B**, **EB2-NIW**, **O-1A**) and **15 international destinations (18 skilled-migration / talent pathways)**.
|
|
34
|
+
|
|
35
|
+
> **Disclaimer:** Ratings are directional evidence signals — **not filing readiness, legal eligibility, or approval predictions**. Final merits, international recognition, petition requirements, and country-specific rules require separate legal review. Optional `--review` output provides strategic context, not legal advice.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
uv venv
|
|
45
|
+
uv pip install -e ".[dev]"
|
|
46
|
+
|
|
47
|
+
uv run borderless -p profile.yaml # US + all international pathways
|
|
48
|
+
uv run borderless --country us # US only
|
|
49
|
+
uv run borderless --country fr # single country (aliases like dubai -> ae work)
|
|
50
|
+
uv run borderless --review --country fr # country-focused LLM review
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Markdown Reports & Weekly Automation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
uv run borderless-report -p profile.yaml -o reports/report.md
|
|
57
|
+
uv run borderless-report -p profile.yaml -o report.md --review --provider deepseek
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The GitHub Action (`.github/workflows/weekly-report.yml`) runs every **Monday at 13:00 UTC** via `uv run` and publishes dated reports + the latest snapshot to the `report` branch. Add `OPENROUTER_API_KEY` as a repository secret to enable LLM reviews in CI, or trigger manually via **Actions → Weekly Visa Report → Run workflow**.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## LLM Reviews (`--review`)
|
|
65
|
+
|
|
66
|
+
Both `borderless` and `borderless-report` accept `--provider` and `--model`. Each provider requires its own API key (OpenRouter and DeepSeek never fall back to `OPENAI_API_KEY`):
|
|
67
|
+
|
|
68
|
+
| Provider | Env Var | Default Model |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| `openrouter` *(default)* | `OPENROUTER_API_KEY` | `deepseek/deepseek-v4-flash` |
|
|
71
|
+
| `anthropic` | `ANTHROPIC_API_KEY` | `claude-sonnet-5` |
|
|
72
|
+
| `openai` | `OPENAI_API_KEY` | `gpt-5.3-chat-latest` |
|
|
73
|
+
| `deepseek` | `DEEPSEEK_API_KEY` | `deepseek-v4-flash` |
|
|
74
|
+
|
|
75
|
+
Reviews disable default thinking tokens on OpenRouter (`reasoning.enabled: false`), DeepSeek (`thinking.type: disabled`), and Anthropic (`thinking: disabled`) so reasoning does not exhaust the 4096-token output budget before producing final text (OpenAI requests omit these flags). Reasoning-only or blank responses raise errors rather than returning internal reasoning. Note that `--model` overrides targeting mandatory-reasoning models (e.g., `deepseek-reasoner` or o-series) may reject or ignore the disable flag depending on the provider.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## What It Evaluates
|
|
80
|
+
|
|
81
|
+
### United States
|
|
82
|
+
|
|
83
|
+
| Category | Type | Self-Petition | Structured Evidence Threshold |
|
|
84
|
+
| --- | --- | --- | --- |
|
|
85
|
+
| **EB-1A** | Green card | Yes | ≥3 of 10 criteria *(final merits unassessed)* |
|
|
86
|
+
| **EB-1B** | Green card | No (employer) | ≥2 of 6 criteria + 3 yrs experience + qualifying U.S. offer *(recognition unassessed)* |
|
|
87
|
+
| **EB2-NIW** | Green card | Yes | Completed EB-2 advanced degree + Dhanasar 3-prong signals |
|
|
88
|
+
| **O-1A** | Nonimmigrant | No (employer) | ≥3 of 8 applicable criteria *(sustained acclaim / totality unassessed)* |
|
|
89
|
+
|
|
90
|
+
**Visa availability** is tracked separately in `borderless/policy.py` as a dated Visa Bulletin snapshot (never inferred from nationality — chargeability normally follows `country_of_birth`, and cutoff dates are not wait-time forecasts). Always verify the current [State Department Visa Bulletin](https://travel.state.gov/content/travel/en/legal/visa-law0/visa-bulletin.html) and [USCIS filing-chart selection](https://www.uscis.gov/visabulletininfo).
|
|
91
|
+
|
|
92
|
+
### International Alternatives
|
|
93
|
+
|
|
94
|
+
Use `--country <code>` (or aliases such as `dubai`, `britain`, `holland`, `korea`, `usa`) to inspect a single country. Types reflect the **initial grant**, not later settlement:
|
|
95
|
+
|
|
96
|
+
| Code | Country | Pathway(s) | Initial Grant |
|
|
97
|
+
| --- | --- | --- | --- |
|
|
98
|
+
| `au` | Australia | [National Innovation (subclass 858)](https://immi.homeaffairs.gov.au/visas/getting-a-visa/visa-listing/national-innovation-visa-858) | Permanent *(EOI invitation + Form 1000 required)* |
|
|
99
|
+
| `nz` | New Zealand | Skilled Migrant / Green List | Permanent |
|
|
100
|
+
| `uk` | United Kingdom | Global Talent Visa | Temporary *(endorsement required)* |
|
|
101
|
+
| `ca` | Canada | Express Entry / Global Talent Stream | Permanent / Temporary |
|
|
102
|
+
| `de` | Germany | EU Blue Card / Opportunity Card | Temporary / Bridge |
|
|
103
|
+
| `nl` | Netherlands | Highly Skilled Migrant / Orientation Year | Temporary / Bridge |
|
|
104
|
+
| `fr` | France | Passeport Talent (Chercheur) / EU Blue Card | Temporary |
|
|
105
|
+
| `it` | Italy | EU Blue Card / Work Permit | Temporary |
|
|
106
|
+
| `gr` | Greece | EU Blue Card / Researcher Permit | Temporary |
|
|
107
|
+
| `ae` | UAE | Golden Visa (Scientists/Talents) / Employment | Temporary |
|
|
108
|
+
| `sg` | Singapore | Employment Pass / Tech.Pass | Temporary |
|
|
109
|
+
| `kr` | South Korea | E-7 Professional / F-2 Points | Temporary |
|
|
110
|
+
| `ch` | Switzerland | B Permit (Specialists) / L Permit | Temporary |
|
|
111
|
+
| `jp` | Japan | Highly Skilled Professional (HSP) / Engineer | Temporary |
|
|
112
|
+
| `mx` | Mexico | Temporary Resident / INM Work Permit | Temporary |
|
|
113
|
+
|
|
114
|
+
International scoring uses completed degrees and explicitly `peer_reviewed: true` publications; Strong fit is heuristic and does not establish invitation, endorsement, or legal eligibility.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Profile Schema (`profile.yaml`)
|
|
119
|
+
|
|
120
|
+
`profile.yaml` is validated on load without silently repairing or overwriting supplied values. Invalid types/dates report field paths; unknown top-level keys and metric mismatches emit warnings.
|
|
121
|
+
|
|
122
|
+
```yaml
|
|
123
|
+
name: Jane Doe
|
|
124
|
+
nationality: Indian
|
|
125
|
+
country_of_birth: India # optional; never inferred from nationality
|
|
126
|
+
field: "Machine Learning, NLP"
|
|
127
|
+
proposed_endeavor: "Advancing safe AI through..."
|
|
128
|
+
|
|
129
|
+
education:
|
|
130
|
+
- id: phd_cs
|
|
131
|
+
degree: Doctor of Philosophy in Computer Science
|
|
132
|
+
institution: Stanford University
|
|
133
|
+
year: 2027
|
|
134
|
+
status: expected # completed | expected | in_progress
|
|
135
|
+
|
|
136
|
+
publications:
|
|
137
|
+
- title: "My Paper"
|
|
138
|
+
venue: NeurIPS 2025
|
|
139
|
+
peer_reviewed: true
|
|
140
|
+
first_author: true
|
|
141
|
+
citations: 12
|
|
142
|
+
|
|
143
|
+
reviewing:
|
|
144
|
+
- venue: ICML
|
|
145
|
+
year: 2026
|
|
146
|
+
role: reviewer
|
|
147
|
+
tier: "A*"
|
|
148
|
+
|
|
149
|
+
metrics:
|
|
150
|
+
total_citations: 45
|
|
151
|
+
h_index: 4
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
<details>
|
|
155
|
+
<summary><strong>Detailed scoring & validation rules (education, experience, EB-1B offers, NIW waiver, salary, awards, Python API)</strong></summary>
|
|
156
|
+
|
|
157
|
+
- **Degree completion:** `education.status` accepts `completed`, `expected`, or `in_progress`. Future years never count as completed; past years imply completion unless marked `expected`/`in_progress`; current-year or undated entries require `status: completed`. Degrees never add automatic research years.
|
|
158
|
+
- **EB-1B research/teaching experience (`work_experience`):** `start`/`end` accept `YYYY`, `YYYY-MM`, `YYYY-MM-DD`, or `end: present`. Completed qualifying months are capped at today, overlapping intervals are merged, and coarse dates use conservative bounds. Graduate roles require an `education_id` linked to a **completed advanced degree** plus `graduate_experience_evidence` (document references for outstanding research or full-responsibility teaching — [8 CFR 204.5(i)(3)(ii)](https://www.law.cornell.edu/cfr/text/8/204.5)). Set `graduate_experience: true/false` to override title-based detection.
|
|
159
|
+
- **EB-1B job offer (`eb1b_job_offer`):** Requires `employer`, `country: US`, `position_type` (`tenured`, `tenure_track`, `permanent_research`), `employer_type` (`university`, `higher_education`, `private_research`), and `offer_letter`. Private research employers also need `full_time_researchers >= 3` and `research_accomplishments`. Government research agencies do not automatically qualify ([USCIS Policy Manual Vol. 6, Part F, Ch. 3](https://www.uscis.gov/policy-manual/volume-6-part-f-chapter-3#S-C)).
|
|
160
|
+
- **EB-2 base & NIW waiver (`niw_waiver`):** The structured EB-2 base check verifies completed advanced degrees only (bachelor's + 5 years progressive experience or exceptional ability remain separately unassessed). NIW Prong 3 requires both `niw_waiver.argument` and `niw_waiver.evidence` for a `Moderate` signal; otherwise it stays `Weak`.
|
|
161
|
+
- **Comparative salary (`salary`):** Requires `amount` plus `percentile` (0–100), `comparison_source`, `comparison_field`, and `comparison_location` (heuristic: `≥95` Strong, `≥90` Moderate, lower/incomplete Weak). Raw salary alone never establishes the criterion.
|
|
162
|
+
- **Leading/critical role:** Requires a listed `leading_roles` entry (unless `critical_role: false`) or a `work_experience` entry with `critical_role: true`, paired with `distinguished: true`; employer reputation alone is insufficient.
|
|
163
|
+
- **Awards & hackathons:** Combines `awards` and `hackathons` (2+ national/international → Strong; 1 national/international or 2+ other → Moderate). Scope counts can inflate hackathon placements and do **not** establish a recognized prize for excellence without documentary review.
|
|
164
|
+
- **Metric coverage:** `metrics` are source aggregates and are never overwritten when they differ from the listed `publications`; discrepancies surface as warnings.
|
|
165
|
+
- **Python API:** `EvaluationReport` exposes `eb1a_threshold_met`, `eb1b_prerequisites_met`, and `niw_signals_supported` (legacy `*_ready` aliases were removed).
|
|
166
|
+
|
|
167
|
+
</details>
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Academic CV & Evidence Workflow
|
|
172
|
+
|
|
173
|
+
- **`cv/cv.tex` → `cv/cv.pdf`** — Full-detail LaTeX academic CV for attorney evaluations, petitions, and research applications. Rebuild locally with:
|
|
174
|
+
```bash
|
|
175
|
+
cd cv && latexmk -pdf cv.tex
|
|
176
|
+
```
|
|
177
|
+
- **`evidence/tracker.md`** — Criterion-by-criterion checklist tracking verified facts, gaps, and recommender targets.
|
|
178
|
+
- **`evidence/raw/`** *(gitignored)* — Local-only folder for sensitive documentary exhibits (diplomas, transcripts, reviewer confirmation emails, offer letters, certificates, Google Scholar exports).
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Tests
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
.venv/bin/python -m pytest tests/ -v
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## License
|
|
189
|
+
|
|
190
|
+
MIT
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# borderless
|
|
2
|
+
|
|
3
|
+
A CLI that scores candidate profile evidence across US employment-based immigration categories (**EB-1A**, **EB-1B**, **EB2-NIW**, **O-1A**) and **15 international destinations (18 skilled-migration / talent pathways)**.
|
|
4
|
+
|
|
5
|
+
> **Disclaimer:** Ratings are directional evidence signals — **not filing readiness, legal eligibility, or approval predictions**. Final merits, international recognition, petition requirements, and country-specific rules require separate legal review. Optional `--review` output provides strategic context, not legal advice.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
uv venv
|
|
15
|
+
uv pip install -e ".[dev]"
|
|
16
|
+
|
|
17
|
+
uv run borderless -p profile.yaml # US + all international pathways
|
|
18
|
+
uv run borderless --country us # US only
|
|
19
|
+
uv run borderless --country fr # single country (aliases like dubai -> ae work)
|
|
20
|
+
uv run borderless --review --country fr # country-focused LLM review
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Markdown Reports & Weekly Automation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uv run borderless-report -p profile.yaml -o reports/report.md
|
|
27
|
+
uv run borderless-report -p profile.yaml -o report.md --review --provider deepseek
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The GitHub Action (`.github/workflows/weekly-report.yml`) runs every **Monday at 13:00 UTC** via `uv run` and publishes dated reports + the latest snapshot to the `report` branch. Add `OPENROUTER_API_KEY` as a repository secret to enable LLM reviews in CI, or trigger manually via **Actions → Weekly Visa Report → Run workflow**.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## LLM Reviews (`--review`)
|
|
35
|
+
|
|
36
|
+
Both `borderless` and `borderless-report` accept `--provider` and `--model`. Each provider requires its own API key (OpenRouter and DeepSeek never fall back to `OPENAI_API_KEY`):
|
|
37
|
+
|
|
38
|
+
| Provider | Env Var | Default Model |
|
|
39
|
+
| --- | --- | --- |
|
|
40
|
+
| `openrouter` *(default)* | `OPENROUTER_API_KEY` | `deepseek/deepseek-v4-flash` |
|
|
41
|
+
| `anthropic` | `ANTHROPIC_API_KEY` | `claude-sonnet-5` |
|
|
42
|
+
| `openai` | `OPENAI_API_KEY` | `gpt-5.3-chat-latest` |
|
|
43
|
+
| `deepseek` | `DEEPSEEK_API_KEY` | `deepseek-v4-flash` |
|
|
44
|
+
|
|
45
|
+
Reviews disable default thinking tokens on OpenRouter (`reasoning.enabled: false`), DeepSeek (`thinking.type: disabled`), and Anthropic (`thinking: disabled`) so reasoning does not exhaust the 4096-token output budget before producing final text (OpenAI requests omit these flags). Reasoning-only or blank responses raise errors rather than returning internal reasoning. Note that `--model` overrides targeting mandatory-reasoning models (e.g., `deepseek-reasoner` or o-series) may reject or ignore the disable flag depending on the provider.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## What It Evaluates
|
|
50
|
+
|
|
51
|
+
### United States
|
|
52
|
+
|
|
53
|
+
| Category | Type | Self-Petition | Structured Evidence Threshold |
|
|
54
|
+
| --- | --- | --- | --- |
|
|
55
|
+
| **EB-1A** | Green card | Yes | ≥3 of 10 criteria *(final merits unassessed)* |
|
|
56
|
+
| **EB-1B** | Green card | No (employer) | ≥2 of 6 criteria + 3 yrs experience + qualifying U.S. offer *(recognition unassessed)* |
|
|
57
|
+
| **EB2-NIW** | Green card | Yes | Completed EB-2 advanced degree + Dhanasar 3-prong signals |
|
|
58
|
+
| **O-1A** | Nonimmigrant | No (employer) | ≥3 of 8 applicable criteria *(sustained acclaim / totality unassessed)* |
|
|
59
|
+
|
|
60
|
+
**Visa availability** is tracked separately in `borderless/policy.py` as a dated Visa Bulletin snapshot (never inferred from nationality — chargeability normally follows `country_of_birth`, and cutoff dates are not wait-time forecasts). Always verify the current [State Department Visa Bulletin](https://travel.state.gov/content/travel/en/legal/visa-law0/visa-bulletin.html) and [USCIS filing-chart selection](https://www.uscis.gov/visabulletininfo).
|
|
61
|
+
|
|
62
|
+
### International Alternatives
|
|
63
|
+
|
|
64
|
+
Use `--country <code>` (or aliases such as `dubai`, `britain`, `holland`, `korea`, `usa`) to inspect a single country. Types reflect the **initial grant**, not later settlement:
|
|
65
|
+
|
|
66
|
+
| Code | Country | Pathway(s) | Initial Grant |
|
|
67
|
+
| --- | --- | --- | --- |
|
|
68
|
+
| `au` | Australia | [National Innovation (subclass 858)](https://immi.homeaffairs.gov.au/visas/getting-a-visa/visa-listing/national-innovation-visa-858) | Permanent *(EOI invitation + Form 1000 required)* |
|
|
69
|
+
| `nz` | New Zealand | Skilled Migrant / Green List | Permanent |
|
|
70
|
+
| `uk` | United Kingdom | Global Talent Visa | Temporary *(endorsement required)* |
|
|
71
|
+
| `ca` | Canada | Express Entry / Global Talent Stream | Permanent / Temporary |
|
|
72
|
+
| `de` | Germany | EU Blue Card / Opportunity Card | Temporary / Bridge |
|
|
73
|
+
| `nl` | Netherlands | Highly Skilled Migrant / Orientation Year | Temporary / Bridge |
|
|
74
|
+
| `fr` | France | Passeport Talent (Chercheur) / EU Blue Card | Temporary |
|
|
75
|
+
| `it` | Italy | EU Blue Card / Work Permit | Temporary |
|
|
76
|
+
| `gr` | Greece | EU Blue Card / Researcher Permit | Temporary |
|
|
77
|
+
| `ae` | UAE | Golden Visa (Scientists/Talents) / Employment | Temporary |
|
|
78
|
+
| `sg` | Singapore | Employment Pass / Tech.Pass | Temporary |
|
|
79
|
+
| `kr` | South Korea | E-7 Professional / F-2 Points | Temporary |
|
|
80
|
+
| `ch` | Switzerland | B Permit (Specialists) / L Permit | Temporary |
|
|
81
|
+
| `jp` | Japan | Highly Skilled Professional (HSP) / Engineer | Temporary |
|
|
82
|
+
| `mx` | Mexico | Temporary Resident / INM Work Permit | Temporary |
|
|
83
|
+
|
|
84
|
+
International scoring uses completed degrees and explicitly `peer_reviewed: true` publications; Strong fit is heuristic and does not establish invitation, endorsement, or legal eligibility.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Profile Schema (`profile.yaml`)
|
|
89
|
+
|
|
90
|
+
`profile.yaml` is validated on load without silently repairing or overwriting supplied values. Invalid types/dates report field paths; unknown top-level keys and metric mismatches emit warnings.
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
name: Jane Doe
|
|
94
|
+
nationality: Indian
|
|
95
|
+
country_of_birth: India # optional; never inferred from nationality
|
|
96
|
+
field: "Machine Learning, NLP"
|
|
97
|
+
proposed_endeavor: "Advancing safe AI through..."
|
|
98
|
+
|
|
99
|
+
education:
|
|
100
|
+
- id: phd_cs
|
|
101
|
+
degree: Doctor of Philosophy in Computer Science
|
|
102
|
+
institution: Stanford University
|
|
103
|
+
year: 2027
|
|
104
|
+
status: expected # completed | expected | in_progress
|
|
105
|
+
|
|
106
|
+
publications:
|
|
107
|
+
- title: "My Paper"
|
|
108
|
+
venue: NeurIPS 2025
|
|
109
|
+
peer_reviewed: true
|
|
110
|
+
first_author: true
|
|
111
|
+
citations: 12
|
|
112
|
+
|
|
113
|
+
reviewing:
|
|
114
|
+
- venue: ICML
|
|
115
|
+
year: 2026
|
|
116
|
+
role: reviewer
|
|
117
|
+
tier: "A*"
|
|
118
|
+
|
|
119
|
+
metrics:
|
|
120
|
+
total_citations: 45
|
|
121
|
+
h_index: 4
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
<details>
|
|
125
|
+
<summary><strong>Detailed scoring & validation rules (education, experience, EB-1B offers, NIW waiver, salary, awards, Python API)</strong></summary>
|
|
126
|
+
|
|
127
|
+
- **Degree completion:** `education.status` accepts `completed`, `expected`, or `in_progress`. Future years never count as completed; past years imply completion unless marked `expected`/`in_progress`; current-year or undated entries require `status: completed`. Degrees never add automatic research years.
|
|
128
|
+
- **EB-1B research/teaching experience (`work_experience`):** `start`/`end` accept `YYYY`, `YYYY-MM`, `YYYY-MM-DD`, or `end: present`. Completed qualifying months are capped at today, overlapping intervals are merged, and coarse dates use conservative bounds. Graduate roles require an `education_id` linked to a **completed advanced degree** plus `graduate_experience_evidence` (document references for outstanding research or full-responsibility teaching — [8 CFR 204.5(i)(3)(ii)](https://www.law.cornell.edu/cfr/text/8/204.5)). Set `graduate_experience: true/false` to override title-based detection.
|
|
129
|
+
- **EB-1B job offer (`eb1b_job_offer`):** Requires `employer`, `country: US`, `position_type` (`tenured`, `tenure_track`, `permanent_research`), `employer_type` (`university`, `higher_education`, `private_research`), and `offer_letter`. Private research employers also need `full_time_researchers >= 3` and `research_accomplishments`. Government research agencies do not automatically qualify ([USCIS Policy Manual Vol. 6, Part F, Ch. 3](https://www.uscis.gov/policy-manual/volume-6-part-f-chapter-3#S-C)).
|
|
130
|
+
- **EB-2 base & NIW waiver (`niw_waiver`):** The structured EB-2 base check verifies completed advanced degrees only (bachelor's + 5 years progressive experience or exceptional ability remain separately unassessed). NIW Prong 3 requires both `niw_waiver.argument` and `niw_waiver.evidence` for a `Moderate` signal; otherwise it stays `Weak`.
|
|
131
|
+
- **Comparative salary (`salary`):** Requires `amount` plus `percentile` (0–100), `comparison_source`, `comparison_field`, and `comparison_location` (heuristic: `≥95` Strong, `≥90` Moderate, lower/incomplete Weak). Raw salary alone never establishes the criterion.
|
|
132
|
+
- **Leading/critical role:** Requires a listed `leading_roles` entry (unless `critical_role: false`) or a `work_experience` entry with `critical_role: true`, paired with `distinguished: true`; employer reputation alone is insufficient.
|
|
133
|
+
- **Awards & hackathons:** Combines `awards` and `hackathons` (2+ national/international → Strong; 1 national/international or 2+ other → Moderate). Scope counts can inflate hackathon placements and do **not** establish a recognized prize for excellence without documentary review.
|
|
134
|
+
- **Metric coverage:** `metrics` are source aggregates and are never overwritten when they differ from the listed `publications`; discrepancies surface as warnings.
|
|
135
|
+
- **Python API:** `EvaluationReport` exposes `eb1a_threshold_met`, `eb1b_prerequisites_met`, and `niw_signals_supported` (legacy `*_ready` aliases were removed).
|
|
136
|
+
|
|
137
|
+
</details>
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Academic CV & Evidence Workflow
|
|
142
|
+
|
|
143
|
+
- **`cv/cv.tex` → `cv/cv.pdf`** — Full-detail LaTeX academic CV for attorney evaluations, petitions, and research applications. Rebuild locally with:
|
|
144
|
+
```bash
|
|
145
|
+
cd cv && latexmk -pdf cv.tex
|
|
146
|
+
```
|
|
147
|
+
- **`evidence/tracker.md`** — Criterion-by-criterion checklist tracking verified facts, gaps, and recommender targets.
|
|
148
|
+
- **`evidence/raw/`** *(gitignored)* — Local-only folder for sensitive documentary exhibits (diplomas, transcripts, reviewer confirmation emails, offer letters, certificates, Google Scholar exports).
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Tests
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
.venv/bin/python -m pytest tests/ -v
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## License
|
|
159
|
+
|
|
160
|
+
MIT
|