Skip to content

Remove legacy files from ROI Reporting Agent#434

Merged
toru-takahashi merged 1 commit into
treasure-data:masterfrom
ko47kmr:cleanup/roi-reporting-agent-legacy-files
Apr 13, 2026
Merged

Remove legacy files from ROI Reporting Agent#434
toru-takahashi merged 1 commit into
treasure-data:masterfrom
ko47kmr:cleanup/roi-reporting-agent-legacy-files

Conversation

@ko47kmr
Copy link
Copy Markdown
Contributor

@ko47kmr ko47kmr commented Apr 13, 2026

Summary

  • Remove 10 legacy/duplicate files from engage-box/roi_reporting/agent/ that caused tdx agent push to fail or register empty tools/outputs
  • Add prompt_file: prompt.md to Dashboard Viz/agent.yml so the system prompt is loaded correctly
  • Update README (EN/JA) with concrete UI manual setup instructions, replacing the previous one-liner referencing internal docs

Problem

When running tdx agent push . from the project root, three issues occurred:

  1. Root-level agent.yml / tools.yml / system_prompt.md conflicted with Dashboard Viz/agent.yml, causing tools (0/4) and outputs (0/3) to be empty after push
  2. td_managed_*.yml form interfaces used old form_json_schema format instead of the current form_schema (YAML object), causing validation errors
  3. Duplicate knowledge_base_*.md files at the project root were confusing — the canonical versions live in knowledge_bases/

Changes

Deleted files (10)

File Reason
agent.yml (root) Legacy format; conflicts with Dashboard Viz/agent.yml
tools.yml Legacy format; tool definitions are in Dashboard Viz/agent.yml
system_prompt.md / system_prompt_JA.md Legacy; prompt is Dashboard Viz/prompt.md
knowledge_base_overall_summary.md / _JA.md Duplicate of knowledge_bases/OverallSummary_Spec.md
knowledge_base_campaign_details.md / _JA.md Duplicate of knowledge_bases/CampaignDetails_Spec.md
form_interfaces/td_managed_campaign_details.yml Old format (form_json_schema); replaced by Campaign Details.yml
form_interfaces/td_managed_overall_summary.yml Old format; replaced by Overall Summary.yml

Modified files (3)

File Change
Dashboard Viz/agent.yml Added prompt_file: prompt.md
README.md Replaced "Manual Configuration" section with step-by-step UI setup guide
README_JA.md Same update in Japanese

Test plan

  • tdx agent push . from engage-box/roi_reporting/agent/ succeeds without errors
  • Agent registers 4/4 tools, 3/3 outputs, system prompt (6,800+ chars)
  • 2 form interfaces are created (Overall Summary, Campaign Details)
  • 2 text KBs + 1 database KB are created
  • UI manual setup instructions in README are accurate

🤖 Generated with Claude Code

…gent push

Legacy root-level files (agent.yml, tools.yml, system_prompt.md) caused
tdx agent push to register empty tools/outputs. Old-format form interfaces
(td_managed_*.yml using form_json_schema) caused push validation errors.
Duplicate knowledge base .md files at the project root were confusing.

- Delete 10 legacy/duplicate files (-1,051 lines)
- Add prompt_file to Dashboard Viz/agent.yml
- Update README with concrete UI manual setup instructions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ko47kmr ko47kmr requested a review from a team as a code owner April 13, 2026 05:33
Copilot AI review requested due to automatic review settings April 13, 2026 05:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR cleans up the ROI Reporting Agent configuration to prevent tdx agent push conflicts/validation errors by removing legacy duplicate root-level configs and pointing the active agent definition at the correct prompt file. It also updates the English/Japanese READMEs with concrete UI-based setup steps so users can manually configure the project without relying on internal docs.

Changes:

  • Deleted legacy/duplicate agent config, system prompt, tool config, KB spec, and deprecated form interface files that were conflicting with the canonical structure.
  • Updated Dashboard Viz/agent.yml to load the system prompt via prompt_file: prompt.md.
  • Replaced the README “manual configuration” sections (EN/JA) with step-by-step Agent Foundry UI setup instructions.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
engage-box/roi_reporting/agent/tools.yml Removed legacy tool config in favor of embedded tools/outputs in Dashboard Viz/agent.yml.
engage-box/roi_reporting/agent/system_prompt.md Removed legacy prompt file; canonical prompt now lives under Dashboard Viz/.
engage-box/roi_reporting/agent/system_prompt_JA.md Removed legacy Japanese prompt file; Japanese reference prompt exists under Dashboard Viz/.
engage-box/roi_reporting/agent/README.md Replaced legacy/manual setup note with concrete UI configuration steps.
engage-box/roi_reporting/agent/README_JA.md Same UI setup guidance update in Japanese.
engage-box/roi_reporting/agent/knowledge_base_overall_summary.md Removed duplicate root-level Overall Summary spec (canonical is under knowledge_bases/).
engage-box/roi_reporting/agent/knowledge_base_overall_summary_JA.md Removed duplicate root-level Japanese Overall Summary spec (canonical is under knowledge_bases/).
engage-box/roi_reporting/agent/knowledge_base_campaign_details.md Removed duplicate root-level Campaign Details spec (canonical is under knowledge_bases/).
engage-box/roi_reporting/agent/knowledge_base_campaign_details_JA.md Removed duplicate root-level Japanese Campaign Details spec (canonical is under knowledge_bases/).
engage-box/roi_reporting/agent/form_interfaces/td_managed_overall_summary.yml Removed deprecated form interface format (form_json_schema / JSON strings).
engage-box/roi_reporting/agent/form_interfaces/td_managed_campaign_details.yml Removed deprecated form interface format (form_json_schema / JSON strings).
engage-box/roi_reporting/agent/Dashboard Viz/agent.yml Added prompt_file: prompt.md so the agent loads the correct system prompt.
engage-box/roi_reporting/agent/agent.yml Removed legacy root-level agent config that conflicted with Dashboard Viz/agent.yml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@toru-takahashi toru-takahashi merged commit 32bde02 into treasure-data:master Apr 13, 2026
6 of 7 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.

3 participants