Repository navigation
Add the AI Research Assistant app template and its features - #557
Merged
Merged
Conversation
samhornstein
marked this pull request as draft
November 20, 2026 07:06
samhornstein
marked this pull request as ready for review
November 20, 2026 07:12
Contributor
There was a problem hiding this comment.
are all these features intended to be used in other apps as well? why not build them into the app itself?
Contributor
Author
There was a problem hiding this comment.
Features (OpenShell agent sandboxing, OpenCode harness, cohort designer, Kumo forecasting) were intentionally pulled out so others apps could reuse them.
pantherman594
approved these changes
Nov 20, 2026
pantherman594
left a comment
Contributor
There was a problem hiding this comment.
Long term we should have a better home for most of the code in this app but changes are contained so risk is low
michaelxiao7
approved these changes
Nov 23, 2026
michaelxiao7
left a comment
Contributor
There was a problem hiding this comment.
Just for future reference this probably should've been 3-4 PRs, but as David said the changes are pretty isolated so it should be okay to ship
src/ai-research-assistant: the devcontainer, the compose file (app, sandbox gateway, broker, assistant UI, Caddy front door, port guard), start-services.sh (access check, model choice, starting the servers once per container start), and the README with the architecture and the Known limitations. Tests for the front door, the broker image and start-up logic, and a check that no project IDs are committed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A FastAPI server and a static page. The server lets through only an allow-list of OpenCode calls (/oc) and the event stream (/events), only for a person the access check admitted, and refuses cross-site requests. The page renders model text through an allow-list sanitizer under a Content-Security-Policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Unmodified minified releases with their licence headers; no review needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…policy compiler access.py: the two fixed groups in the verily org, the feature flags per tier, the data perimeter check for the app's workspace, and the model choice. render-policy.py: compiles the administrator's ai-policy.yaml, the workspace's data and the tool groups into the OpenShell network policy. workspace-data.py: the workspace's datasets and buckets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its broker agent-sandbox.sh: creates the sandbox, applies the rendered policy, forwards the agent's server, uploads and downloads. The broker container is the only thing that talks to the OpenShell gateway: sshd with a forced command. The image's policy files (config/), the tool groups, the agent's instructions and the self-test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndbox The sandbox image (OpenCode from its release, checked by sha256), the harness definition and the OpenCode config hook that turns the policy's tools and approvals into OpenCode permissions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vllm-model: Nemotron 3.5 Super VL on vLLM 0.34.0 on two H100 80 GB. vertex-model: an OpenAI-compatible proxy in front of Gemini or a Nemotron endpoint on Vertex AI, for alpha users outside a data perimeter, and deploy-endpoint.sh for that endpoint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fetches the released designer binary by URL, checks its pinned sha256 before installing, and runs it as an MCP server. Its source is under a separate licence and not in this repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d cohort An MCP server: reads a cohort the designer locked, builds the relational graph, forecasts the outcome with Kumo's model and baselines, and reports counts and rates with 1-19 masked (privacy.py). Writing the highest-risk members to a bucket asks for approval. Test fixtures are synthetic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shellcheck and the Python suites. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The side panel's last line under "Where the assistant runs" named Gemini, and its unquoted ": " made YAML read it as a mapping, so the page showed it as a dict. The model in use is already named at the top of the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
samhornstein
force-pushed
the
pr-ai-research-assistant
branch
from
November 23, 2026 20:16
d933771 to
5a538da
Compare
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.
What
A Workbench app (
src/ai-research-assistant): an OpenCode agent in an NVIDIA OpenShell sandbox, behind its own web UI, with code-server under/ide/. New features:ai-policy,agent-sandbox,opencode-harness,cohort-designer,kumo-forecast,vertex-model,vllm-model. Tests are undertests/. CI is.github/workflows/test-ai-research-assistant.yaml.verilyorg (alpha, beta), with feature flags per tier. The UI server refuses/ocand/eventsto anyone the check does not admit, and refuses cross-site requests.terra/exfil-perimeter-constraint, for the workspace in the VM's metadata), or when the app cannot read the policies.Reviewer guide
About 9,500 lines of code, 5,000 of tests and 1,400 of docs, in ten commits, one per area. Review each one on its own (Commits → pick one). Skim the tests. Read them where the code looks wrong.
start-services.sh, README/ocallow-list and access gate. Cross-site refusal. Sanitizer and CSP.deploy-endpoint.shneeds--yes.privacy.pyand callers). Fixtures are synthetic.Decided (please do not reopen)
-aouvariant.How tested
?toolsets=allstill listing only the 28 core and workflow tools, and awbtool call after restart. An earlier commit also ran a cohort request up to its lock approval.forecast_select_highest_risk.To run the tests:
Install what CI installs:
pyyaml, the assistant UI'srequirements.txt, andpandas==2.3.3 numpy scikit-learn==1.9.1 pyarrow==25.0.0. SetCOHORT_DESIGNER_BINto run the five cohort-designer tests.Known limitations
curlfrom its shell tool) can call the allowed MCP tools without the approval prompt.Merge order
After #556.
tests/ai-policyreads its tool groups.Generated with Claude Code