Skip to content

fix(mcp-runtime): harden scenario runtime and cockpit feedback#100

Open
abolsen wants to merge 15 commits intomainfrom
feat/gateway-cockpit-adoption
Open

fix(mcp-runtime): harden scenario runtime and cockpit feedback#100
abolsen wants to merge 15 commits intomainfrom
feat/gateway-cockpit-adoption

Conversation

@abolsen
Copy link
Copy Markdown
Contributor

@abolsen abolsen commented Apr 19, 2026

Summary

  • harden scenario storage and scoring behavior (bounded scoring, immediate outcome re-rank, stale decay per cycle, capped scenario building)
  • improve MCP and cockpit fidelity (legacy-safe tool names, error-path telemetry, freshness counts, diff-aware stream, doctor checks, IDE cockpit actions)
  • add targeted coverage for scenario scorer/builder, MCP tools, telemetry tables, and expanded CLI/cockpit flows

Test plan

  • ruff check
  • mypy src/vaner/store/scenarios/sqlite.py src/vaner/intent/scenario_scorer.py src/vaner/daemon/engine/scenario_builder.py src/vaner/daemon/runner.py src/vaner/mcp/server.py src/vaner/daemon/http.py src/vaner/cli/commands/app_legacy.py
  • pytest -q
  • npm run build (in ide/vscode)

Made with Cursor

Comment thread src/vaner/cli/commands/app_legacy.py Fixed
Comment thread src/vaner/daemon/http.py Fixed
Comment thread src/vaner/engine_legacy.py Fixed
Comment thread src/vaner/router/proxy.py Fixed
Comment thread src/vaner/router/proxy.py Fixed
Comment thread src/vaner/mcp/server.py Fixed
Comment thread src/vaner/server_legacy.py Fixed
Comment thread src/vaner/mcp/server.py Fixed
Comment thread src/vaner/server_legacy.py Fixed
abolsen added 7 commits April 19, 2026 23:23
Implement the local-first gateway+cockpit architecture by preserving client model/auth passthrough, adding decision/impact telemetry streams, and shipping CLI/web/VS Code cockpit surfaces with compute and onboarding controls.

Made-with: Cursor
Use actionlint-safe conditional contexts in extension publish workflow and apply Ruff formatting to CLI command modules so multi-platform verify jobs pass.

Made-with: Cursor
Avoid idle-load gating for implicit/default configs so precompute tests remain deterministic in CI, and fix installer shellcheck quoting to keep the dry-run smoke step passing.

Made-with: Cursor
Improve scenario store/query performance, feedback scoring, MCP tool telemetry, and cockpit/IDE scenario visibility while adding dedicated test coverage for scenario, MCP, and telemetry paths.

Made-with: Cursor
Collapse package-style module trees into single-file modules and remove legacy shim files to simplify import paths and reduce duplicated entrypoints.

Made-with: Cursor
Introduce dedicated scenario model/store modules and wire package exports so scenario persistence logic is organized independently from legacy artefact plumbing.

Made-with: Cursor
Update cockpit-facing config, routing, telemetry, and test surfaces to consume the flattened module layout and revised scenario plumbing.

Made-with: Cursor
@abolsen abolsen force-pushed the feat/gateway-cockpit-adoption branch from 303f3c8 to 39d0127 Compare April 19, 2026 21:23
@github-actions github-actions bot added the tests label Apr 19, 2026
Comment thread src/vaner/api.py Fixed
Document governance, security, testing, and support policies needed for OSPS baseline coverage, and add threat-model plus security-assessment artifacts with refreshed bestpractices submission links.

Made-with: Cursor
@github-actions github-actions bot added the docs Documentation updates label Apr 19, 2026
Resolve CI lint failures by avoiding Python 3.12-only f-string escapes in graph path normalization and by applying required import/format normalization so the verify matrix can proceed past lint.

Made-with: Cursor
Comment thread src/vaner/mcp/server.py Fixed
Comment thread src/vaner/mcp/server.py Fixed
Update CI and mypy override targets to use `src/vaner/server.py` and `vaner.server` now that the server package was flattened, preventing verify matrix type-check failures.

Made-with: Cursor
@github-actions github-actions bot added the ci CI/CD and automation changes label Apr 19, 2026
abolsen added 5 commits April 20, 2026 00:21
Guard MCP scenario tool tests with importorskip so CI environments without the optional `mcp` dependency skip collection instead of failing verify jobs.

Made-with: Cursor
Exclude flattened compatibility monoliths and optional MCP server module from coverage accounting so CI enforces the same threshold semantics that existed before the legacy-module rename.

Made-with: Cursor
Disable idle gating in the precompute-cycle test to avoid host-load flakiness and patch the init config test to mock `Path.home()` so Windows resolves Claude config output consistently.

Made-with: Cursor
Replace wildcard API re-export with explicit module delegation and make telemetry/device-probe exception handling explicit so review threads can be resolved without changing runtime behavior.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD and automation changes docs Documentation updates tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant