Skip to content

Fix build broken on main: missing github field + non-exhaustive match#9

Merged
daemon-blockint-tech merged 2 commits into
mainfrom
claude/altius-code-overview-mlcohx
Jul 19, 2026
Merged

Fix build broken on main: missing github field + non-exhaustive match#9
daemon-blockint-tech merged 2 commits into
mainfrom
claude/altius-code-overview-mlcohx

Conversation

@daemon-blockint-tech

Copy link
Copy Markdown
Owner

Summary

main's HEAD (commit 9c324bb, after merging #8) was broken in two independent ways — discovered while investigating why PR #8's CI build check failed, even though that PR only touched two markdown files. Both issues are pre-existing on main and unrelated to #8's diff.

1. Default build failed outright (cargo build --workspace)

The GitHub MCP connector work added github: Option<GitHubTooling> to SupervisorOptions and github: GitHubMcpArgs to FleetServeArgs, but crates/altius-cli/src/serve_command.rs was never updated to match — three struct literals still omitted the new field:

  • options_for_run — missing github: template.github.clone()
  • build_supervisor_options — never attached GitHub MCP tooling at all
  • the internal FleetServeArgs reconstruction inside serve_protocols — missing github: args.github.clone()

Fixed by wiring GitHub MCP attachment through the same pattern already used correctly for browser MCP in the same file (attachments.attach(...)McpTools::githubGitHubTooling), mirroring the reference implementation that was already correct in fleet_command.rs::run_fleet_cmd.

2. cargo clippy --workspace --all-features -D warnings failed (this is what CI's build job actually runs)

McpClientError gained a MissingCredential(String) variant, but altius-mcp/src/agent_lsp.rs::map_error's match on it wasn't updated, making it non-exhaustive (E0004). This only surfaces under --all-features, so the default cargo build/cargo test didn't catch it. Fixed by mapping it to AgentLspError::InvalidConfig.

3. Pre-existing cargo fmt drift

Also includes the cargo fmt --all fixup already identified while diagnosing the fmt-check failure on #8 — all in files unrelated to that PR's docs-only diff.

Verification

All run clean before committing:

  • cargo build --workspace
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
  • cargo test --workspace --all-features --locked — 309 passed, 0 failed

🤖 Generated with Claude Code

https://claude.ai/code/session_01PSnNk5ivBeSBCN2LUhzBix


Generated by Claude Code

claude added 2 commits July 19, 2026 05:23
main's HEAD was broken in two independent ways, unrelated to the earlier
moat-strategy docs PR (#8) that surfaced this — its CI "build" check
failed and the failure turned out to have nothing to do with that PR's
diff:

1. `cargo build --workspace` (default features) failed outright: the
   GitHub MCP connector work added `github: Option<GitHubTooling>` to
   `SupervisorOptions` and `github: GitHubMcpArgs` to `FleetServeArgs`,
   but `crates/altius-cli/src/serve_command.rs` was never updated to
   match — three struct literals (`options_for_run`,
   `build_supervisor_options`, and the internal `FleetServeArgs`
   reconstruction in `serve_protocols`) still omitted the new field.
   Fixed by wiring GitHub MCP attachment through the same pattern
   already used correctly for browser MCP in the same file, and already
   correct in `fleet_command.rs::run_fleet_cmd` (the reference
   implementation this mirrors).

2. `cargo clippy --workspace --all-features -D warnings` (what CI's
   build job actually runs) additionally failed: `McpClientError`
   gained a `MissingCredential(String)` variant, but
   `altius-mcp/src/agent_lsp.rs::map_error`'s match wasn't updated,
   making it non-exhaustive. Fixed by mapping it to
   `AgentLspError::InvalidConfig`.

Also includes the pre-existing `cargo fmt` drift already found while
investigating the fmt-check failure on PR #8 (files unrelated to that
PR's docs-only diff).

Verified before committing: `cargo build --workspace`,
`cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets
--all-features --locked -- -D warnings`, and
`cargo test --workspace --all-features --locked` (309 passed, 0 failed)
all pass clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSnNk5ivBeSBCN2LUhzBix
The previous commit added the missing McpClientError::MissingCredential
match arm in agent_lsp.rs by hand but never re-ran `cargo fmt` afterward
— clippy and tests were re-verified, but formatting wasn't, so the arm's
manual layout didn't match what rustfmt produces. This is exactly what
broke PR #9's own CI `build` check (`cargo fmt --all -- --check`).

Verified clean this time: cargo build --workspace (0), cargo fmt --all
-- --check (0), cargo clippy --workspace --all-targets --all-features
--locked -D warnings (0).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSnNk5ivBeSBCN2LUhzBix
@daemon-blockint-tech
daemon-blockint-tech marked this pull request as ready for review July 19, 2026 05:25
@daemon-blockint-tech
daemon-blockint-tech merged commit 0d7d1e2 into main Jul 19, 2026
4 checks passed
@daemon-blockint-tech
daemon-blockint-tech deleted the claude/altius-code-overview-mlcohx branch July 19, 2026 05:25
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