Skip to content

chore: audit scripts, archive dead code, update CLAUDE.md#65

Merged
jeremylongshore merged 2 commits intomainfrom
chore/scripts-audit-cleanup
Feb 19, 2026
Merged

chore: audit scripts, archive dead code, update CLAUDE.md#65
jeremylongshore merged 2 commits intomainfrom
chore/scripts-audit-cleanup

Conversation

@jeremylongshore
Copy link
Copy Markdown
Collaborator

@jeremylongshore jeremylongshore commented Feb 19, 2026

Summary

  • Archived 27 dead/superseded/migration scripts and directories to scripts/archive/
  • Fixed Makefile smoke-bob-agent-engine-dev target to use current script
  • Archived legacy deploy-agent-engine.yml workflow (replaced by inline deploy)
  • Updated CLAUDE.md: version v2.0.0→v6.1.0, added missing test markers, added infrastructure dirs to layout, refreshed changelog

Details

Scripts archived (no longer active):

  • R4 violations: deploy_all_agents.sh (manual deploy forbidden)
  • Superseded: smoke_test_bob_agent_engine_dev.py, smoke_test_agent_engine.py (replaced by run_agent_engine_dev_smoke.py)
  • Legacy workflow: quick_deploy.py + deploy-agent-engine.yml
  • One-off migrations: migrate_agentcards_to_a2a.py, export_agentcards.py, refactor_to_lazy_app_pattern.py
  • Orphaned: check_live3_readiness.py, check_org_storage_readiness.py
  • Scaffolds/dev: run_a2a_tck_local.sh, test_adk_knowledge.py
  • Dirs: bucket_consolidation/, datahub_setup/, adk-docs-crawler/, knowledge_ingestion/

CLAUDE.md fixes:

  • Version updated to match actual latest tag (v6.1.0)
  • Added 3 missing pytest markers: e2e, smoke, contract
  • Agent directory layout now shows all 9 infrastructure directories
  • Changelog refreshed with recent release history

24 active scripts remain, all verified as referenced by Makefile or CI workflows.

Test plan

  • CI passes (lint, tests)
  • make help still lists all expected targets
  • make smoke-bob-agent-engine-dev uses correct script path
  • No broken imports from archived scripts

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated project documentation to v6.1.0 and reorganized navigation to emphasize canonical docs and single-doc-folder rule.
    • Adjusted release/version handling logic in CI to improve reliability.
  • Tests
    • Enhanced test markers with e2e, smoke, and contract tags.
    • Refined smoke-test execution to a dedicated, more consistent invocation.

Scripts cleanup:
- Archive 11 dead/superseded/migration scripts to scripts/archive/
  - deploy_all_agents.sh (R4 violation - manual deploy)
  - smoke_test_bob_agent_engine_dev.py (superseded by run_agent_engine_dev_smoke.py)
  - smoke_test_agent_engine.py (superseded)
  - quick_deploy.py + deploy-agent-engine.yml (legacy deploy workflow)
  - migrate_agentcards_to_a2a.py, export_agentcards.py, refactor_to_lazy_app_pattern.py
  - check_live3_readiness.py, check_org_storage_readiness.py (orphaned)
  - run_a2a_tck_local.sh (scaffold-only), test_adk_knowledge.py
- Archive 4 one-off directories: bucket_consolidation/, datahub_setup/,
  adk-docs-crawler/, knowledge_ingestion/
- Fix Makefile smoke-bob-agent-engine-dev target to use current script

CLAUDE.md updates:
- Version: v2.0.0 → v6.1.0 (matches latest git tag)
- Add 3 missing pytest markers (e2e, smoke, contract)
- Add 9 infrastructure directories to agent layout diagram
- Update changelog with recent releases
- Update last-modified date to 2026-02-19

24 active scripts remain, all referenced by Makefile or CI workflows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Archive dead scripts and update documentation to v6.1.0

✨ Enhancement 📝 Documentation

Grey Divider

Walkthroughs

