Skip to content

Upgrade to eve 1.0.0 and Vercel Connect 2.9.3 - #13

Merged
Anshuman71 merged 1 commit into
mainfrom
upgrade/eve-1.0
Nov 16, 2026
Merged

Anshuman71 merged 1 commit into
mainfrom
upgrade/eve-1.0

Conversation

@bensabic

@bensabic bensabic commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Upgrades the template to eve 1.0.0 and Vercel Connect 2.9.3, moves GitHub access to the real git and gh in the shell, and locks down the sandboxes that hold the repository.

  • Bumps eve from 0.67.2 to 1.0.0 and @vercel/connect from 2.3.3 to 2.9.3, with the ai version eve 1.0 requires (7.0.120 to 7.0.173, for its ^7.0.172 peer).
  • Moves memory to eve's built-in file memory: a per-user preferences slot and the shared factory brain. The Blob tools they replace are removed; handoff artifacts stay in Blob.
  • Removes the GitHub extension. Agents run git and gh through bash under per-command credential leases, and the orchestrator has no shell: its bash accepts only allowlisted gh commands, which the runtime parses and runs itself.
  • Replaces classifier-first triage with one decision-model call (triage_work_item), and adds an HTTP intake API (POST /intake/v1/tickets).
  • Changes two defaults. The four sandboxes that hold the repository now open on an egress allowlist of GitHub and the public package registries (FACTORY_SANDBOX_ALLOWED_DOMAINS adds hosts, FACTORY_SANDBOX_EGRESS=open removes it), and station sessions turn package install scripts off before the setup command runs (FACTORY_ALLOW_INSTALL_SCRIPTS=1 opts out).
  • Narrows the GitHub channel's own token to issues and pull requests on FACTORY_REPO, and adds an opt-in signed push (FACTORY_SIGNED_COMMITS=1) that recreates commits through the Git Data API so GitHub signs them.
  • Updates the model assignments in agent/lib/models.ts.
  • Adds an offline vitest suite of 3,952 tests, audited by mutation: tests that could not fail were rewritten, and source-text checks were replaced with tests of the real modules. TSDoc was corrected against the code and given @param, @returns and @throws tags where they add something.
  • Passes pnpm validate in CI: lint, tsc, all 3,952 tests, and eve discovery with 0 errors / 0 warnings. On macOS, 4 tests in tests/github/shell.test.ts fail locally, because sh and bash there are bash 3.2 and mis-parse a heredoc inside $(...).
  • Leaves pnpm build, pnpm eval, and the dev TUI unverified, for lack of local Vercel credentials. The egress allowlist, the narrowed channel token, and the signed push are tested offline only and have not been exercised against a live sandbox or GitHub, so they are worth a run on a scratch repository before merge.
  • Does not update .env.example for the four new variables (FACTORY_SANDBOX_EGRESS, FACTORY_SANDBOX_ALLOWED_DOMAINS, FACTORY_ALLOW_INSTALL_SCRIPTS, FACTORY_SIGNED_COMMITS); the README table and ARCHITECTURE.md document them.

…ndbox

Upgrade
- eve 0.67.2 -> 1.0.0 and @vercel/connect 2.3.3 -> 2.9.3, with the peer
  eve 1.0 requires (ai 7.0.120 -> 7.0.173, for ^7.0.172).
- Memory moves to eve's built-in file memory: a per-user preferences
  slot and the shared factory brain. The Blob tools they replace are
  removed; handoff artifacts stay in Blob.
- The GitHub extension is removed. Agents run the real git and gh
  through bash, under per-command credential leases, and the
  orchestrator has no shell: its bash accepts only allowlisted gh
  commands, which the runtime parses and runs itself.
- Triage is one decision-model call (triage_work_item), and work can
  arrive over a new HTTP intake API (POST /intake/v1/tickets).
- Model assignments are updated in agent/lib/models.ts.

Sandbox and credentials
- The four sandboxes that hold the repository open on an egress
  allowlist: GitHub and the public package registries. Add hosts with
  FACTORY_SANDBOX_ALLOWED_DOMAINS, or set FACTORY_SANDBOX_EGRESS=open.
- Station sessions turn package install scripts off before the setup
  command runs. FACTORY_ALLOW_INSTALL_SCRIPTS=1 opts out.
- The GitHub channel uses a token narrowed to issues and pull requests
  on the factory repository, not the connector's full token.
- FACTORY_SIGNED_COMMITS=1 delivers branches as commits GitHub signs,
  recreated through the Git Data API. Off by default.

Tests and comments
- Adds an offline vitest suite (3,952 tests) covering the allowlists,
  the command sorter, leases, the authorization matrix, the dispatch
  hooks, intake, triage, and the assembled surface.
- The suite was audited by mutation: tests that could not fail were
  rewritten, and source-text checks were replaced with tests of the
  real modules.
- TSDoc was corrected against the code and given @PARAM, @returns and
  @throws tags where they add something.

Verification
- pnpm validate: lint, tsc, and eve discovery with 0 errors /
  0 warnings pass. 3,939 tests pass; 4 fail on macOS only, where sh and
  bash are bash 3.2 and mis-parse a heredoc inside $(...).
- pnpm build, pnpm eval, and the dev TUI were not run locally, for lack
  of Vercel credentials. The egress allowlist, the narrowed channel
  token, and the signed push have not been exercised against a live
  sandbox or GitHub.
@bensabic
bensabic requested a review from a team November 16, 2026 12:36
@vercel-internal-security-reviewer

Copy link
Copy Markdown

Security review details

@Anshuman71
Anshuman71 merged commit 64134c6 into main Nov 16, 2026
4 checks passed
@Anshuman71
Anshuman71 deleted the upgrade/eve-1.0 branch November 16, 2026 12:42
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