Skip to content

rebranding: rename the erag layer to chatbot - #201

Merged
AhmedSeemalK merged 2 commits into
intel:release-2.0from
mik-now:mikolajn/refactor/layer-chatbot
Dec 2, 2026
Merged

AhmedSeemalK merged 2 commits into
intel:release-2.0from
mik-now:mikolajn/refactor/layer-chatbot

Conversation

@mik-now

@mik-now mik-now commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

configs/repos/repos.erag.yaml becomes repos.chatbot.yaml with layer: chatbot. Help text, README, docs and unit test fixtures follow, and the docs now use the 3.1 Keycloak names (chattool-credentials, chattool-admin, ...).

Clean rename, no alias: existing envs need init chatbot.

Depends on intel/chatbot-toolkit#240

Tests: pytest src/tests/unit (820 passed), bash -n on both scripts. Not run on a cluster yet.

@sys-aibot

sys-aibot commented Dec 1, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Correctness

  1. An upgraded 3.0.0 install is classed fresh, so the upgrade gates no longer run. roles/layer_checks/tasks/run.yaml:94 reads {{ layer }}-deployment-manifest, record.yaml:18 writes it, and config_tracking.yaml:19 and backup/tasks/layer_record.yaml:18 use the same scheme. A cluster running 3.0.0 has erag-deployment-manifest and erag-config-tracking. After the rename, install chatbot finds no chatbot-deployment-manifest, so classify_run returns fresh. That means:

    • upgrade-path and backup-freshness are skipped; check_layers leaves fresh out.
    • config-tracking falls to baseline, so VECTOR_DIMS_CHANGED and EMBEDDING_MODEL_CHANGED never fire.
    • The old erag-* ConfigMap and Secret are left orphaned.

    This silently bypasses the gating that supports.upgrade: true exists for. The fix is either a fallback read of the legacy erag- record and config-tracking Secret for chatbot (next to lift_layer_record), or an explicit refusal when erag-deployment-manifest exists. Either one needs a unit test. Fix this →

  2. docs/deployment/upgrade.md now documents a path that doesn't work.

    • upgrade.md:235 and upgrade.md:340: the backup has to run "with the release that is installed now", meaning the 3.0.0 checkout. That checkout only knows layer erag, so ./run_backup.sh backup chatbot is refused as an unknown layer. These lines need to stay backup erag.
    • upgrade.md:357 and upgrade.md:360: the worked example shows chatbot: upgrade (3.0.0 -> 3.1.0) and backup-chatbot-…. Given finding 1, a real run prints chatbot: fresh (none -> 3.1.0). The backup names come from the 3.0.0 layer, so they would be backup-erag-….
    • The page never mentions the migration the PR body asks for ("existing envs need init chatbot"). It should say what happens to config.erag.yaml and the erag row in .solutions.yaml. That old row is still loaded through -e @config.erag.yaml next to the newly seeded config.chatbot.yaml.
  3. filter_plugins/layer_checks.py:10 now says the wrong thing. The docstring describes the legacy self-written record of "Intel Chatbot Toolkit 3.0.0, layer chatbot". That release's layer was erag. This line describes history, so it should not have been renamed.

Integrity / consistency

  1. "eRAG" wording left behind in the files this PR renames:

    • configs/repos/repos.chatbot.yaml:5 still says "The inference layer eRAG builds on, then eRAG itself".
    • docs/reference/labels.md:85 still says "The eRAG repo".
  2. The node-scaling guard mixes old and new names. toolkit_manager.sh:2251-2253 and :1542-1550 keep _erag_namespaces_present, ERAG_NAMESPACES and "a cluster with ERAG deployed". The fix hint on the next line now says teardown … chatbot. Either rename the guard or say "Intel® Chatbot Toolkit" in the message. docs/deployment/node-scaling.md:44,50,62,215 has the same mix.

  3. Test names and constants are only half renamed in src/tests/unit/test_layer_checks.py.

    • ERAG_REQUIRES (:1558) and ERAG_CONFIG (:1847) now hold chatbot data. They should become CHATBOT_REQUIRES and CHATBOT_CONFIG.
    • ERAG_LEGACY and test_legacy_erag_record_lifted_on_read are correct as they are, because they describe the old layer.