Description
• Archived 15 dead/superseded scripts and directories to scripts/archive/
• Fixed Makefile smoke-bob-agent-engine-dev target to use current script
• Updated CLAUDE.md version v2.0.0→v6.1.0 with infrastructure directories
• Added 3 missing pytest markers: e2e, smoke, contract
Diagram
flowchart LR
  A["Dead/Superseded Scripts"] -->|Archive| B["scripts/archive/"]
  C["Makefile Target"] -->|Fix Path| D["run_agent_engine_dev_smoke.py"]
  E["CLAUDE.md"] -->|Update Version| F["v6.1.0"]
  E -->|Add Infrastructure Dirs| G["9 Agent Directories"]
  E -->|Add Pytest Markers| H["e2e, smoke, contract"]
Loading

Grey Divider

File Changes

1. CLAUDE.md 📝 Documentation +25/-19

Update version, infrastructure layout, pytest markers

CLAUDE.md


2. Makefile 🐞 Bug fix +2/-2

Fix smoke test target script path reference

Makefile


3. scripts/archive/adk-docs-crawler/.env.example Additional files +0/-0

...

scripts/archive/adk-docs-crawler/.env.example


View more (30)
4. scripts/archive/adk-docs-crawler/README.md Additional files +0/-0

...

scripts/archive/adk-docs-crawler/README.md


5. scripts/archive/adk-docs-crawler/__init__.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/init.py


6. scripts/archive/adk-docs-crawler/__main__.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/main.py


7. scripts/archive/adk-docs-crawler/adk_docs_chunker.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/adk_docs_chunker.py


8. scripts/archive/adk-docs-crawler/adk_docs_crawler.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/adk_docs_crawler.py


9. scripts/archive/adk-docs-crawler/adk_docs_extract.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/adk_docs_extract.py


10. scripts/archive/adk-docs-crawler/adk_docs_uploader.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/adk_docs_uploader.py


11. scripts/archive/adk-docs-crawler/config.py Additional files +0/-0

...

scripts/archive/adk-docs-crawler/config.py


12. scripts/archive/bucket_consolidation/cleanup_empty_buckets.sh Additional files +0/-0

...

scripts/archive/bucket_consolidation/cleanup_empty_buckets.sh


13. scripts/archive/bucket_consolidation/consolidate_buckets.sh Additional files +0/-0

...

scripts/archive/bucket_consolidation/consolidate_buckets.sh


14. scripts/archive/bucket_consolidation/consolidate_to_vertex_search.sh Additional files +0/-0

...

scripts/archive/bucket_consolidation/consolidate_to_vertex_search.sh


15. scripts/archive/bucket_consolidation/find_all_data.sh Additional files +0/-0

...

scripts/archive/bucket_consolidation/find_all_data.sh


16. scripts/archive/bucket_consolidation/import_to_vertex_search.py Additional files +0/-0

...

scripts/archive/bucket_consolidation/import_to_vertex_search.py


17. scripts/archive/bucket_consolidation/verify_no_duplicates.sh Additional files +0/-0

...

scripts/archive/bucket_consolidation/verify_no_duplicates.sh


18. scripts/archive/check_live3_readiness.py Additional files +0/-0

...

scripts/archive/check_live3_readiness.py


19. scripts/archive/check_org_storage_readiness.py Additional files +0/-0

...

scripts/archive/check_org_storage_readiness.py


20. scripts/archive/datahub_setup/create_datahub.sh Additional files +0/-0

...

scripts/archive/datahub_setup/create_datahub.sh


21. scripts/archive/datahub_setup/safe_migration_plan.sh Additional files +0/-0

...

scripts/archive/datahub_setup/safe_migration_plan.sh


22. scripts/archive/deploy-agent-engine.yml.bak Additional files +0/-0

...

scripts/archive/deploy-agent-engine.yml.bak


23. scripts/archive/deploy_all_agents.sh Additional files +0/-0

...

scripts/archive/deploy_all_agents.sh


24. scripts/archive/export_agentcards.py Additional files +0/-0

...

scripts/archive/export_agentcards.py


25. scripts/archive/knowledge_ingestion/ingest_adk_docs.py Additional files +0/-0

...

scripts/archive/knowledge_ingestion/ingest_adk_docs.py


26. scripts/archive/migrate_agentcards_to_a2a.py Additional files +0/-0

...

