Skip to content

rebranding: rename ext/ clones to inference-toolkit and chatbot-toolkit - #196

Merged
mik-now merged 6 commits into
intel:release-2.0from
mik-now:refactor/rename-ext-dest
Dec 1, 2026
Merged

mik-now merged 6 commits into
intel:release-2.0from
mik-now:refactor/rename-ext-dest

Conversation

@mik-now

@mik-now mik-now commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Clones the toolkits into ext/inference-toolkit, ext/chatbot-toolkit and ext/agent-toolkit and points at the renamed repos.
Companions: intel/chatbot-toolkit#232, intel/inference-toolkit#103.

@mik-now
mik-now requested review from a team November 30, 2026 19:39
@sys-aibot

sys-aibot commented Nov 30, 2026 •

Copy link
Copy Markdown

Claude finished @mik-now's task in 1m 33s —— View job


Verdict: needs changes

Findings (most severe first)

1. Old and new clones get loaded side by side, and nothing stops it. playbooks/includes/preflight.yaml:105-135 and toolkit_manager.sh:685-694 (_ext_roles_dirs)
Both of these search all of ext/ for every components.yaml. They don't look at dest. Since e6fcd42 dropped the rename migration, an existing checkout ends up with both ext/enterprise.ai-inference and ext/inference-toolkit (the same goes for erag and agent-toolkit). It gets there as soon as the operator follows the upgrade steps: init <layer> --upgrade clones under the new name next to the old one. After that:

  • components and layers hold every ext component twice, because both manifests are merged.
  • _layer_dirs ends up mixed. claim_layer_dirs (filter_plugins/layer_checks.py:51) lets the last path in sort order win. That gives erag → ext/enterprise.ai-erag/deployment, which is the old clone, so its backup_profile.yaml and version.yaml get used. It also gives inference → ext/inference-toolkit.
  • ANSIBLE_ROLES_PATH lists ext/enterprise.ai-inference/roles before ext/inference-toolkit/roles. Ansible takes the first match, so the old inference roles hide the newly pinned ones and the install quietly runs stale code.
  • ensure_repos (toolkit_manager.sh:831-836) still checks the old repo: recorded in .solutions.yaml. That folder exists, so the check passes.

Add a check that fails fast when ext/enterprise.ai-inference, ext/enterprise.ai-erag or ext/enterprise.agent-toolkit exists. ensure_repos is the natural place, since every action goes through it. The error should tell the operator to delete the old folder and re-run init. Add a unit test for it, because rule 5 calls for tests on changed behaviour.
Fix this →

2. The upgrade note is in the wrong place and misses one old name. docs/deployment/upgrade.md:258-261

  • It comes after the example that already ran init erag --upgrade, which is the step that creates the mixed state in finding 1. It also separates "Step 3 prints" from step 3. Move it before step 2, or to the top of the upgrade section, and say "before init --upgrade".
  • The pattern ext/enterprise.ai-* doesn't match ext/enterprise.agent-toolkit. Name all three old folders.
    Fix this →

3. Don't merge until the revs are re-pinned. configs/repos/repos.agent-toolkit.yaml:21-22, repos.erag.yaml:25, repos.inference.yaml:17
The PR description says the rev: pins get updated after intel/chatbot-toolkit#232 and intel/inference-toolkit#103 merge. Until then, this branch pairs the new ext/ names with toolkit commits that predate those companion PRs. Any path those repos hard-code to their own old ext/ folder will break. Also, the agent-toolkit url now points at intel/agent-toolkit, but rev is still b3a29592. That only works if the repo was renamed (so GitHub redirects) rather than recreated. Check that git clone https://github.com/intel/agent-toolkit && git checkout b3a29592… works before merging.

Checks

  • I searched the tree for leftover old names (enterprise.ai-*, enterprise.agent-toolkit, enterprise-agent-toolkit, intel/enterprise-rag|inference). The only hit is the upgrade note, so the rename itself is complete.
  • I did not run the unit tests; I only had read-only tools in this run.

…ot-toolkit

The ext/ dirs follow the renamed GitHub repos (intel/inference-toolkit, intel/chatbot-toolkit). init --upgrade moves an existing ext/enterprise.ai-* dir to the new name and rewrites the paths in env/<env>/config.*.yaml.

Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
Manifest and docs use intel/agent-toolkit, intel/inference-toolkit and intel/chatbot-toolkit instead of the old enterprise-* names that redirect.

Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
init clones the toolkits under their new names; old ext/enterprise.ai-* clones are left alone and can be deleted.

Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
@mik-now
mik-now force-pushed the refactor/rename-ext-dest branch from e6fcd42 to 6b51db6 Compare December 1, 2026 07:10
@sys-aibot