Readability

  1. Inline comments are no longer aligned wherever erag became chatbot (3 extra characters):

    • toolkit_manager.sh:2083-2087
    • docs/reference/cli.md:741-747
    • docs/deployment/upgrade.md:254
    • docs/getting-started/chatbot-toolkit.md:419-422
    • docs/deployment/netapp-ontap.md:208
  2. Grammar: docs/deployment/upgrade.md:370 reads "What refuses an chatbot upgrade" and should be "a chatbot upgrade".

@sys-aibot

sys-aibot commented Dec 1, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Correctness

  1. The pinned chatbot-toolkit revision still installs the layer as erag. configs/repos/repos.chatbot.yaml:25 pins 6fa81aa… (v3.1.0-rc.1). The new section at docs/deployment/upgrade.md:253 says "the 3.1 release candidates installed the layer as erag", so this rev's components.yaml declares layer erag. It also predates former_names, which is added in refactor: rename the erag layer to chatbot chatbot-toolkit#240. The result:

    • init chatbot writes a chatbot row, but the clone only provides erag components.
    • install chatbot therefore has nothing to resolve.
    • The new former-name check never runs, because no layer declares former_names.

    Bump the pin to the #240 commit (or the release that contains it) in this PR. Fix this →

  2. The migration path deletes the user's data without saying so. docs/deployment/upgrade.md:253-261 tells users to run teardown erag. That removes the layer's namespaces (edp, vdb, chat-history, …) and their PVCs, so the documents, vectors and chat history are gone. The page doesn't warn about this. It also doesn't say whether an erag backup can be restored into chatbot: the backup names, version label and layer selector all carry the old name. Say that the data is lost, or document how to carry it over.

  3. The former-name wiring in roles/layer_checks/tasks/run.yaml:114-138 has no test. Only the filter is tested (test_layer_checks.py:1326-1336). The Jinja around it is not: subelements('former_names', skip_missing=True), the item.1 mapping, and the regex_replace suffix. Other tasks in this file are already rendered in tests (e.g. test_supports_upgrade_is_coerced_once_for_gate_and_record). Render this one the same way, with one layer that has former_names and one that doesn't. A test would also show that former_names: erag (a string, not a list) is not handled.

Simplicity

  1. The former-name check builds a suffix and then strips it again. run.yaml:133-134 appends -deployment-manifest to each name it found, and former_name_verdict (filter_plugins/layer_checks.py:144) matches that suffix to get the names back. Pass the found former names directly, e.g. former_name_verdict(layer, found_former_names, env) with found = found_former_names[0]. That removes the regex_replace and the second former_names filter.
    • The second loop (run.yaml:135) repeats the selection from the first (:121). One selection, or one fact holding the planned layers that have former_names, would do.

Consistency / readability

  1. Two test names in src/tests/unit/test_node_scaling_installer.py were missed. test_erag_namespaces_are_found (:365) and test_erag_check_fails_closed (:370) now test _chatbot_namespaces_present; rename them to match.
  2. configs/repos/repos.chatbot.yaml:5 is about 100 characters. The rest of that header block wraps at about 75; rewrap it.

@sys-aibot

sys-aibot commented Dec 1, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Checked against the previous round. These are fixed: the data-loss warning, the wiring test, passing found names directly, the node-scaling test names, and the repos.chatbot.yaml header wrap. Still open or new:

Correctness

  1. Still open: the chatbot-toolkit pin still installs the layer as erag. configs/repos/repos.chatbot.yaml:25 still pins 6fa81aa… (v3.1.0-rc.1). That rev's components.yaml declares layer erag and has no former_names, so:

    • init chatbot writes a chatbot row, but install chatbot finds no chatbot components to resolve.
    • The new former-name check never runs, because no layer in the tree declares former_names. The only references are the docs, run.yaml:121 and the test fixture.

    Bump the pin to the refactor: rename the erag layer to chatbot chatbot-toolkit#240 commit. If #240 isn't merged yet, hold this PR until it is. Fix this →

  2. The former-name read has no error handling. roles/layer_checks/tasks/run.yaml:115-125 calls k8s_info with no rescue. The record read just above it (run.yaml:88-104) is wrapped in a block/rescue that fails with "Could not read a deployment record: check the cluster connection and retry". If the new read fails (Forbidden, timeout), the user gets the raw module error instead. Move this read into the same block, or give it the same rescue. Fix this →