scripts/archive/migrate_agentcards_to_a2a.py


27. scripts/archive/quick_deploy.py Additional files +0/-0

...

scripts/archive/quick_deploy.py


28. scripts/archive/refactor_to_lazy_app_pattern.py Additional files +0/-0

...

scripts/archive/refactor_to_lazy_app_pattern.py


29. scripts/archive/run_a2a_tck_local.sh Additional files +0/-0

...

scripts/archive/run_a2a_tck_local.sh


30. scripts/archive/setup_vertex_search.sh Additional files +0/-0

...

scripts/archive/setup_vertex_search.sh


31. scripts/archive/smoke_test_agent_engine.py Additional files +0/-0

...

scripts/archive/smoke_test_agent_engine.py


32. scripts/archive/smoke_test_bob_agent_engine_dev.py Additional files +0/-0

...

scripts/archive/smoke_test_bob_agent_engine_dev.py


33. scripts/archive/test_adk_knowledge.py Additional files +0/-0

...

scripts/archive/test_adk_knowledge.py


Grey Divider

Qodo Logo

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 19, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Updated documentation versioning and directory layout in CLAUDE.md; Makefile smoke target now calls a dedicated smoke script with an agent argument; release workflow adjusted how PREV version components are extracted using cut operations.

Changes

Cohort / File(s) Summary
Documentation & Status
CLAUDE.md
Bumped status to v6.1.0; expanded Key Documents and standards references; replaced collapsed agents/ tree with an expanded listing (a2a, agent_engine, arv, config, mission_spec, notifications, tools, utils, workflows, shared_tools, shared_contracts); added a2a_gateway and github_webhook under services; added pytest markers (e2e, smoke, contract); updated changelog date and condensed changelog entry.
Build System (Makefile)
Makefile
Updated smoke-bob-agent-engine-dev target: removed "Phase 5" note and changed command from module run -m scripts.smoke_test_bob_agent_engine_dev to direct script invocation scripts/run_agent_engine_dev_smoke.py --agent bob.
CI Release Workflow
.github/workflows/release.yml
Changed parsing of PREV version into MA, MI, PA by using three cut operations instead of a shell IFS/read here-document; bump arithmetic and flow unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 Hopped from two to six point one,

Files rebranched beneath the sun,
A make command now sings with args,
CI snips version with tidy tugs,
I nibble carrots, changes done.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: auditing scripts, archiving dead code, and updating CLAUDE.md documentation. It matches the core work described in the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/scripts-audit-cleanup

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @jeremylongshore, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances repository clarity and documentation accuracy. It systematically cleans up the scripts/ directory by archiving numerous outdated or unused scripts and directories, ensuring that only active and relevant code remains. Concurrently, it updates the core CLAUDE.md documentation to accurately reflect the project's current version, testing practices, and directory structure, while also correcting a Makefile entry to point to the appropriate smoke test script. These changes collectively streamline development workflows and provide a more precise overview of the project's state.

Highlights

  • Script and Directory Archiving: Archived 27 dead, superseded, or migration scripts and directories by moving them to scripts/archive/ to improve repository hygiene and remove outdated code.
  • Makefile Update: Corrected the smoke-bob-agent-engine-dev target in the Makefile to reference the current and appropriate smoke test script.
  • CLAUDE.md Documentation Refresh: Updated CLAUDE.md to reflect the latest project status (v6.1.0), added missing pytest markers (e2e, smoke, contract), expanded the agent directory layout to include nine infrastructure directories, and refreshed the changelog with recent release history.
Changelog
  • CLAUDE.md
    • Updated the current status version from v2.0.0 to v6.1.0 and refined key milestones.
    • Expanded the agent directory layout to include nine additional infrastructure directories.
    • Added e2e, smoke, and contract pytest markers to the documentation.
    • Refreshed the changelog section with recent release history, including details for v6.1.0 and v5.0.0-sovereign.
  • Makefile
    • Corrected the smoke-bob-agent-engine-dev target to reference the current smoke test script.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • scripts/archive/deploy-agent-engine.yml.bak