sys-aibot commented Dec 1, 2026 •

Copy link
Copy Markdown

Claude finished @mik-now's task in 48s —— View job


Verdict: needs changes

Findings

1. The toolkit revs still predate the companion PRs. configs/repos/repos.inference.yaml:17, configs/repos/repos.erag.yaml:17,25, configs/repos/repos.agent-toolkit.yaml:12,21-22
The dest: values now use the new ext/ names. The rev: pins have not changed, though: inference is still 8389f47f…, chatbot is 6fa81aa0… and agent is b3a29592…. intel/chatbot-toolkit#232 and intel/inference-toolkit#103 exist to update each toolkit's own references to its old ext/ folder. Those changes are not in the pinned commits, so this branch can pull in code that still looks for ext/enterprise.ai-* and fails. Once the companion PRs merge, re-pin to their merge commits.

The agent-toolkit url also changed to https://github.com/intel/agent-toolkit while its rev stayed the same. That only works if the old repo was renamed, so GitHub redirects and the commit still exists there. Before merging, confirm that git clone https://github.com/intel/agent-toolkit && git -C agent-toolkit checkout b3a29592ff6cb0dbc3adce0de8b334964db38e27 succeeds.
Fix this →

Earlier findings

  • Old and new clones loaded together: fixed. ensure_repos now stops with an error when any of the three old folders exists (toolkit_manager.sh:816-819). src/tests/unit/test_legacy_ext_dirs.py tests all three names and also the case where only new names are present. I traced the set -euo pipefail path the test uses when it sources the script, with and without yq. layer_manifest "" returns 0, so the passing case should reach DONE.
  • Upgrade note placement and names: fixed. The note is now at the top of docs/deployment/upgrade.md, before any init --upgrade step, and names all three old folders.

Checks

  • Searched the diff for leftover old names. The only ones left are the intentional ones in the guard, the upgrade note and the new test.
  • The rebuilt roles/headlamp/files/plugins/enterprise-ai/main.js has the same change as AccessDialog.tsx.
  • I did not run the unit tests. This run had only read-only tools.

An old clone would load beside the renamed one, and its roles would shadow the new roles.

Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>

@AhmedSeemalK AhmedSeemalK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vhpintel vhpintel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved

@sys-aibot

sys-aibot commented Dec 1, 2026 •

Copy link
Copy Markdown

Claude finished @AhmedSeemalK's task in 29s —— View job


Verdict: needs changes

Findings

1. The toolkit revs still predate the companion PRs. configs/repos/repos.inference.yaml:17, configs/repos/repos.erag.yaml:17,25, configs/repos/repos.agent-toolkit.yaml:12,21-22
This is still open from the last review. The dest: values use the new ext/ names, but the rev: pins are unchanged: inference 8389f47f…, chatbot 6fa81aa0…, agent b3a29592…. The changes in intel/chatbot-toolkit#232 and intel/inference-toolkit#103 are not in those commits. Any path inside those toolkits that still points at its own old ext/enterprise.ai-* folder will break on this branch. Re-pin to the companion PRs' merge commits once they land.

The agent-toolkit url now points at https://github.com/intel/agent-toolkit, but rev is the same as before. Before merging, confirm that git clone https://github.com/intel/agent-toolkit && git -C agent-toolkit checkout b3a29592ff6cb0dbc3adce0de8b334964db38e27 works.
Fix this →

Checks

  • The old-clone check in ensure_repos is still in place (toolkit_manager.sh:814-819).
    • err exits with status 1 (toolkit_manager.sh:96), so the run stops when an old folder is found.
    • When no old folder exists, the [[ … ]] && err lines don't trip set -e.
    • init (:1192), the main actions (:2167) and run_backup.sh:81 all go through ensure_repos, so they are all covered.
  • src/tests/unit/test_legacy_ext_dirs.py tests all three old names and the case where only the new names exist.
  • The upgrade note is still at the top of docs/deployment/upgrade.md and names all three old folders.
  • I did not run the unit tests. This run had read-only tools only.

@jpiaseck jpiaseck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@mik-now
mik-now merged commit 413984e into intel:release-2.0 Dec 1, 2026
12 checks passed
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.

5 participants