[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACB55GGWPTWFKM3BVQS4W5":3,"skill-same:01M6ACB55GGWPTWFKM3BVQS4W5":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":53,"linkOnly":54,"markdownContent":55,"markdownBody":56,"frontMatter":57,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":17,"updatedAt":67,"install":68,"resources":81},"01M6ACB55GGWPTWFKM3BVQS4W5","upgrade-fab-provider","FAB Provider 依赖升级","Upgrade the pinned Flask-AppBuilder (FAB) dependency in the Apache Airflow FAB provider (`providers\u002Ffab\u002F`). Bumps the exact `flask-appbuilder==` pin and its mirror constant, regenerates `uv.lock`, drives the `test_fab_alignment.py` drift tripwire, reviews the vendored security-manager `override.py` against the new upstream FAB, and conditionally re-vendors static assets \u002F DB migrations. Use when asked to \"upgrade FAB\", \"bump flask-appbuilder\", or move the FAB provider to a newer Flask-AppBuilder release.","升级 Apache Airflow FAB provider（`providers\u002Ffab\u002F`）中固定的 Flask-AppBuilder（FAB）依赖。升级精确的 `flask-appbuilder==` 版本锁定及其镜像常量，重新生成 `uv.lock`，驱动 `test_fab_alignment.py` 漂移检测触发器（drift tripwire），对照新的上游 FAB 审查 vendored 的 security-manager `override.py`，并有条件地重新 vendor 静态资源 \u002F 数据库迁移。当被要求“upgrade FAB”“bump flask-appbuilder”或将 FAB provider 升级到更新的 Flask-AppBuilder 版本时使用。","apache\u002Fairflow","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACADDFF6RHG1DBAJXFG7E5",47479,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupgrade-fab-provider\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,10,50,51,52],"upgrade fab provider","upgrade","provider","alignment","new","when","static","lock","reviews","re","move","db","drift","security","uv","bump","dependency","tripwire","apache airflow","airflow","release","test","2026-11-10 10:12:30",false,"---\nname: upgrade-fab-provider\ndescription: >\n  Upgrade the pinned Flask-AppBuilder (FAB) dependency in the Apache Airflow\n  FAB provider (`providers\u002Ffab\u002F`). Bumps the exact `flask-appbuilder==` pin and\n  its mirror constant, regenerates `uv.lock`, drives the `test_fab_alignment.py`\n  drift tripwire, reviews the vendored security-manager `override.py` against the\n  new upstream FAB, and conditionally re-vendors static assets \u002F DB migrations.\n  Use when asked to \"upgrade FAB\", \"bump flask-appbuilder\", or move the FAB\n  provider to a newer Flask-AppBuilder release.\nlicense: Apache-2.0\n---\n\n\u003C!-- SPDX-License-Identifier: Apache-2.0\n     https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0 -->\n\n# upgrade-fab-provider\n\nAirflow's FAB provider is **tightly coupled** to a specific Flask-AppBuilder\nrelease because it vendors-in and subclasses large parts of FAB's security\nmanager. A version bump is therefore never \"just change the pin\" — it must be\nreconciled against the vendored code, and that reconciliation is enforced by a\npytest **alignment test**, not a prek hook.\n\nThe canonical reference for a real bump is PR **#66841** (\"Bump flask-appbuilder\nto 5.2.1 and mirror new auth event hooks\") — commit `c72b6613fd`. Read its diff\nfirst when in doubt: `git show c72b6613fd`.\n\n## The coupling — why this is not a one-line change\n\n- `providers\u002Ffab\u002Fpyproject.toml:75-80` explains it: Airflow vendored FAB's\n  security-manager code into\n  `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n  (~2700 lines) as `FabAirflowSecurityManagerOverride`. Every bump must review\n  that class against upstream FAB for new \u002F changed \u002F removed methods.\n- `test_fab_alignment.py` mechanically detects drift between the **installed**\n  FAB package and the vendored override, and **fails CI** until the developer\n  reconciles it.\n\n## Inputs\n\n- **Target version** — the FAB version to move to. If not given, use the latest\n  release on PyPI (`https:\u002F\u002Fpypi.org\u002Fpypi\u002Fflask-appbuilder\u002Fjson` → `info.version`).\n  Confirm the target with the user if it is a **major or minor** bump (higher\n  reconciliation risk); a **patch** bump can proceed.\n\n## The files a bump touches\n\n**Always:**\n\n1. `providers\u002Ffab\u002Fpyproject.toml` — line ~80, the `flask-appbuilder==X.Y.Z` pin\n   (the **only** real dependency pin in the repo).\n2. `providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py`\n   — `EXPECTED_FAB_VERSION = \"X.Y.Z\"` (line ~43). Must move in lockstep with the pin.\n3. `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency table row\n   ``` ``flask-appbuilder``   ``==X.Y.Z`` ``` (line ~114).\n4. `providers\u002Ffab\u002FREADME.rst` — the Requirements table row (line ~60). **Do\n   not hand-edit** — it is auto-generated. Regenerate it from the bumped\n   `pyproject.toml` with the `sync-provider-readme` prek hook (Step 8); the hook\n   re-renders the table whenever `pyproject.toml` changes. (Pre-existing bumps\n   that predate this hook left it to release-time regeneration; today the hook is\n   per-commit, so CI flags the drift — run it.)\n5. `uv.lock` — regenerated (see Step 4 for the pinned-uv caveat).\n\n**Conditionally:**\n\n6. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n   — transplant any relevant upstream FAB changes (new auth hooks, changed\n   signatures, ported fixes). The reference bump added +37 lines here. **Note:**\n   a green alignment test does not prove the transplant is unnecessary — a\n   security fix may live inside a method Airflow vendors (see the 5.2.2 worked\n   example below).\n7. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F**` + `providers\u002Ffab\u002Fwww-hash.txt`\n   — only if the new FAB ships changed static assets \u002F templates that are\n   re-vendored (see Step 6).\n8. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F**` — only if the\n   new FAB version ships DB migrations (see Step 7).\n\n**Never:** no newsfragment, and do **not** hand-edit `providers\u002Ffab\u002Fdocs\u002Fchangelog.rst`\n— providers are released from `main` and the release manager regenerates the\nchangelog from `git log` (per `providers\u002FAGENTS.md`). The commit subject is the\nchangelog entry.\n\n## Procedure\n\n### Step 1 — Determine the target version and current state\n\n- Read the current pin: `grep flask-appbuilder== providers\u002Ffab\u002Fpyproject.toml`.\n- Resolve the target (PyPI latest, or the user's requested version).\n- Classify the jump: patch \u002F minor \u002F major. For minor\u002Fmajor, skim the FAB\n  release notes (`https:\u002F\u002Fgithub.com\u002Fdpgaspar\u002FFlask-AppBuilder\u002Freleases`) for\n  security-manager \u002F model \u002F template changes before editing.\n\n### Step 2 — Bump the three source pins\n\nEdit in lockstep:\n\n- `providers\u002Ffab\u002Fpyproject.toml` — the `flask-appbuilder==X.Y.Z` line (keep the\n  trailing `# Whenever updating the version, run test_fab_alignment.py to verify.`\n  comment).\n- `test_fab_alignment.py` — `EXPECTED_FAB_VERSION = \"X.Y.Z\"`. It is the tripwire;\n  editing it now is fine — you will keep re-running the test until it and the\n  other three tests pass.\n- `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency-table `==X.Y.Z` row.\n\n### Step 3 — Install the new FAB into the provider venv\n\n`uv --project providers\u002Ffab sync` installs the new pin. Confirm the installed\nversion:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import importlib.metadata as m; print(m.version('flask-appbuilder'))\"\n```\n\n### Step 4 — Regenerate uv.lock (pinned uv!)\n\nThe lock **must** be regenerated with the repo's pinned uv version, or it drifts\nhundreds of unrelated marker lines:\n\n```bash\nAIRFLOW_UV_VERSION=$(grep -oE 'AIRFLOW_UV_VERSION=[0-9.]+' Dockerfile.ci | head -1 | cut -d= -f2)\nuvx --from uv==$AIRFLOW_UV_VERSION uv lock\n```\n\nIf a conflict is irrecoverable, delete `uv.lock` and re-run `uv lock` with the\npinned version. Confirm the diff is limited to the FAB bump, not a wholesale\nmarker rewrite.\n\n### Step 5 — Run the alignment test and reconcile override.py\n\n```bash\nuv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py -xvs\n```\n\nUnder the host sandbox the test needs a writable `AIRFLOW_HOME` and the\nrerun-failures socket disabled — if it errors on a socket `bind` or on\n`~\u002Fairflow`, run it as:\n\n```bash\nAIRFLOW_HOME=\"$TMPDIR\u002Ffab_home\" uv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002F...\u002Ftest_fab_alignment.py -q -p no:rerunfailures\n```\n\nThe four tests and how to fix each:\n\n1. **`test_fab_version_matches_expected`** — trips on the version mismatch. It\n   passes once `EXPECTED_FAB_VERSION` == installed version, but only after you\n   have done the review below.\n2. **`test_no_unaudited_fab_methods`** — a new FAB public method exists that is\n   neither implemented in `override.py` nor listed in `AUDITED_EXCLUSIONS`.\n   Fix: either implement\u002Foverride it in `override.py`, or add it to\n   `AUDITED_EXCLUSIONS` **with a justification comment**.\n3. **`test_no_stale_exclusions`** — `AUDITED_EXCLUSIONS` lists a method the new\n   FAB no longer has. Fix: remove that entry.\n4. **`test_shared_method_signatures_compatible`** — FAB changed a method\n   signature (new required param). Fix: update the `override.py` signature, or\n   add to `KNOWN_SIGNATURE_DEVIATIONS` if the divergence is intentional.\n\n**The manual review that the test cannot fully automate:** diff the vendored\n`override.py` against the new FAB's `flask_appbuilder\u002Fsecurity\u002Fsqla\u002Fmanager.py`\nand `BaseSecurityManager` and **transplant behavioural changes** (bug fixes, new\nauth event hooks), not just signatures — the test only checks method *presence*\nand *required params*. Locate the installed source:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import flask_appbuilder.security.sqla.manager as m; print(m.__file__)\"\n```\n\n### Step 6 — Re-vendor static assets \u002F templates (only if changed)\n\nIf the new FAB changed frontend assets that Airflow vendors under\n`providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F` (templates in\n`templates\u002Fappbuilder\u002F`, static JS\u002FCSS), re-vendor them, then regenerate the\nfingerprint:\n\n```bash\nprek run compile-fab-assets --all-files\n```\n\nThis runs `scripts\u002Fci\u002Fprek\u002Fcompile_provider_assets.py fab` (pnpm build over\n`www\u002F`) and rewrites `providers\u002Ffab\u002Fwww-hash.txt`. A patch bump usually does\n**not** touch assets — skip this step unless FAB's templates\u002Fstatic changed.\nCommit the regenerated `www-hash.txt` if it changed.\n\n### Step 7 — DB migrations (only if FAB ships them)\n\nIf the new FAB adds\u002Fchanges security-model tables, add the corresponding\nmigration under `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F`\nand run:\n\n```bash\nprek run update-migration-references-fab check-revision-heads-map-fab --all-files\n```\n\nPatch bumps normally have no migrations — skip unless the release notes mention\nschema changes.\n\n### Step 8 — Static checks + tests\n\n```bash\nprek run --from-ref main --stage pre-commit\nuv run --project providers\u002Ffab pytest providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager -xvs\n```\n\nThe pre-commit stage runs `sync-provider-readme` (regenerating `README.rst`) and\nother FAB hooks. Re-run the alignment test until all four tests pass. The full\nprovider suite is `breeze testing providers-tests --test-type \"Providers[fab]\"`.\n\n### Step 9 — Self-review and commit\n\n- `git diff main...HEAD` — verify only the intended files changed, and `uv.lock`\n  is a clean FAB-scoped diff.\n- Commit subject in imperative mood, plain prose, **no** Conventional-Commits\n  prefix, e.g. `Bump flask-appbuilder to X.Y.Z in FAB provider`. Body explains\n  *why* (what upstream changes were mirrored), not what.\n- No newsfragment, no changelog edit (provider release manager regenerates from\n  git log).\n- Prepend your PR to the history list in `providers\u002Ffab\u002FCONTRIBUTING.rst` so the\n  FAB-upgrade record stays current.\n- Push to `origin` and open the PR per the repo's PR conventions.\n\n## Gotchas\n\n- **`EXPECTED_FAB_VERSION` is a second pin.** Forgetting it makes\n  `test_fab_alignment.py` fail even when everything else is correct.\n- **`uv.lock` marker drift.** Always use the pinned uv (Step 4) — a bare\n  `uv lock` rewrites hundreds of environment-marker lines and buries the real diff.\n- **The alignment test uses AST, not import**, to read FAB's `SecurityManager`\n  (to avoid SQLAlchemy model-registry collisions with Airflow's vendored models).\n  A green test proves *structural* alignment; it does **not** prove behavioural\n  parity — Step 5's manual transplant review is still required.\n- **`docs\u002Findex.rst` dependency table** may look auto-generated but the reference\n  PR edited it by hand; if a docs-regen prek hook rewrites it, let the hook win.\n- **`README.rst` is generated, but the sync hook is per-commit.** Don't hand-edit\n  it; run `prek run sync-provider-readme` (or the full pre-commit stage) after\n  bumping `pyproject.toml` — CI fails on the drift otherwise.\n- **Don't touch `providers\u002Ffab\u002Fdocs\u002Fupgrading.rst`** — that is end-user guidance\n  for upgrading the *provider package* in a deployment, not the developer bump\n  workflow.\n\n## Worked example — 5.2.1 to 5.2.2 (patch)\n\nA patch bump that needed **no `override.py` change**, but only after a real\nbehavioural review — the green alignment test alone was not sufficient evidence:\n\n- FAB 5.2.2 shipped three security-manager fixes: LDAP search-filter escaping,\n  OAuth email-allowlist regex anchoring (`email + \"$\"`), and API-login provider\n  validation.\n- All three touch methods Airflow *vendors* (`_search_ldap`, `auth_user_ldap`,\n  `auth_user_oauth`) — so the alignment test passing did **not** mean \"nothing to\n  do\". Each had to be checked by hand:\n  - **LDAP escaping** — Airflow's vendored `_search_ldap` **already** escapes via\n    `ldap.filter.escape_filter_chars` (and adds filter-parenthesis validation); it\n    was ahead of FAB. No transplant.\n  - **OAuth allowlist anchoring** — the match lives in FAB's `AuthOAuthView`\n    (`views.py`), and Airflow's `CustomAuthOAuthView.oauth_authorized` delegates\n    via `super().oauth_authorized()`, so the fix is inherited from the installed\n    FAB 5.2.2. No transplant.\n  - **API-login validation \u002F Azure-JWT warning \u002F uuid4** — in FAB core Airflow\n    doesn't vendor. Inherited.\n- Net change set: `pyproject.toml`, `test_fab_alignment.py`, `docs\u002Findex.rst`,\n  `README.rst` (via hook), `uv.lock`. Commit: `Bump flask-appbuilder to 5.2.2 in\n  FAB provider`.\n\nThe lesson the skill encodes: **for every security\u002Fbehavioural fix in the FAB\nrelease notes, locate the method and check whether Airflow vendors it** — the\nalignment test guards structure, you guard behaviour.\n","\u003C!-- SPDX-License-Identifier: Apache-2.0\n     https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0 -->\n\n# upgrade-fab-provider\n\nAirflow's FAB provider is **tightly coupled** to a specific Flask-AppBuilder\nrelease because it vendors-in and subclasses large parts of FAB's security\nmanager. A version bump is therefore never \"just change the pin\" — it must be\nreconciled against the vendored code, and that reconciliation is enforced by a\npytest **alignment test**, not a prek hook.\n\nThe canonical reference for a real bump is PR **#66841** (\"Bump flask-appbuilder\nto 5.2.1 and mirror new auth event hooks\") — commit `c72b6613fd`. Read its diff\nfirst when in doubt: `git show c72b6613fd`.\n\n## The coupling — why this is not a one-line change\n\n- `providers\u002Ffab\u002Fpyproject.toml:75-80` explains it: Airflow vendored FAB's\n  security-manager code into\n  `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n  (~2700 lines) as `FabAirflowSecurityManagerOverride`. Every bump must review\n  that class against upstream FAB for new \u002F changed \u002F removed methods.\n- `test_fab_alignment.py` mechanically detects drift between the **installed**\n  FAB package and the vendored override, and **fails CI** until the developer\n  reconciles it.\n\n## Inputs\n\n- **Target version** — the FAB version to move to. If not given, use the latest\n  release on PyPI (`https:\u002F\u002Fpypi.org\u002Fpypi\u002Fflask-appbuilder\u002Fjson` → `info.version`).\n  Confirm the target with the user if it is a **major or minor** bump (higher\n  reconciliation risk); a **patch** bump can proceed.\n\n## The files a bump touches\n\n**Always:**\n\n1. `providers\u002Ffab\u002Fpyproject.toml` — line ~80, the `flask-appbuilder==X.Y.Z` pin\n   (the **only** real dependency pin in the repo).\n2. `providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py`\n   — `EXPECTED_FAB_VERSION = \"X.Y.Z\"` (line ~43). Must move in lockstep with the pin.\n3. `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency table row\n   ``` ``flask-appbuilder``   ``==X.Y.Z`` ``` (line ~114).\n4. `providers\u002Ffab\u002FREADME.rst` — the Requirements table row (line ~60). **Do\n   not hand-edit** — it is auto-generated. Regenerate it from the bumped\n   `pyproject.toml` with the `sync-provider-readme` prek hook (Step 8); the hook\n   re-renders the table whenever `pyproject.toml` changes. (Pre-existing bumps\n   that predate this hook left it to release-time regeneration; today the hook is\n   per-commit, so CI flags the drift — run it.)\n5. `uv.lock` — regenerated (see Step 4 for the pinned-uv caveat).\n\n**Conditionally:**\n\n6. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n   — transplant any relevant upstream FAB changes (new auth hooks, changed\n   signatures, ported fixes). The reference bump added +37 lines here. **Note:**\n   a green alignment test does not prove the transplant is unnecessary — a\n   security fix may live inside a method Airflow vendors (see the 5.2.2 worked\n   example below).\n7. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F**` + `providers\u002Ffab\u002Fwww-hash.txt`\n   — only if the new FAB ships changed static assets \u002F templates that are\n   re-vendored (see Step 6).\n8. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F**` — only if the\n   new FAB version ships DB migrations (see Step 7).\n\n**Never:** no newsfragment, and do **not** hand-edit `providers\u002Ffab\u002Fdocs\u002Fchangelog.rst`\n— providers are released from `main` and the release manager regenerates the\nchangelog from `git log` (per `providers\u002FAGENTS.md`). The commit subject is the\nchangelog entry.\n\n## Procedure\n\n### Step 1 — Determine the target version and current state\n\n- Read the current pin: `grep flask-appbuilder== providers\u002Ffab\u002Fpyproject.toml`.\n- Resolve the target (PyPI latest, or the user's requested version).\n- Classify the jump: patch \u002F minor \u002F major. For minor\u002Fmajor, skim the FAB\n  release notes (`https:\u002F\u002Fgithub.com\u002Fdpgaspar\u002FFlask-AppBuilder\u002Freleases`) for\n  security-manager \u002F model \u002F template changes before editing.\n\n### Step 2 — Bump the three source pins\n\nEdit in lockstep:\n\n- `providers\u002Ffab\u002Fpyproject.toml` — the `flask-appbuilder==X.Y.Z` line (keep the\n  trailing `# Whenever updating the version, run test_fab_alignment.py to verify.`\n  comment).\n- `test_fab_alignment.py` — `EXPECTED_FAB_VERSION = \"X.Y.Z\"`. It is the tripwire;\n  editing it now is fine — you will keep re-running the test until it and the\n  other three tests pass.\n- `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency-table `==X.Y.Z` row.\n\n### Step 3 — Install the new FAB into the provider venv\n\n`uv --project providers\u002Ffab sync` installs the new pin. Confirm the installed\nversion:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import importlib.metadata as m; print(m.version('flask-appbuilder'))\"\n```\n\n### Step 4 — Regenerate uv.lock (pinned uv!)\n\nThe lock **must** be regenerated with the repo's pinned uv version, or it drifts\nhundreds of unrelated marker lines:\n\n```bash\nAIRFLOW_UV_VERSION=$(grep -oE 'AIRFLOW_UV_VERSION=[0-9.]+' Dockerfile.ci | head -1 | cut -d= -f2)\nuvx --from uv==$AIRFLOW_UV_VERSION uv lock\n```\n\nIf a conflict is irrecoverable, delete `uv.lock` and re-run `uv lock` with the\npinned version. Confirm the diff is limited to the FAB bump, not a wholesale\nmarker rewrite.\n\n### Step 5 — Run the alignment test and reconcile override.py\n\n```bash\nuv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py -xvs\n```\n\nUnder the host sandbox the test needs a writable `AIRFLOW_HOME` and the\nrerun-failures socket disabled — if it errors on a socket `bind` or on\n`~\u002Fairflow`, run it as:\n\n```bash\nAIRFLOW_HOME=\"$TMPDIR\u002Ffab_home\" uv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002F...\u002Ftest_fab_alignment.py -q -p no:rerunfailures\n```\n\nThe four tests and how to fix each:\n\n1. **`test_fab_version_matches_expected`** — trips on the version mismatch. It\n   passes once `EXPECTED_FAB_VERSION` == installed version, but only after you\n   have done the review below.\n2. **`test_no_unaudited_fab_methods`** — a new FAB public method exists that is\n   neither implemented in `override.py` nor listed in `AUDITED_EXCLUSIONS`.\n   Fix: either implement\u002Foverride it in `override.py`, or add it to\n   `AUDITED_EXCLUSIONS` **with a justification comment**.\n3. **`test_no_stale_exclusions`** — `AUDITED_EXCLUSIONS` lists a method the new\n   FAB no longer has. Fix: remove that entry.\n4. **`test_shared_method_signatures_compatible`** — FAB changed a method\n   signature (new required param). Fix: update the `override.py` signature, or\n   add to `KNOWN_SIGNATURE_DEVIATIONS` if the divergence is intentional.\n\n**The manual review that the test cannot fully automate:** diff the vendored\n`override.py` against the new FAB's `flask_appbuilder\u002Fsecurity\u002Fsqla\u002Fmanager.py`\nand `BaseSecurityManager` and **transplant behavioural changes** (bug fixes, new\nauth event hooks), not just signatures — the test only checks method *presence*\nand *required params*. Locate the installed source:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import flask_appbuilder.security.sqla.manager as m; print(m.__file__)\"\n```\n\n### Step 6 — Re-vendor static assets \u002F templates (only if changed)\n\nIf the new FAB changed frontend assets that Airflow vendors under\n`providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F` (templates in\n`templates\u002Fappbuilder\u002F`, static JS\u002FCSS), re-vendor them, then regenerate the\nfingerprint:\n\n```bash\nprek run compile-fab-assets --all-files\n```\n\nThis runs `scripts\u002Fci\u002Fprek\u002Fcompile_provider_assets.py fab` (pnpm build over\n`www\u002F`) and rewrites `providers\u002Ffab\u002Fwww-hash.txt`. A patch bump usually does\n**not** touch assets — skip this step unless FAB's templates\u002Fstatic changed.\nCommit the regenerated `www-hash.txt` if it changed.\n\n### Step 7 — DB migrations (only if FAB ships them)\n\nIf the new FAB adds\u002Fchanges security-model tables, add the corresponding\nmigration under `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F`\nand run:\n\n```bash\nprek run update-migration-references-fab check-revision-heads-map-fab --all-files\n```\n\nPatch bumps normally have no migrations — skip unless the release notes mention\nschema changes.\n\n### Step 8 — Static checks + tests\n\n```bash\nprek run --from-ref main --stage pre-commit\nuv run --project providers\u002Ffab pytest providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager -xvs\n```\n\nThe pre-commit stage runs `sync-provider-readme` (regenerating `README.rst`) and\nother FAB hooks. Re-run the alignment test until all four tests pass. The full\nprovider suite is `breeze testing providers-tests --test-type \"Providers[fab]\"`.\n\n### Step 9 — Self-review and commit\n\n- `git diff main...HEAD` — verify only the intended files changed, and `uv.lock`\n  is a clean FAB-scoped diff.\n- Commit subject in imperative mood, plain prose, **no** Conventional-Commits\n  prefix, e.g. `Bump flask-appbuilder to X.Y.Z in FAB provider`. Body explains\n  *why* (what upstream changes were mirrored), not what.\n- No newsfragment, no changelog edit (provider release manager regenerates from\n  git log).\n- Prepend your PR to the history list in `providers\u002Ffab\u002FCONTRIBUTING.rst` so the\n  FAB-upgrade record stays current.\n- Push to `origin` and open the PR per the repo's PR conventions.\n\n## Gotchas\n\n- **`EXPECTED_FAB_VERSION` is a second pin.** Forgetting it makes\n  `test_fab_alignment.py` fail even when everything else is correct.\n- **`uv.lock` marker drift.** Always use the pinned uv (Step 4) — a bare\n  `uv lock` rewrites hundreds of environment-marker lines and buries the real diff.\n- **The alignment test uses AST, not import**, to read FAB's `SecurityManager`\n  (to avoid SQLAlchemy model-registry collisions with Airflow's vendored models).\n  A green test proves *structural* alignment; it does **not** prove behavioural\n  parity — Step 5's manual transplant review is still required.\n- **`docs\u002Findex.rst` dependency table** may look auto-generated but the reference\n  PR edited it by hand; if a docs-regen prek hook rewrites it, let the hook win.\n- **`README.rst` is generated, but the sync hook is per-commit.** Don't hand-edit\n  it; run `prek run sync-provider-readme` (or the full pre-commit stage) after\n  bumping `pyproject.toml` — CI fails on the drift otherwise.\n- **Don't touch `providers\u002Ffab\u002Fdocs\u002Fupgrading.rst`** — that is end-user guidance\n  for upgrading the *provider package* in a deployment, not the developer bump\n  workflow.\n\n## Worked example — 5.2.1 to 5.2.2 (patch)\n\nA patch bump that needed **no `override.py` change**, but only after a real\nbehavioural review — the green alignment test alone was not sufficient evidence:\n\n- FAB 5.2.2 shipped three security-manager fixes: LDAP search-filter escaping,\n  OAuth email-allowlist regex anchoring (`email + \"$\"`), and API-login provider\n  validation.\n- All three touch methods Airflow *vendors* (`_search_ldap`, `auth_user_ldap`,\n  `auth_user_oauth`) — so the alignment test passing did **not** mean \"nothing to\n  do\". Each had to be checked by hand:\n  - **LDAP escaping** — Airflow's vendored `_search_ldap` **already** escapes via\n    `ldap.filter.escape_filter_chars` (and adds filter-parenthesis validation); it\n    was ahead of FAB. No transplant.\n  - **OAuth allowlist anchoring** — the match lives in FAB's `AuthOAuthView`\n    (`views.py`), and Airflow's `CustomAuthOAuthView.oauth_authorized` delegates\n    via `super().oauth_authorized()`, so the fix is inherited from the installed\n    FAB 5.2.2. No transplant.\n  - **API-login validation \u002F Azure-JWT warning \u002F uuid4** — in FAB core Airflow\n    doesn't vendor. Inherited.\n- Net change set: `pyproject.toml`, `test_fab_alignment.py`, `docs\u002Findex.rst`,\n  `README.rst` (via hook), `uv.lock`. Commit: `Bump flask-appbuilder to 5.2.2 in\n  FAB provider`.\n\nThe lesson the skill encodes: **for every security\u002Fbehavioural fix in the FAB\nrelease notes, locate the method and check whether Airflow vendors it** — the\nalignment test guards structure, you guard behaviour.\n",{"name":5,"license":16,"description":58},"Upgrade the pinned Flask-AppBuilder (FAB) dependency in the Apache Airflow FAB provider (`providers\u002Ffab\u002F`). Bumps the exact `flask-appbuilder==` pin and its mirror constant, regenerates `uv.lock`, drives the `test_fab_alignment.py` drift tripwire, reviews the vendored security-manager `override.py` against the new upstream FAB, and conditionally re-vendors static assets \u002F DB migrations. Use when asked to \"upgrade FAB\", \"bump flask-appbuilder\", or move the FAB provider to a newer Flask-AppBuilder release.\n","main","f7e28eec7309f5700ca69ec226df41a5c58d5213",".agents\u002Fskills\u002Fupgrade-fab-provider",18358,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow","https:\u002F\u002Fairflow.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-15 01:34:00",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add apache\u002Fairflow --skill upgrade-fab-provider",{"tool":74,"command":75},"bunx","bunx skills add apache\u002Fairflow --skill upgrade-fab-provider",{"tool":77,"command":78},"pnpm","pnpm dlx skills add apache\u002Fairflow --skill upgrade-fab-provider","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupgrade-fab-provider\u002FSKILL.md",true,[82],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fshannon-find-nvim.sh","SCRIPT","脚本",631,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fshannon\u002Fscripts\u002Fshannon-find-nvim.sh",[89,118,145,176,206,231],{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":53},"01M6ACBAC3S7GHPX3EB91CA2K5","sql-reporting","数仓分析 SQL 编写与报表生成","Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics.","针对数据仓库编写分析类 SQL 的规范与审查步骤。当任务涉及查询表、构建报表或聚合指标时，均应使用本技能。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002Fproviders\u002Fcommon\u002Fai\u002Fsrc\u002Fairflow\u002Fproviders\u002Fcommon\u002Fai\u002Fexample_dags\u002Fskills\u002Fsql-reporting\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":101,"categoryName":102,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[104,105,106,107,108,109,110,111,112,113,114,115,116,117],"sql reporting","sql","reporting","writing","review","report","analytics","metrics","tables","warehouse","for","use","task","conventions",{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":130,"publishedAt":53},"01M6ACB7P9C6TV0J1FGWW5HECF","aip-tracker","AIP 实施进度跟踪","Track Airflow Improvement Proposal (AIP) implementation progress by comparing Confluence specs against codebase evidence. Use when asked to assess, report on, or compare AIP status.","通过对照代码库证据比较 Confluence 规范，跟踪 Airflow 改进提案（AIP）的实施进度。在被要求评估、报告或比较 AIP 状态时使用。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002Fproviders\u002Fcommon\u002Fai\u002Fsrc\u002Fairflow\u002Fproviders\u002Fcommon\u002Fai\u002Fexample_dags\u002Fskills\u002Faip-tracker\u002FSKILL.md",[126,127],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C6Y8SPQXYX4HP4KTNCEXME","项目进度跟踪与状态报告",[131,132,133,50,109,134,135,36,136,137,138,139,140,115,141,142,143,144],"aip tracker","aip","tracker","status","proposal","track","progress","evidence","improvement","assess","compare","codebase","implementation","confluence",{"skillNo":146,"name":147,"nameZh":148,"description":149,"descriptionZh":150,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":157,"publishedAt":53},"01M6ACB2TYRC6SB5TQ351K2Q7Q","prepare-providers-documentation","Provider 发布文档准备","Replace the manual commit-by-commit classification step in `breeze release-management prepare-provider-documentation` with AI-driven classification. For each provider with pending changes, analyze every PR (batched into one sub-agent per provider, not one per PR), pay special attention to potentially breaking changes by inspecting the actual diff, scope multi-provider PRs to the current provider's slice, ask the release manager when uncertain, and apply version bumps + changelog entries. Use during the regular provider release cycle as an alternative to the interactive breeze prompts.","用 AI 驱动的分类替代 `breeze release-management prepare-provider-documentation` 中手动逐提交分类的步骤。对于每个有待处理变更的 provider，分析每一个 PR（按每个 provider 分批为一个子代理，而不是每个 PR 一个子代理），通过检查实际 diff 特别关注潜在的破坏性变更，将多 provider 的 PR 范围限定在当前 provider 的相关部分，不确定时询问发布经理，并应用版本升级与变更日志（changelog）条目。在常规 provider 发布周期中使用，作为交互式 breeze 提示的替代方案。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fprepare-providers-documentation\u002FSKILL.md",[153,154],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":155,"categoryName":156,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[158,159,160,161,162,163,164,51,165,166,167,36,168,169,170,171,172,173,174,175],"documentation","prepare providers documentation","prepare","Providers","pr","commit","changelog","scope","cycle","pay","ask","analyze","sub-agent","multi-provider","manager","as","attention","diff",{"skillNo":177,"name":178,"nameZh":179,"description":180,"descriptionZh":181,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":182,"categories":183,"keywords":190,"publishedAt":53},"01M6ACAZ1M5SJQH1SHFFY7CXQF","airflow-translations","Airflow UI 翻译与本地化","Add or update translations for the Apache Airflow UI. Guides through setting up locales, scaffolding translation files, translating with locale-specific guidelines, and validating results. Use when working with i18n tasks in airflow-core\u002Fsrc\u002Fairflow\u002Fui\u002Fpublic\u002Fi18n\u002Flocales\u002F.","为 Apache Airflow UI 添加或更新翻译。指导完成设置 locales、搭建翻译文件、按照特定 locale 的指南进行翻译以及验证结果。在处理 airflow-core\u002Fsrc\u002Fairflow\u002Fui\u002Fpublic\u002Fi18n\u002Flocales\u002F 目录中的 i18n 任务时使用。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fairflow-translations\u002FSKILL.md",[184,187],{"categoryNo":185,"categoryName":186,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C664561CFRMXSC8XDFDZKD","语言翻译与本地化",{"categoryNo":188,"categoryName":189,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C66465GSN4VFJAQ1QMA8HD","翻译",[50,191,192,193,194,10,49,195,196,197,198,199,200,201,202,203,204,36,205,114],"airflow translations","core","guidelines","tasks","update","translation","scaffolding","up","files","guides","i18n","src","ui","add","locale",{"skillNo":207,"name":208,"nameZh":209,"description":210,"descriptionZh":211,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":212,"categories":213,"keywords":216,"publishedAt":53},"01M6ACAWMSPCZCQMCJ0WPVTFQ9","airflow-publish-changes","Airflow 变更发布","Prepare or carry out authorized publication of Apache Airflow changes, including remote checks, pre-push verification, PR creation, and tracking deferred work. Also use when planning these steps or managing contribution issues.","准备或执行经授权的 Apache Airflow 变更发布，包括远程检查、推送前验证、PR 创建以及跟踪延期工作。在计划这些步骤或管理贡献相关问题时也使用此技能。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fairflow-publish-changes\u002FSKILL.md",[214,215],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":155,"categoryName":156,"taxonomyType":28,"taxonomyTypeDesc":29},[50,217,218,219,220,162,221,222,223,10,49,160,224,225,36,226,227,228,115,229,230],"airflow publish changes","publish","changes","push","planning","issues","verification","creation","remote","work","pr creation","Publication","contribution","tracking",{"skillNo":232,"name":233,"nameZh":234,"description":235,"descriptionZh":236,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":237,"categories":238,"keywords":243,"publishedAt":53},"01M6ACAT3JW1XZD3Z9EPP4H68M","airflow-pr-draft-summary","PR 与提交信息起草","Draft Apache Airflow commit messages, PR titles and descriptions, or GitHub comments and reviews. Also use for release-note decisions when preparing a contribution.","起草 Apache Airflow 的提交消息、PR 标题和描述，或 GitHub 评论和评审。在准备贡献时做出发布说明（release-note）决策时也使用此技能。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fairflow\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fairflow-pr-draft-summary\u002FSKILL.md",[239,240],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":241,"categoryName":242,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[162,244,50,245,246,247,248,163,10,249,49,51,39,250,36,251,114,115,252,253,229],"pr draft summary","airflow pr draft summary","pr draft","draft","summary","github","messages","commit messages","decisions","comments"]