Activity
  • No human activity has been recorded on this pull request since its creation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is a great cleanup effort, archiving numerous outdated scripts and updating documentation to reflect the current state of the repository. The changes in CLAUDE.md and the Makefile are accurate and align with the goal of removing dead code. I've found one minor formatting issue in the directory layout diagram in CLAUDE.md that I've left a comment on. Overall, this is a valuable contribution to repository maintenance.

shared_tools/ # Shared tool implementations
shared_contracts/ # JSON schemas for agent communication
├── iam_index/ # Tier 3: Knowledge indexing
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This vertical bar appears to be a formatting artifact that disrupts the visual tree structure. It incorrectly implies that a2a/ and the subsequent directories are nested under iam_index/, when they should be siblings. Removing this line will correct the visual hierarchy.

The heredoc `<<EOF ... EOF` at line 103-105 broke YAML parsing because
the unindented `EOF` terminator was interpreted as a YAML key. Replace
with `cut -d. -f` to split version components, which avoids heredoc
entirely.

This was causing every release.yml run to fail with "workflow file issue".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Feb 19, 2026

Greptile Summary

This PR archives 27 dead/superseded/migration scripts and updates documentation to reflect the current v6.1.0 state. The cleanup removes R4-violating manual deployment scripts, one-off migration utilities, and legacy scaffolding code.

Key changes:

  • CLAUDE.md: Version updated from v2.0.0 to v6.1.0, added 3 missing pytest markers (e2e, smoke, contract), expanded agent directory layout to show all 9 infrastructure directories, refreshed changelog
  • Makefile: Fixed smoke-bob-agent-engine-dev target to use current script path
  • Scripts: Archived 11 Python scripts, 3 shell scripts, 3 directories, and 1 legacy workflow

Critical issue found:
The archived scripts/smoke_test_agent_engine.py is still actively referenced by .github/workflows/deploy-containerized-dev.yml (lines 209, 226). This workflow will fail when triggered because:

  1. The script path scripts/smoke_test_agent_engine.py no longer exists (moved to scripts/archive/)
  2. The replacement script scripts/run_agent_engine_dev_smoke.py doesn't support the --config-only flag that the workflow expects

Recommendations:

  • Either update the workflow to use the new script path and adapt to its interface, or restore smoke_test_agent_engine.py if the workflow is still actively used
  • Verify that deploy-containerized-dev.yml workflow is actually in use (it may itself be legacy and need archiving)

Confidence Score: 2/5

  • This PR has a critical broken reference that will cause workflow failures
  • The archived smoke_test_agent_engine.py script is still referenced by an active CI workflow (deploy-containerized-dev.yml), which will cause the workflow to fail when triggered. Additionally, the replacement script doesn't support the --config-only flag that the workflow expects. While the documentation updates and most archival work are sound, this broken reference is a blocking issue that needs resolution before merge.
  • Pay close attention to scripts/archive/smoke_test_agent_engine.py and .github/workflows/deploy-containerized-dev.yml - the workflow references an archived script and will fail

Important Files Changed

Filename Overview
CLAUDE.md Updated version from v2.0.0 to v6.1.0, added missing pytest markers (e2e, smoke, contract), expanded agent directory layout with 9 infrastructure directories, refreshed changelog
Makefile Updated smoke-bob-agent-engine-dev target to use current script path (run_agent_engine_dev_smoke.py)
scripts/archive/smoke_test_agent_engine.py Archived smoke test script, but still referenced by active workflow .github/workflows/deploy-containerized-dev.yml (lines 209, 226)
scripts/archive/smoke_test_bob_agent_engine_dev.py Archived and replaced by run_agent_engine_dev_smoke.py, properly updated in Makefile

Last reviewed commit: 235e618

Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

33 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Feb 19, 2026

Additional Comments (1)

scripts/archive/smoke_test_agent_engine.py
This archived script is still referenced by the active workflow .github/workflows/deploy-containerized-dev.yml on lines 209 and 226. The workflow calls python scripts/smoke_test_agent_engine.py --config-only which will fail since the script has been moved to the archive directory.