DRY / integrity

  1. The new test adds a second block-flattening helper. src/tests/unit/test_layer_checks.py:1340-1343 defines a nested flat(). _tasks() already exists in the same file (:281) and also walks rescue/always. Use _tasks(...) instead. With _tasks, the test also keeps finding the task if finding 2 moves it into a block's rescue side.

  2. The migration steps contradict the CLI reference. docs/deployment/upgrade.md:397 tells users to edit .solutions.yaml with yq. docs/reference/cli.md:847 says of that same file "do not edit it". Either qualify the cli.md line ("except for the rename in Upgrade a Layer"), or give init a way to drop a row so users don't edit the file by hand.

Readability

  1. Import order: test_layer_checks.py:21 puts former_name_verdict between cluster_probe_verdict and compatibility_dependants. The list is otherwise alphabetical.
  2. Double blank line: docs/deployment/upgrade.md:391-392 leaves two blank lines between the WARNING block and the code fence.

@mik-now
mik-now force-pushed the mikolajn/refactor/layer-chatbot branch from 4884985 to a72e9a8 Compare December 2, 2026 02:09
@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

This push reverts the migration work from rounds 2 and 3: the former-name check in run.yaml, the migration and data-loss section in upgrade.md, and its tests are all gone. The PR is back to a plain rename, so most of the round 1 findings apply again.

Correctness

  1. An existing 3.0.0 install is classed fresh, so the upgrade gates are skipped. This is round 1's finding 1, open again.

    • The record and saved config are read under the new name: roles/layer_checks/tasks/run.yaml:94 and record.yaml:18 use {{ layer }}-deployment-manifest, and config_tracking.yaml:19 and backup/tasks/layer_record.yaml:18 use the same scheme.
    • A cluster running 3.0.0 only has erag-deployment-manifest and erag-config-tracking, so install chatbot finds nothing.
    • The effects:
      • classify_run returns fresh, which skips upgrade-path and backup-freshness.
      • config-tracking falls back to baseline, so VECTOR_DIMS_CHANGED never fires.
      • The old ConfigMap and Secret are left orphaned.
    • Fix: fall back to reading the erag- objects for chatbot, or refuse when erag-deployment-manifest exists. Add a unit test either way. Fix this →
  2. The pin still installs the layer as erag. configs/repos/repos.chatbot.yaml:25 pins 6fa81aa… (v3.1.0-rc.1), and that revision's components.yaml declares layer erag. So init chatbot writes a chatbot row, but install chatbot finds no chatbot components to resolve. Bump the pin to the refactor: rename the erag layer to chatbot chatbot-toolkit#240 commit, or hold this PR until #240 is merged. Fix this →

  3. docs/deployment/upgrade.md documents a path that can't work.

    • :275 and :379 say to back up "with the release that is installed now", meaning the 3.0.0 checkout. That checkout only knows layer erag, so backup chatbot is refused. These lines have to stay backup erag.
    • :373 says "chatbot 3.0.0 installed", but no 3.0.0 release has a layer of that name.
    • :396 and :400 show chatbot: upgrade (3.0.0 -> 3.1.0) and backup-chatbot-…. Given finding 1, a real run prints chatbot: fresh, and the backup is named backup-erag-….
    • The PR body says existing envs need init chatbot, but the page doesn't mention it. It should cover:
      • what happens to config.erag.yaml and to the erag row in .solutions.yaml (which docs/reference/cli.md:798 says not to edit);
      • what happens to the data on the cluster.
  4. src/tests/unit/test_layer_checks.py:12 has a dead import. from ansible_render import render is left over from the reverted wiring test. It is never used, and the nested def render(layer) at :100 shadows it. Remove it.

