feat(mcp): add local workspace intelligence v2 - #70
Merged
JSONbored merged 6 commits intoJun 1, 2026
Merged
Conversation
JSONbored
requested changes
May 30, 2026
JSONbored
left a comment
Owner
There was a problem hiding this comment.
@monsterdavidliu-ux useful MCP direction, but one privacy regression and a conflict need fixing.
Required:
- Resolve the conflict in
src/api/routes.ts. - Do not mutate returned/sent branch metadata with
metadata.repoRoot; keeprepoRootonly in scorer-local metadata so local paths never enter API payloads. - Keep the source-upload guard and local-path redaction tests.
- Re-run full validation after the conflict fix.
Expose structured workspace metadata for branch analysis: changed-file summaries, validation-as-test-evidence, pending commits, CI hints, separated branch vs account blockers, and metadata-only scorer diagnostics without uploading source. - Keep repoRoot in scorer-only stdin metadata, not API/MCP payloads - Merge main and resolve routes.ts schema conflict for workspace fields Fixes JSONbored#42
monsterdavidliu-ux
force-pushed
the
feat/42-workspace-intelligence-v2
branch
from
May 31, 2026 13:51
a406111 to
e3a0a3d
Compare
Pin data-quality and queue processor tests to fixed clock times so freshness SLO assertions stay stable across CI runs.
Add test-evidence path coverage, workspace intelligence edge cases, and regenerate the UI OpenAPI spec for workspace v2 fields.
monsterdavidliu-ux
force-pushed
the
feat/42-workspace-intelligence-v2
branch
from
June 1, 2026 15:05
bd913e8 to
551927c
Compare
JSONbored
self-requested a review
June 1, 2026 17:35
JSONbored
approved these changes
Jun 1, 2026
JSONbored
left a comment
Owner
There was a problem hiding this comment.
@monsterdavidliu-ux This is ready from my side. The prior privacy blocker is resolved: repoRoot stays in scorer-local metadata, normal API/MCP payloads remain metadata-only, source upload is explicitly disabled, and the tests cover local-path/source-upload boundaries. CI is green and the branch is merge-clean.
This was referenced Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
workspaceIntelligencev2 on local branch analysis with changed-file summaries, test-evidence levels, CI hints, pending commit counts, separated branch-quality vs account blockers, and metadata-only scorer diagnostics.analyze-branch/preflight/agent planCLI output.Review feedback addressed
src/api/routes.ts(keptpendingCommitCount/ciStatusHintswith main's string length limits).repoRootis passed only in scorer stdin metadata (scorerMetadata), not in returned branch analysis / API payloads.mainand restored CI branch coverage (≥97%).Test plan
PATH=/usr/bin:/bin:$PATH npm run test:ci(≥97% global branch coverage)npm run typechecknpm run build:mcpbuildBranchAnalysisPayloaddoes not exposerepoRootin API-facing outputFixes #42