The replacement script scripts/run_agent_engine_dev_smoke.py also does not support the --config-only flag that the workflow expects.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@CLAUDE.md`:
- Around line 34-38: The CLAUDE.md file currently contains expanded
documentation (notably the "Current Status (v6.1.0)" block and the other
detailed update sections referenced in the review) which violates the
single-doc-folder rule; move the full detailed content from those sections into
appropriately named files under 000-docs/ (preserving headings and any
metadata), replace each moved block in CLAUDE.md with a concise pointer/summary
line that includes the version tag and a relative link to the new 000-docs/
file, and ensure any internal references or TOC entries are updated to point to
the new 000-docs/ locations so CLAUDE.md remains a brief index only.

In `@Makefile`:
- Around line 433-436: The Makefile target smoke-bob-agent-engine-dev currently
calls scripts/run_agent_engine_dev_smoke.py with an explicit --agent bob while
other related targets call the same script relying on its default; make the
usage consistent by either (A) adding --agent bob to all Makefile targets that
invoke scripts/run_agent_engine_dev_smoke.py so every target passes --agent
explicitly, or (B) removing --agent bob from the smoke-bob-agent-engine-dev
target so every invocation relies on the script default; update the
smoke-bob-agent-engine-dev target (and the other targets that call
run_agent_engine_dev_smoke.py) accordingly to match the chosen approach.

Comment on lines +34 to 38
**Current Status (v6.1.0):**
- **Version**: v6.1.0
- **Deployment**: Infrastructure ready, Terraform + GitHub Actions for all deployments (R4 compliance)
- **New in v2.0.0**: Canonical agent IDs, enterprise controls, Mission Spec v1
- **Key milestones**: Canonical agent IDs, enterprise controls, Mission Spec v1, testing harness, CI gates

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

R6 single-doc-folder rule: move detailed updates into 000-docs/ and keep CLAUDE.md as a pointer.

Lines 34-38, 240-252, 455-461, and 622-635 expand documentation content outside 000-docs/, which conflicts with the single-doc-folder rule. Please move the detailed content into 000-docs/ and keep this file as a brief pointer/index.

As per coding guidelines, “Keep all documentation in a single 000-docs/ folder - do not scatter documentation across README.md, wiki/, agent subdirectories, or other locations (R6 Hard Mode Rule)”.

Also applies to: 240-252, 455-461, 622-635

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` around lines 34 - 38, The CLAUDE.md file currently contains
expanded documentation (notably the "Current Status (v6.1.0)" block and the
other detailed update sections referenced in the review) which violates the
single-doc-folder rule; move the full detailed content from those sections into
appropriately named files under 000-docs/ (preserving headings and any
metadata), replace each moved block in CLAUDE.md with a concise pointer/summary
line that includes the version tag and a relative link to the new 000-docs/
file, and ensure any internal references or TOC entries are updated to point to
the new 000-docs/ locations so CLAUDE.md remains a brief index only.

Comment on lines +433 to +436
smoke-bob-agent-engine-dev: ## Run dev smoke test against Bob's Agent Engine instance
@echo "$(BLUE)🚦 Running Bob Agent Engine dev smoke test...$(NC)"
@echo "$(YELLOW)ℹ️ Requires BOB_AGENT_ENGINE_NAME_DEV to be set after dev deployment$(NC)"
@$(PYTHON) -m scripts.smoke_test_bob_agent_engine_dev
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py --agent bob
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify the script exists and supports the --agent flag, and check other call sites.
fd -a 'run_agent_engine_dev_smoke.py'
echo "---"
rg -n -- '--agent|argparse|click|typer' scripts/run_agent_engine_dev_smoke.py
echo "---"
rg -n -- 'run_agent_engine_dev_smoke.py' Makefile scripts -g '!scripts/archive/**'

Repository: intent-solutions-io/iam-bobs-brain

Length of output: 1119


🏁 Script executed:

sed -n '55,75p' scripts/run_agent_engine_dev_smoke.py

Repository: intent-solutions-io/iam-bobs-brain

Length of output: 669


Align --agent flag usage across targets for consistency.