Integrity / consistency

  1. filter_plugins/layer_checks.py:10 rewrites history. The docstring describes the self-written record of Chatbot Toolkit 3.0.0, and that release's layer was erag. Put erag back. (ERAG_LEGACY and test_legacy_erag_record_lifted_on_read already keep the old name, correctly.)

  2. "eRAG" wording is left in files this PR touches.

    • docs/reference/labels.md:133-134 still label rows "(eRAG)".
    • docs/deployment/openshift.md:21, :369 and :370 still say "eRAG applications", "eRAG layers" and "eRAG HPAs".

Readability

  1. Trailing blank line at EOF. src/tests/unit/test_layer_checks.py:1324 adds an empty last line (flake8 W391).

Todo

  • Read review rules and diff
  • Verify findings against the tree
  • Post review

@mik-now mik-now changed the title refactor: rename the erag layer to chatbot rebranding: rename the erag layer to chatbot Dec 2, 2026
@mik-now
mik-now force-pushed the mikolajn/refactor/layer-chatbot branch from a72e9a8 to 108c15b Compare December 2, 2026 02:32
@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Checked against round 4. These are fixed: the dead render import, the filter_plugins/layer_checks.py:10 history line, the "eRAG" wording in labels.md and openshift.md, and the trailing blank line. Still open or new:

Correctness

  1. Nothing enforces the new "3.0.x is not upgraded in place" rule. docs/deployment/upgrade.md:29-30 now says a 3.0.x install (layer erag) is not upgraded in place. The code doesn't refuse that case:

    • roles/layer_checks/tasks/run.yaml:94, record.yaml:18 and backup/tasks/layer_record.yaml:18 all read {{ layer }}-deployment-manifest.
    • On a 3.0.0 cluster, install chatbot finds no chatbot-deployment-manifest, so the run is classed fresh.
    • upgrade-path and backup-freshness are then skipped, and config-tracking is treated as baseline.
    • The install then runs over the namespaces and releases that erag still owns (rag-ui, edp, vdb, … per toolkit_manager.sh:70).

    The PR documents this as unsupported, but in practice a user gets a silent, ungated install. Fix: refuse when erag-deployment-manifest exists, and name what to do instead. Put the check inside the existing block/rescue at run.yaml:88-104 and add a unit test. Fix this →

  2. The pin still installs the layer as erag. This is open from rounds 2–4. configs/repos/repos.chatbot.yaml:25 pins 6fa81aa… (v3.1.0-rc.1), and that revision's components.yaml declares layer erag. So init chatbot writes a chatbot row, but install chatbot finds no chatbot components to resolve. Bump the pin to the refactor: rename the erag layer to chatbot chatbot-toolkit#240 commit, or hold this PR until #240 is merged. Fix this →

  3. upgrade.md says "not upgraded in place" but gives no next step. :29-30 stops there. A 3.0.x user needs to know:

    • which checkout to tear down erag with;
    • that this deletes the documents, vectors and chat history;
    • whether a backup-erag-… can be restored into chatbot;
    • what to do with config.erag.yaml and the erag row in .solutions.yaml (cli.md:835 says "do not edit it").

Integrity / consistency

  1. upgrade.md:144-146 contradicts :29-30. It says a record written by Chatbot Toolkit 3.0.0 "is read as it is" and replaced on the first write. Under layer chatbot, that record (erag-deployment-manifest) is never read. Either drop the bullet or say it applies only to layer erag.
  2. src/tests/unit/test_layer_checks.py:132-133 asserts the path the docs rule out. classify_run(lift_layer_record(ERAG_LEGACY), "3.1.0", "chatbot") == "upgrade" shows a 3.0.0 erag record upgrading as chatbot. ERAG_LEGACY and the test name are rightly kept, so keep the layer argument as "erag" too.

