Skip to content

chore: hygiene thread — CI gofumpt, doc counts, omitempty, dedup, dead code#124

Merged
jamestexas merged 2 commits intomainfrom
chore/hygiene-thread
Mar 23, 2026
Merged

chore: hygiene thread — CI gofumpt, doc counts, omitempty, dedup, dead code#124
jamestexas merged 2 commits intomainfrom
chore/hygiene-thread

Conversation

@jamestexas
Copy link
Copy Markdown
Contributor

Summary

  • Add gofumpt format check to CI lint job (mache-7ik)
  • Update tool count 9 → 15 in ARCHITECTURE.md and README.md (mache-5c9c0c)
  • Remove omitempty from content_template to preserve JSON serialization (mache-5caf12)
  • Extract ensureFile() helper, dedup 3 identical os.Stat+IsDir checks in engine.go (mache-qqr)
  • Remove dead reflect fallback in json_walker.Values() (mache-uza)
  • Stale branches (mache-5df546): already clean, closing as-is

Test plan

  • task build — compiles clean
  • task test — all tests pass
  • gofumpt pre-commit hook passed
  • CI gofumpt step runs on this PR (self-validating)

Closes: mache-7ik, mache-5c9c0c, mache-5caf12, mache-qqr, mache-uza, mache-5df546

…d code

- Add gofumpt format check to CI lint job [mache-7ik]
- Update tool count: 9 → 15 in ARCHITECTURE.md and README.md [mache-5c9c0c]
- Remove omitempty from content_template to preserve serialization [mache-5caf12]
- Extract ensureFile() helper, dedup 3 os.Stat+IsDir checks [mache-qqr]
- Remove reflect fallback in json_walker Values() — dead code [mache-uza]
Copy link
Copy Markdown

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 is a hygiene sweep that tightens formatting enforcement in CI, refreshes documentation to reflect the current MCP tool surface, and simplifies a few ingestion/code paths (file checks and JSON walking).

Changes:

  • Add a gofumpt formatting check to the CI lint job.
  • Update README/architecture docs to reflect 15 MCP tools and improve markdown formatting.
  • Refactor ingestion file validation into a shared helper and remove dead reflection fallback from JsonWalker matches.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/workflows/ci.yml Adds a gofumpt-based formatting check to the lint job.
README.md Updates MCP tool count/list and minor markdown formatting tweaks.
docs/ARCHITECTURE.md Updates MCP tool list/count and reformats tables/sections.
internal/ingest/engine.go Extracts ensureFile() and deduplicates repeated file/dir checks.
internal/ingest/json_walker.go Removes reflect-based map fallback in Values() and drops the reflect import.
api/schema.go Removes omitempty from content_template so it always serializes.

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

Comment thread .github/workflows/ci.yml
Comment thread internal/ingest/engine.go Outdated
Comment thread docs/ARCHITECTURE.md Outdated
- Enable pipefail in CI gofumpt step so errors aren't masked
- ensureFile returns os.FileInfo to eliminate double stat in ingestRawFile
- Fix stale "9 tool handlers" in ARCHITECTURE.md key file reference table

[mache-7ik, mache-qqr, mache-5c9c0c]
@jamestexas jamestexas merged commit 0d8e0e2 into main Mar 23, 2026
14 checks passed
@jamestexas jamestexas deleted the chore/hygiene-thread branch March 23, 2026 21:08
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.

2 participants