The script supports --agent bob (default value is "bob"), so line 436 won't fail. However, targets at lines 378 and 383 rely on the implicit default while line 436 is explicit. For clarity and maintainability, either explicitly pass --agent bob to all targets or remove it from line 436 to rely consistently on defaults.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Makefile` around lines 433 - 436, The Makefile target
smoke-bob-agent-engine-dev currently calls scripts/run_agent_engine_dev_smoke.py
with an explicit --agent bob while other related targets call the same script
relying on its default; make the usage consistent by either (A) adding --agent
bob to all Makefile targets that invoke scripts/run_agent_engine_dev_smoke.py so
every target passes --agent explicitly, or (B) removing --agent bob from the
smoke-bob-agent-engine-dev target so every invocation relies on the script
default; update the smoke-bob-agent-engine-dev target (and the other targets
that call run_agent_engine_dev_smoke.py) accordingly to match the chosen
approach.

@qodo-code-review
Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Smoke env vars inconsistent 🐞 Bug ✓ Correctness
Description
The Makefile target smoke-bob-agent-engine-dev still tells users to set
BOB_AGENT_ENGINE_NAME_DEV, but it now runs run_agent_engine_dev_smoke.py which uses
build_agent_config() and different env-var naming. The new smoke script also prints guidance to
export AGENT_ENGINE_*_ID_DEV, while the config loader expects AGENT_ENGINE_*_DEV, making the
smoke test appear “not configured” even after following documented setup.
Code

Makefile[R433-436]

+smoke-bob-agent-engine-dev: ## Run dev smoke test against Bob's Agent Engine instance
	@echo "$(BLUE)🚦 Running Bob Agent Engine dev smoke test...$(NC)"
	@echo "$(YELLOW)ℹ️  Requires BOB_AGENT_ENGINE_NAME_DEV to be set after dev deployment$(NC)"
-	@$(PYTHON) -m scripts.smoke_test_bob_agent_engine_dev
+	@$(PYTHON) scripts/run_agent_engine_dev_smoke.py --agent bob
Evidence
The updated Makefile no longer runs the legacy script that consumed BOB_AGENT_ENGINE_NAME_DEV, but
it still instructs users to set it. Separately, the new smoke test’s printed env-var guidance
(..._ID_DEV) does not match the config module’s lookup (AGENT_ENGINE_{AGENT}_{ENV}), so
following the smoke script’s own instructions won’t configure it.

Makefile[433-436]
scripts/archive/smoke_test_bob_agent_engine_dev.py[12-17]
scripts/run_agent_engine_dev_smoke.py[16-20]
scripts/run_agent_engine_dev_smoke.py[121-137]
agents/config/agent_engine.py[116-150]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`make smoke-bob-agent-engine-dev` now runs `scripts/run_agent_engine_dev_smoke.py`, but the Makefile and multiple docs still instruct setting `BOB_AGENT_ENGINE_NAME_DEV` (legacy full resource name). Additionally, `run_agent_engine_dev_smoke.py` prints guidance to set `AGENT_ENGINE_*_ID_DEV`, while `agents/config/agent_engine.py` actually reads `AGENT_ENGINE_*_DEV`.

### Issue Context
This creates a high-friction failure mode where users follow the printed/documented setup, but `build_agent_config()` returns `None` and the smoke test exits as “not configured”.

### Fix Focus Areas
- Makefile[433-436]
- scripts/run_agent_engine_dev_smoke.py[16-20]
- scripts/run_agent_engine_dev_smoke.py[121-137]
- agents/config/agent_engine.py[116-150]
- scripts/archive/smoke_test_bob_agent_engine_dev.py[12-17]

### Suggested approach
1) Update `agents/config/agent_engine.get_agent_engine_id()` to support both:
  - `AGENT_ENGINE_{AGENT}_{ENV}` (current)
  - `AGENT_ENGINE_{AGENT}_ID_{ENV}` (what the smoke script/docs print)
  Optionally also parse legacy `BOB_AGENT_ENGINE_NAME_DEV` by extracting the trailing engine ID.
2) Update `run_agent_engine_dev_smoke.py` to print the *actual* supported env var names (and mention accepted fallbacks).
3) Update the Makefile echo line to match the new convention (or mention both conventions during transition).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

