Repository navigation
Conversation
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
Adds Dev Plane's revision-bound Project Brain / Context Compiler, wires it into the agent runner behind an optional provider seam, and adds a production-safe first-party repository-intelligence source with an explicit worker rollout switch.
Project Brain contract
Sourceinterface for repo-intel/GitNexus/LSP/AST/Git/tests/runtime adapters24default,200hard cap)First-party repo-intel source
packages/repo-intel; no new parser/runtime dependencyWorkspaceContextCompilerHEADto exactly match requestedgit-commit:<sha>HEAD^{tree}before emitting factsGitNexus boundary
GitNexusClient+GitNexusSourcefor symbols/relations/processeslastCommitagentexecutor.WithGitNexusClientEnableProjectBrain().WithGitNexusClient(client)andWithGitNexusClient(client).EnableProjectBrain()retain the same client/source setAgent-run integration
ProjectContextProviderpreserves the legacy runner path when disabledWorkspaceProjectContextProviderextends the seam for workspace-local sources without breaking existing providersHEADbefore context compilationagent_runs.metadatabefore the first model call; no schema migrationgit-tree:<sha>remains the authority for mutable working-tree capability/verification semanticsRollout
agentexecutor.EnableProjectBrain()composes the first-party source--project-brainPROJECT_BRAIN_ENABLED=trueEvaluation path
Existing
model_usagerows already referenceagent_run_id, while the context package/digest is persisted on the corresponding run. This provides a joinable model/cost/context-strategy basis for later verification-outcome analysis without another telemetry schema in this slice.TDD / regression coverage
Tests were added before corresponding behavior for:
Reconstructed verification
The repository pins
go 1.26.0/toolchain go1.26.8. The current execution container cannot resolve external hosts to download that toolchain or clone GitHub directly, so this is not claimed as repository-native Go 1.26.8 verification.Using exact source files fetched from the connected GitHub repository and reconstructed affected modules under the available Go 1.23.2 toolchain:
packages/projectbrain:go test,go vet, andgo test -race -count=20passpackages/repo-intelbehavior: tests/vet pass and-race -count=20passesagentrunnersource/security slice: tests/vet pass and-race -count=10passesagentexecutorcomposition, including both configuration call orders: tests/vet pass and-race -count=20passes-race -count=50passesThis gives executable evidence for the changed logic, but the PR remains draft until the checked-in Go 1.26.8 lane actually executes the exact head.
CI evidence
On exact head
7ae6592455fdf37690686714f809126521b38e6e, GitHub Actions CI run #648 created Build/Test/Lint. All three failed before any step executed:runner_id=0,steps=[], with completion in roughly 1-2 seconds. This is workflow-admission/runner evidence rather than code-execution evidence.Scope / boundaries
Next integration
7ae6592455fdf37690686714f809126521b38e6ein the authoritative Go 1.26.8 lane, then enable Project Brain for a small local-workspace cohort.Sourcecontract.This remains intentionally separate from the browser-verification, Nulang Cloud workspace, semantic model-routing, run-manifest, and repository-protocol stacks.