Readability

  1. Continuation indent is off after the rename. In src/tests/unit/test_layer_checks.py:880, "installer": … is still aligned for ERAG_REQUIRES = {"erag": {. Re-indent it to the new opening brace.

Todo

  • Read review rules and diff
  • Verify findings against the tree
  • Post review

@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

@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

Verdict: needs changes

Checked against round 5. These are fixed: the upgrade.md example no longer shows an erag → chatbot upgrade, and the 3.0.x limit is now stated. The pin is no longer v3.1.0-rc.1, but the replacement is a moving branch (see finding 2). Still open or new:

Correctness

  1. Still open: nothing enforces "a 3.0.x install is not upgraded in place". docs/deployment/upgrade.md:29-30 states the rule, but no code refuses that case.

    • roles/layer_checks/tasks/run.yaml:94, record.yaml:18 and backup/tasks/layer_record.yaml:18 only read {{ layer }}-deployment-manifest.
    • So install chatbot on a 3.0.0 cluster (which has erag-deployment-manifest) is classed fresh.
    • upgrade-path and backup-freshness are skipped, and config-tracking is baseline.
    • The install then runs over the namespaces erag still owns (toolkit_manager.sh:70).

    Refuse when erag-deployment-manifest exists, inside the block/rescue at run.yaml:88-104, and name the fix. Add a unit test. Fix this →

  2. The new pins are moving branches, so init --upgrade can never move a clone.

    • configs/repos/repos.chatbot.yaml:16,25, repos.inference.yaml:17 and repos.agent-toolkit.yaml:12 now use release-3.1 / release-1.2 instead of commit SHAs.
    • _init_reconcile_pins (toolkit_manager.sh:989-990) compares rev strings only. Once an env records release-3.1, init --upgrade prints "nothing to re-pin", and ext/ stays on whatever commit it was cloned at.
    • Two checkouts cloned on different days then run different code under the same record.
    • It also contradicts the manifest header ("each pinned to the rev this layer is validated against") and repos.agent-toolkit.yaml:21, which still pins its own repo by SHA.

    Pin the commit (or release tag) that contains refactor: rename the erag layer to chatbot chatbot-toolkit#240, and the matching inference commit. Fix this →

  3. Still open: upgrade.md says "not upgraded in place" but gives no next step. :29-30 stops there. A 3.0.x user needs to know:

    • which checkout to run teardown erag with;
    • that this deletes documents, vectors and chat history;
    • whether a backup-erag-… can be restored into chatbot;
    • what to do with config.erag.yaml and the erag row in .solutions.yaml (docs/reference/cli.md:872 says "do not edit it").
  4. Still open: src/tests/unit/test_layer_checks.py:132-133 asserts the path the docs rule out. classify_run(lift_layer_record(ERAG_LEGACY), "3.1.0", "chatbot") == "upgrade" shows a 3.0.0 erag record upgrading as chatbot. Keep the layer argument as "erag", matching ERAG_LEGACY and the test name.

Integrity / consistency

  1. Still open: docs/deployment/upgrade.md:144-146 contradicts :29-30. It says a record written by Chatbot Toolkit 3.0.0 "is read as it is". Under layer chatbot, that record (erag-deployment-manifest) is never read. Drop the bullet, or say it applies only to layer erag.

  2. The new worked example doesn't fit a 3.1.0 starting point. upgrade.md:256 says "platform and inference at 1.1.0", and :278/:286 show inference: fresh (none -> 1.1.0) because "its earlier release recorded no version". Chatbot 3.1.0 is pinned with inference release-1.2 and is installed by this installer, which writes an inference record. Use inference 1.2.0 with a reinstall line, or remove the fresh explanation.

  3. The PR changes things its title and body don't cover. The inference re-pin in repos.inference.yaml and repos.agent-toolkit.yaml is not part of the rename. Split it out, or mention it in the PR body.

Readability

  1. Still open: the continuation indent is off. At src/tests/unit/test_layer_checks.py:880 (diff line "installer": … under CHATBOT_REQUIRES = {"chatbot": {), the line is still aligned to the old ERAG_REQUIRES brace. Re-indent it by 6 spaces.

View job run

@mik-now
mik-now force-pushed the mikolajn/refactor/layer-chatbot branch from 365eee6 to 40b5024 Compare December 2, 2026 02:41
@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Checked against round 5. The only change since then is the pin commit (40b5024), which swaps the two SHAs in repos.chatbot.yaml for branch names. Round 5's findings 1 and 3–6 are still open.

Correctness

  1. The chatbot-toolkit pin now follows a moving branch, and nothing shows it contains the rename. configs/repos/repos.chatbot.yaml:25 is now rev: "release-3.1".

    • _checkout_rev (toolkit_manager.sh:736-745) checks out a branch as a local branch at whatever origin/release-3.1 points to right then. So two init chatbot runs a day apart can clone different code, and init chatbot --upgrade picks up whatever was pushed since.
    • This PR only works once that branch declares layer chatbot (refactor: rename the erag layer to chatbot chatbot-toolkit#240). The branch name doesn't guarantee that. If #240 hasn't reached release-3.1, install chatbot finds no chatbot components, which is the same failure as rounds 2–5.
    • The file's own header (:5-6) still says each repo is "pinned to the rev this layer is validated against", and a branch is not that.
    • Fix: pin the commit SHA or tag of the release-3.1 revision that contains #240, with a # vX.Y.Z comment like the other manifests have. Fix this →
  2. Still open: nothing refuses a 3.0.x install, even though the docs say it isn't upgraded in place. docs/deployment/upgrade.md:31-32 rules this path out. But roles/layer_checks/tasks/run.yaml:94 reads only chatbot-deployment-manifest.

    • On a 3.0.0 cluster, install chatbot is therefore classed fresh.
    • That skips upgrade-path and backup-freshness, and treats config-tracking as baseline.
    • The install then runs over the namespaces erag still owns, with no gate.

    Fix: refuse when erag-deployment-manifest exists, and name what to do instead. Put the check inside the existing block/rescue at run.yaml:88-104 and add a unit test. Fix this →

  3. Still open: upgrade.md:31-32 gives a 3.0.x user no next step. The page should say:

    • which checkout to run teardown erag with;
    • that the teardown deletes the documents, vectors and chat history;
    • whether a backup-erag-… can be restored into chatbot;
    • what to do with config.erag.yaml and the erag row in .solutions.yaml (cli.md:846 says "do not edit it").

Minimal change / integrity

  1. The inference pin change is unrelated to the rename and breaks the consistency of the pins. configs/repos/repos.chatbot.yaml:16 moves inference-toolkit from 8389f47… (v1.2.0-rc.1) to the branch release-1.2.

    • repos.inference.yaml:17 and repos.agent-toolkit.yaml:12 still pin 8389f47….
    • Different revs per manifest are allowed (adding-solutions.md:90). But this pin now also follows a moving branch (see finding 1).
    • In a checkout shared with an inference or agent-toolkit env, ext/inference-toolkit can then only be at one of the two revs, and _init_warn_cross_env fires.

    Revert it, or move it to its own PR with a pinned SHA.

  2. Still open: upgrade.md:144-146 contradicts :31-32. It says a record written by Chatbot Toolkit 3.0.0 "is read as it is". Under layer chatbot, that record (erag-deployment-manifest) is never read. Drop the bullet, or say it applies only to layer erag.

  3. Still open: src/tests/unit/test_layer_checks.py:132-133 asserts the path the docs rule out. classify_run(lift_layer_record(ERAG_LEGACY), "3.1.0", "chatbot") == "upgrade" shows a 3.0.0 erag record upgrading as chatbot. Keep the layer argument as "erag", like ERAG_LEGACY and the test name.

Readability

  1. Still open: continuation indent. In src/tests/unit/test_layer_checks.py:880, "installer": … is still aligned for the old ERAG_REQUIRES = {"erag": {. Re-indent it to the new opening brace.

@mik-now
mik-now force-pushed the mikolajn/refactor/layer-chatbot branch 2 times, most recently from f55e18d to 6cace9b Compare December 2, 2026 02:59
@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Checked against round 6. These are fixed:

  • the inference-toolkit pin is back to 8389f47… (v1.2.0-rc.1);
  • upgrade.md no longer says a 3.0.0 record "is read as it is";
  • test_layer_checks.py:132-133 now classifies ERAG_LEGACY under "erag";
  • the continuation indent at test_layer_checks.py:880.

Four findings are still open.

Correctness

  1. The chatbot-toolkit pin still follows a moving branch. configs/repos/repos.chatbot.yaml:25 is rev: "release-3.1".

    • _checkout_rev (toolkit_manager.sh:736-745) checks out origin/release-3.1 as it is at clone time. Two checkouts cloned on different days run different code under the same record.
    • _init_reconcile_pins (toolkit_manager.sh:989-990) compares rev strings only. Once an env records release-3.1, init chatbot --upgrade prints "nothing to re-pin", so a new rev can never be pinned in that file.
    • Nothing here shows that the branch contains refactor: rename the erag layer to chatbot chatbot-toolkit#240 (layer chatbot). If it doesn't, install chatbot finds no chatbot components.
    • It contradicts the file's own header (:5-6, "pinned to the rev this layer is validated against") and the SHA pin on :16.

    Pin the commit SHA or tag that contains #240, with a # vX.Y.Z comment. Fix this →

  2. Nothing refuses a 3.0.x install. docs/deployment/upgrade.md:29 now says "Upgrades cover installs of 3.1.0 or later", but the code doesn't check for an older install.

    • roles/layer_checks/tasks/run.yaml:94 reads only chatbot-deployment-manifest. Nothing in the tree reads erag-deployment-manifest.
    • So on a 3.0.0 cluster, install chatbot is classed fresh. That skips upgrade-path and backup-freshness, and config-tracking falls back to baseline.
    • The install then runs over the namespaces erag still owns (toolkit_manager.sh:70), with no gate.

    Refuse when erag-deployment-manifest exists and name what to do. Put the check inside the existing block/rescue at run.yaml:88-104 and add a unit test. Fix this →

  3. upgrade.md:29 gives a 3.0.x user no next step. The PR body says existing envs need init chatbot, but the page doesn't say:

    • which checkout to run teardown erag with;
    • that the teardown deletes the documents, vectors and chat history;
    • whether a backup-erag-… can be restored into chatbot;
    • what to do with config.erag.yaml and the erag row in .solutions.yaml, which docs/reference/cli.md says not to edit.

Integrity / consistency

  1. The worked example's inference version is wrong for a 3.1.0 starting point. upgrade.md:252 says "platform and inference at 1.1.0". :274 and :282 show inference: fresh (none -> 1.1.0) "because its earlier release recorded no version".

    • Chatbot 3.1.0 is pinned with inference v1.2.0-rc.1 (repos.chatbot.yaml:16).
    • Chatbot 3.1.0 is installed by this installer, which writes an inference record.

    Show inference at 1.2.x with a reinstall line, and drop the fresh explanation.

@mik-now
mik-now force-pushed the mikolajn/refactor/layer-chatbot branch from 6cace9b to 73919e6 Compare December 2, 2026 03:11
@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

Checked against round 7. One thing is fixed: the worked example now starts from chatbot 3.1.0 with inference at 1.2.0 and a reinstall line, and the fresh note is gone. Also new: upgrade.md:29-30 now says to tear down with the release that installed it and that the data is not carried over. Three findings are still open, and there is one new readability point.

Correctness

  1. Still open: the chatbot-toolkit pin follows a moving branch. configs/repos/repos.chatbot.yaml:25 is still rev: "release-3.1".

    • _checkout_rev (toolkit_manager.sh:736-745) clones whatever origin/release-3.1 points to at that moment, so two checkouts can run different code under the same record.
    • _init_reconcile_pins (toolkit_manager.sh:989-990) compares rev strings only, so init chatbot --upgrade can never re-pin an env that has recorded release-3.1.
    • Nothing shows the branch contains refactor: rename the erag layer to chatbot chatbot-toolkit#240 (layer chatbot). If it doesn't, install chatbot finds no chatbot components.
    • The branch pin contradicts the header at :5-6 ("pinned to the rev this layer is validated against") and the SHA pin on :16.

    Pin the SHA or tag that contains #240, with a # vX.Y.Z comment. Fix this →

  2. Still open: no code enforces "an older install (layer erag) needs a fresh reinstall". docs/deployment/upgrade.md:29-30 states the rule. But roles/layer_checks/tasks/run.yaml:94 reads only chatbot-deployment-manifest, and nothing reads erag-deployment-manifest.

    • On a 3.0.x cluster, install chatbot is therefore classed fresh.
    • That skips upgrade-path and backup-freshness, and config-tracking falls back to baseline.
    • The install then runs ungated over the namespaces that erag still owns (toolkit_manager.sh:70).

    Refuse when erag-deployment-manifest exists and name the teardown, inside the block/rescue at run.yaml:88-104. Add a unit test. Fix this →

Integrity / consistency

  1. Partly open: the env-side migration is still missing. upgrade.md:29-30 now covers the teardown and the data loss. But the PR body says existing envs need init chatbot, and the page doesn't say:

    • what to do with config.erag.yaml;
    • what to do with the erag row in .solutions.yaml, which docs/reference/cli.md says not to edit.

    One sentence on each is enough.

Readability

  1. Wrapping in the reworded upgrade.md text:
    • docs/deployment/upgrade.md:265 ("The run ends with") breaks the line after three words. Rewrap that paragraph.
    • :256 (the "Starting point" line) is about 115 characters, longer than the lines around it.

@mik-now
mik-now force-pushed the mikolajn/refactor/layer-chatbot branch from 73919e6 to b81b095 Compare December 2, 2026 04:11
Hard rename, no compatibility for existing envs or clusters: repos.chatbot.yaml
with layer chatbot, help text, docs, node-scaling guard and unit tests follow.
Upgrade docs cover installs of 3.1.0 or later.

Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
Branch pin for now, until the rename lands in chatbot-toolkit; replace with a
release SHA before the release.

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

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

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


Verdict: needs changes

I checked this push against round 8. Three things are fixed:

  • upgrade.md:29-33 now tells users to move settings from config.erag.yaml into config.chatbot.yaml and to remove the erag row from .solutions.yaml.
  • cli.md:95 names that edit as the one exception to "do not edit it".
  • The two wrapping problems in upgrade.md (the "Starting point" line and the "The run ends with" paragraph) are gone.

Two correctness findings are still open.

Correctness

  1. The chatbot-toolkit pin still follows a moving branch. configs/repos/repos.chatbot.yaml:25 is still rev: "release-3.1".

    • _checkout_rev (toolkit_manager.sh:736-745) clones whatever origin/release-3.1 points to at that moment. Two checkouts made on different days can run different code under the same record.
    • _init_reconcile_pins (toolkit_manager.sh:989-990) only compares rev strings. Once an env has recorded release-3.1, init chatbot --upgrade will never move it to a newer rev.
    • Nothing shows that the branch contains refactor: rename the erag layer to chatbot chatbot-toolkit#240 (layer chatbot). If it doesn't, install chatbot finds no chatbot components.
    • A branch pin also goes against the file's own header at :5-6 ("pinned to the rev this layer is validated against") and against the SHA pin on :16.

    Fix: pin the SHA or tag that contains #240, with a # vX.Y.Z comment. Fix this →

  2. No code enforces "an older install (layer erag) needs a fresh reinstall". docs/deployment/upgrade.md:29-30 states the rule, but nothing checks for it. roles/layer_checks/tasks/run.yaml:94 only reads chatbot-deployment-manifest, and nothing under roles/ reads erag-deployment-manifest. On a 3.0.x cluster, a user who skips the teardown step and runs install chatbot gets this:

    • The run is classed fresh, so upgrade-path and backup-freshness are skipped and config-tracking falls back to baseline.
    • The install then runs, unchecked, over the namespaces erag still owns (toolkit_manager.sh:70).

    Fix: refuse when erag-deployment-manifest exists and name the teardown with the old release. Put the check inside the block/rescue at run.yaml:88-104 and add a unit test. Fix this →

Todo

  • Read review rules and diff
  • Check round 8 findings against the tree
  • Post review

@mik-now

mik-now commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author
  1. Intentional pinned release branch will update with commit ref eod as followup PR to release branch.
  2. by design to not obfuscate code.

@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

@AhmedSeemalK
AhmedSeemalK merged commit 3de9438 into intel:release-2.0 Dec 2, 2026
11 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.

4 participants