Comment on lines +433 to +436
smoke-bob-agent-engine-dev: ## Run dev smoke test against Bob's Agent Engine instance
@echo "$(BLUE)🚦 Running Bob Agent Engine dev smoke test...$(NC)"
@echo "$(YELLOW)ℹ️ Requires BOB_AGENT_ENGINE_NAME_DEV to be set after dev deployment$(NC)"
@$(PYTHON) -m scripts.smoke_test_bob_agent_engine_dev
@$(PYTHON) scripts/run_agent_engine_dev_smoke.py --agent bob
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Smoke env vars inconsistent 🐞 Bug ✓ Correctness

The Makefile target smoke-bob-agent-engine-dev still tells users to set
BOB_AGENT_ENGINE_NAME_DEV, but it now runs run_agent_engine_dev_smoke.py which uses
build_agent_config() and different env-var naming. The new smoke script also prints guidance to
export AGENT_ENGINE_*_ID_DEV, while the config loader expects AGENT_ENGINE_*_DEV, making the
smoke test appear “not configured” even after following documented setup.
Agent Prompt
### Issue description
`make smoke-bob-agent-engine-dev` now runs `scripts/run_agent_engine_dev_smoke.py`, but the Makefile and multiple docs still instruct setting `BOB_AGENT_ENGINE_NAME_DEV` (legacy full resource name). Additionally, `run_agent_engine_dev_smoke.py` prints guidance to set `AGENT_ENGINE_*_ID_DEV`, while `agents/config/agent_engine.py` actually reads `AGENT_ENGINE_*_DEV`.

### Issue Context
This creates a high-friction failure mode where users follow the printed/documented setup, but `build_agent_config()` returns `None` and the smoke test exits as “not configured”.

### Fix Focus Areas
- Makefile[433-436]
- scripts/run_agent_engine_dev_smoke.py[16-20]
- scripts/run_agent_engine_dev_smoke.py[121-137]
- agents/config/agent_engine.py[116-150]
- scripts/archive/smoke_test_bob_agent_engine_dev.py[12-17]

### Suggested approach
1) Update `agents/config/agent_engine.get_agent_engine_id()` to support both:
   - `AGENT_ENGINE_{AGENT}_{ENV}` (current)
   - `AGENT_ENGINE_{AGENT}_ID_{ENV}` (what the smoke script/docs print)
   Optionally also parse legacy `BOB_AGENT_ENGINE_NAME_DEV` by extracting the trailing engine ID.
2) Update `run_agent_engine_dev_smoke.py` to print the *actual* supported env var names (and mention accepted fallbacks).
3) Update the Makefile echo line to match the new convention (or mention both conventions during transition).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@jeremylongshore jeremylongshore merged commit 3d1bf78 into main Feb 19, 2026
14 of 15 checks passed
@jeremylongshore jeremylongshore deleted the chore/scripts-audit-cleanup branch February 19, 2026 20:11
jeremylongshore pushed a commit that referenced this pull request Feb 20, 2026
- CLAUDE.md: add separator comment between agent and infrastructure
  dirs in tree diagram (fixes misleading nesting visual)
- Makefile: fix env var in smoke-bob-agent-engine-dev from legacy
  BOB_AGENT_ENGINE_NAME_DEV to correct AGENT_ENGINE_BOB_DEV; remove
  redundant --agent bob flag (bob is already the default)
- run_agent_engine_dev_smoke.py: fix env var guidance from
  AGENT_ENGINE_*_ID_DEV to AGENT_ENGINE_*_DEV (matches what
  agents/config/agent_engine.py actually reads)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jeremylongshore added a commit that referenced this pull request Feb 20, 2026
- CLAUDE.md: add separator comment between agent and infrastructure
  dirs in tree diagram (fixes misleading nesting visual)
- Makefile: fix env var in smoke-bob-agent-engine-dev from legacy
  BOB_AGENT_ENGINE_NAME_DEV to correct AGENT_ENGINE_BOB_DEV; remove
  redundant --agent bob flag (bob is already the default)
- run_agent_engine_dev_smoke.py: fix env var guidance from
  AGENT_ENGINE_*_ID_DEV to AGENT_ENGINE_*_DEV (matches what
  agents/config/agent_engine.py actually reads)

Co-authored-by: jeremylongshore <jeremy@intentsolutions.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant