Skip to content

docs: document CLI architecture and commands, restructure repo folders, and prune unused .github bots - #435

Merged
utkarsh232005 merged 1 commit into
mainfrom
chore/docs-structure-and-github-cleanup
Nov 30, 2026
Merged

utkarsh232005 merged 1 commit into
mainfrom
chore/docs-structure-and-github-cleanup

Conversation

@utkarsh232005

@utkarsh232005 utkarsh232005 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  1. Documentation Overhaul

    • Added docs/guides/architecture.md detailing how KDM works end-to-end (CLI/TUI entrypoints, 22 built-in Kubernetes analyzers + 3 integration analyzers, Copilot shell & slash commands, 4-tier Graceful Degradation Ladder, Multi-Agent Council + Python NDJSON bridge, AgentRegistry / AgentTool / CodebaseInvestigatorAgent, @google/genai + GeminiSession, declarative ToolRegistry + SafetyPrompt gate, HTTP/MCP servers, and config/alert storage).
    • Updated docs/guides/commands.md with all 12 CLI commands, flags, Copilot slash commands, interactive Ink dashboard keybindings, HTTP endpoints, MCP tools, config keys, and environment variables.
    • Updated README.md, docs/README.md, docs/guides/what-is-kdm.md, and CONTRIBUTING.md.
  2. Repository Structure Cleanup

    • Organized docs/ into docs/guides/, docs/releases/, and docs/plans/, keeping the repository root limited to standard project metadata (README.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, LICENSE).
    • Consolidated scattered tests into unified test roots: src/analysis/__tests__/* -> src/__tests__/analysis/ and agents/test_council.py -> agents/tests/test_council.py (with updated relative imports and sys.path).
    • Removed stale leftover docs/UPGRADE-v2.md template and archived the planning spec cleanly to docs/plans/multi-agent-implementation-plan.md.
    • Added .pytest_cache/ to .gitignore.
  3. .github/ Script & Workflow Pruning

    • Removed unwired bot scripts (bot-inactivity*.cjs, bot-on-pr-merged.cjs, bot/bot-recommend-issues.cjs, commands/*), their standalone tests/ESLint/npm files, .github/docs-template/, and .github/workflows/changelog.yml.
    • Slimmed .github/scripts/helpers/api.cjs down to buildBotContext, addLabels, and updatePullRequest (removing dead checks.cjs, comments.cjs, constants.cjs, index.cjs) for the active labeler.yml workflow.
    • Cleaned stale .github/scripts/package*.json and changelog.yml references from .github/dependabot.yml and .github/CODEOWNERS.

Verification

  • npm run check:types (tsc --noEmit): passed
  • npm run build (tsup + declarations): passed
  • npm test (Vitest): 83/83 test files passed (889/889 tests)
  • pytest agents/: 287 passed, 1 skipped (1 pre-existing skip in agents/tests/test_perf_budget.py)
  • .github YAML validation (11 remaining YAML configs), pr-labeler.cjs mocked smoke check, and markdown cross-link verification: passed

Summary by CodeRabbit

  • Chores

    • Automatic generation of release changelogs and updates to versioned documentation have been removed. Releases will no longer trigger these updates through the automated workflow.
  • Tests

    • Test files were reorganized and a documentation reference was updated. Test behavior and assertions remain unchanged.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 16:28

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request removes the changelog workflow that generated release notes and updated versioned documentation. It also moves analysis test files, updates their import paths, and changes a coding-style guide reference in a test comment.

Changes: Changelog workflow removal

Layer / File(s) Summary
Remove changelog automation
.github/workflows/changelog.yml
The workflow and its release, tag, and manual triggers were removed, along with release-note generation, documentation updates, and commit and push steps.

Test path updates

Layer / File(s) Summary
Update test paths and reference
src/__tests__/analysis/*, src/__tests__/phase8-analyzers.test.ts
Analysis test files moved to src/__tests__/analysis/, and their imports were updated. A test comment now refers to docs/guides/coding-style.md. Test behavior and assertions are unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: yuvraj-sarathe

Merge Risk: Minimal · up to 70082 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title lists three changes: CLI architecture and command documentation, repository folder restructuring, and pruning of unused .github bots. The objectives and summary confirm all three. The title …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title lists three changes: CLI architecture and command documentation, repository folder restructuring, and pruning of unused .github bots. The objectives and summary confirm all three. The title is long (101 characters) but accurately describes the main changes. It is a single line and does not use vague terms.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b392c01 and 7008230.

Files ignored due to path filters: 57

  • .github/CODEOWNERS is excluded by none and included by none
  • .github/dependabot.yml is excluded by none and included by none
  • .github/docs-template/README.md is excluded by none and included by none
  • .github/docs-template/config/README.md is excluded by none and included by none
  • .github/docs-template/health/README.md is excluded by none and included by none
  • .github/docs-template/logs/README.md is excluded by none and included by none
  • .github/docs-template/show/README.md is excluded by none and included by none
  • .github/docs-template/watch/README.md is excluded by none and included by none
  • .github/scripts/bot-inactivity-comments.cjs is excluded by none and included by none
  • .github/scripts/bot-inactivity.cjs is excluded by none and included by none
  • .github/scripts/bot-on-pr-merged.cjs is excluded by none and included by none
  • .github/scripts/bot/bot-recommend-issues.cjs is excluded by none and included by none
  • .github/scripts/commands/assign-comments.cjs is excluded by none and included by none
  • .github/scripts/commands/assign.cjs is excluded by none and included by none
  • .github/scripts/commands/finalize-comments.cjs is excluded by none and included by none
  • .github/scripts/commands/finalize.cjs is excluded by none and included by none
  • .github/scripts/commands/unassign-comments.cjs is excluded by none and included by none
  • .github/scripts/commands/unassign.cjs is excluded by none and included by none
  • .github/scripts/eslint.config.mjs is excluded by none and included by none
  • .github/scripts/helpers/api.cjs is excluded by none and included by none
  • .github/scripts/helpers/checks.cjs is excluded by none and included by none
  • .github/scripts/helpers/comments.cjs is excluded by none and included by none
  • .github/scripts/helpers/constants.cjs is excluded by none and included by none
  • .github/scripts/helpers/index.cjs is excluded by none and included by none
  • .github/scripts/package-lock.json is excluded by !**/package-lock.json and included by none
  • .github/scripts/package.json is excluded by none and included by none
  • .github/scripts/tests/test-api.cjs is excluded by none and included by none
  • .github/scripts/tests/test-assign-bot.cjs is excluded by none and included by none
  • .github/scripts/tests/test-checks.cjs is excluded by none and included by none
  • .github/scripts/tests/test-comments.cjs is excluded by none and included by none
  • .github/scripts/tests/test-config-loader.cjs is excluded by none and included by none
  • .github/scripts/tests/test-finalize-bot.cjs is excluded by none and included by none
  • .github/scripts/tests/test-inactivity-bot.cjs is excluded by none and included by none
  • .github/scripts/tests/test-on-pr-merged-bot.cjs is excluded by none and included by none
  • .github/scripts/tests/test-recommend-issues-bot.cjs is excluded by none and included by none
  • .github/scripts/tests/test-unassign-bot.cjs is excluded by none and included by none
  • .github/scripts/tests/test-utils.cjs is excluded by none and included by none
  • .gitignore is excluded by none and included by none
  • CONTRIBUTING.md is excluded by none and included by none
  • README.md is excluded by none and included by none
  • agents/tests/test_council.py is excluded by none and included by none
  • commands.md is excluded by none and included by none
  • docs/README.md is excluded by none and included by none
  • docs/UPGRADE-v2.md is excluded by none and included by none
  • docs/guides/architecture.md is excluded by none and included by none
  • docs/guides/coding-style.md is excluded by none and included by none
  • docs/guides/commands.md is excluded by none and included by none
  • docs/guides/what-is-kdm.md is excluded by none and included by none
  • docs/plans/multi-agent-implementation-plan.md is excluded by none and included by none
  • docs/releases/v1.1.3.md is excluded by none and included by none
  • docs/releases/v1.2.0.md is excluded by none and included by none
  • docs/releases/v1.2.1.md is excluded by none and included by none
  • docs/releases/v1.2.2.md is excluded by none and included by none
  • docs/releases/v1.2.3.md is excluded by none and included by none
  • docs/releases/v1.2.5.md is excluded by none and included by none
  • docs/releases/v2.0.0.md is excluded by none and included by none
  • docs/releases/v2.0.1.md is excluded by none and included by none
Files selected for processing: 4

  • .github/workflows/changelog.yml
  • src/__tests__/analysis/analysis-baseline.test.ts
  • src/__tests__/analysis/baseline-fixtures.ts
  • src/__tests__/phase8-analyzers.test.ts
Files with no reviewable changes: 1

  • .github/workflows/changelog.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: The Bare Minimum
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

*/
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { runAnalysis, explainSingleResult, resolveBackend } from '../analysis';
import { runAnalysis, explainSingleResult, resolveBackend } from '../../analysis/analysis';
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@utkarsh232005
utkarsh232005 merged commit 918fa6a into main Nov 30, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants