Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prepared release
name: Prepared UI release

on:
workflow_run:
Expand Down Expand Up @@ -38,12 +38,13 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
python3 -c "from tools.build_release_artifacts import RELEASE_MANIFEST_VERSION; assert RELEASE_MANIFEST_VERSION == 2"
state=$(python3 tools/prepare_release_publication.py "$RELEASE_SHA")
echo "state=$state" >> "$GITHUB_OUTPUT"
- name: Build UI and qualify pinned worker images
- name: Build distributable UI and qualify local worker recipes
if: steps.publication.outputs.state == 'build'
run: python3 tools/build_release_artifacts.py --output "$RUNNER_TEMP/forge-prepared"
- name: Qualify exported images in classic and containerd stores
- name: Verify prepared UI archive and dependency notices
if: steps.publication.outputs.state == 'build'
run: sudo python3 tools/qualify_release_roundtrip.py --assets "$RUNNER_TEMP/forge-prepared"
- name: Publish the complete release
Expand All @@ -54,9 +55,7 @@ jobs:
gh release create "forge-build-$RELEASE_SHA" \
--target "$RELEASE_SHA" --draft \
--title "Forge $RELEASE_SHA" \
--notes "Prepared Linux amd64 assets for the exact commit that passed CI. Worker images passed build-environment and isolation canaries, and exported archives passed loading and execution in classic and containerd Docker stores. Installations verify asset checksums and repeat host qualification." \
--notes "Prepared Linux amd64 UI for the exact commit that passed CI, including third-party notices. Worker recipes passed environment and isolation canaries in CI. Workers are built and qualified on the operator host; no worker binaries are distributed." \
"$RUNNER_TEMP/forge-prepared/manifest.json" \
"$RUNNER_TEMP/forge-prepared/forge-ui-linux-amd64.tar.gz" \
"$RUNNER_TEMP/forge-prepared/forge-runner-linux-amd64.tar.gz" \
"$RUNNER_TEMP/forge-prepared/forge-runner-full-linux-amd64.tar.gz"
"$RUNNER_TEMP/forge-prepared/forge-ui-linux-amd64.tar.gz"
gh release edit "forge-build-$RELEASE_SHA" --draft=false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ for supported hosts, credential storage and troubleshooting.
- **Settings → Repositories:** add repositories and choose whether Forge needs
your approval before merging. The default is to require approval.
- **Settings → Connections:** manage GitHub access, coding accounts and external agents.
- **Settings → General → Updates:** check published GitHub releases and open update instructions.

Label an issue `ready` to make it eligible for work. To group related issues,
open **Plan repository work**, request triage and approve the proposed group.
Expand Down
154 changes: 77 additions & 77 deletions SECURITY.md

Large diffs are not rendered by default.

28 changes: 13 additions & 15 deletions docs/cli-server-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
host**. Run it once per server. After setup, operators sign in through the UI;
adding repositories does not require repeating this command.

For a fresh VM, start with [`forge setup new`](cli-fresh-host.md). That wizard
handles installation, private networking, sign-in, role Apps, a coding account,
repository checks and explicit Start, then follows the first issue to a verified
merge. It runs host commands and file transfers through the CLI; no separate
remote terminal is required. Each stage also has a noninteractive JSON command.
For a fresh VM, use [`forge install`](cli-fresh-host.md). That flow registers one
App for repository access and GitHub sign-in, links the installing Tailscale
operator and hands preparation to the web app. The command documented here is
for existing servers using a separate sign-in App.

The local CLI uses your SSH authority for host configuration and your local
GitHub CLI to resolve operator usernames to numeric IDs. GitHub administrative
Expand All @@ -30,11 +29,9 @@ controller state, outside workers and the UI container.
`*.ts.net` name. This command supports private Serve on port 443.
- Sign in to `gh` locally. Operator names are resolved using GitHub's user API.

`forge server setup` covers sign-in and HTTPS only. For a host installed through
`forge setup new`, use `forge setup sign-in --ssh HOST` for the guided sign-in
stage, then `forge setup continue --ssh HOST` for role Apps, coding account and
repository setup. These commands resume the saved installation. GitHub,
Tailscale and provider browser approvals remain explicit operator handoffs.
`forge server setup` covers sign-in and HTTPS only. For an installation started
with `forge install`, use `forge install --ssh HOST --resume` to continue its
saved setup. GitHub, Tailscale and provider approvals remain explicit.

## Inspect the plan

Expand All @@ -53,7 +50,8 @@ Without a client ID, an unconfigured server returns `identity_app_required`, a
GitHub registration link, and the exact homepage and callback fields. Create or
reuse a **dedicated identity-only GitHub OAuth App** with those fields. Complete
GitHub's registration, consent and passkey checks in your browser. This App is
separate from Forge's four role Apps and requests no OAuth scopes.
separate from the repository-access App used by that installation and requests
no OAuth scopes.

Repeat the command with `--client-id YOUR_IDENTITY_APP_CLIENT_ID` to inspect the
setup steps. Repeat `--operator` for additional operator accounts. Planning
Expand Down Expand Up @@ -99,7 +97,7 @@ configuration, or public Funnel configuration. It serializes concurrent
bootstraps and rejects changed plans or reset generations. It never automatically
replaces a conflicting identity or proxy configuration.

To intentionally replace a client secret or change authorized operators, use
the [host recovery command](operator-sign-in.md#sessions-and-recovery). That
separate operation revokes sessions. There is no web endpoint accepting bootstrap
secrets and no anonymous first-visitor claim.
This legacy bootstrap command cannot rotate a configured secret or replace its
operator list. Preserve the existing state and arrange identity maintenance if
those settings must change. There is no web endpoint accepting bootstrap secrets
and no anonymous first-visitor claim.
19 changes: 19 additions & 0 deletions docs/dependency-review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# UI dependency review — 2026-11-07

Scope: the six open GitHub Dependabot alerts for `ui/package-lock.json`, plus the additional minimatch advisory returned by a current npm audit. No forced overrides, production changes, or advisory dismissals.

## Fixed

- **happy-dom 20.14.6 → 21.0.4** (direct development dependency). Addresses [GHSA-834v-8h66-3h79](https://github.com/advisories/GHSA-834v-8h66-3h79) (host code execution through import aliases) and [GHSA-c8p4-j97h-3vg8](https://github.com/advisories/GHSA-c8p4-j97h-3vg8) (SSRF from HTML parsing). Used by the Vitest/Nuxt component test environment, not the deployed server. Both installed test-tool peer ranges accept 21.0.4; its Node >=20 floor is below Forge's Node 24 build runtime.
- **mermaid 11.17.2 → 12.2.0**, resolving **katex 0.16.47 → 0.18.10** through Mermaid's supported `^0.18.0` dependency. Addresses [GHSA-238p-pmpm-9mq7](https://github.com/advisories/GHSA-238p-pmpm-9mq7). The vulnerable path requires existing prototype pollution to bypass KaTeX trust checks. Mermaid is client-side and lazy-loaded for bundled help-document diagrams; `help-diagrams.ts` sets strict security and `htmlLabels:false`. Patched dependency is preferable to treating those constraints as a fix. Latest Mermaid 11 still requires vulnerable KaTeX ^0.16.47; no incompatible override used. [Mermaid 12 release notes](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.0.0): Node >=22.12, Safari >=17.4/ES2024, new layout/look defaults. Forge preserves existing appearance with `layout:'dagre'`, `look:'classic'` and validates help diagrams. Existing initialize/render APIs remain supported.

## Remaining upstream advisories

- **glob 13.0.6 and 10.5.0** — [GHSA-3g3m-2fjr-6pw4](https://github.com/advisories/GHSA-3g3m-2fjr-6pw4), moderate, fixed in 14.0.2. Paths: `@vue/test-utils → js-beautify → glob`; `nuxt → @nuxt/nitro-server → nitropack → @vercel/nft → glob`; `nitropack → archiver → archiver-utils → glob`. Latest js-beautify 2.0.3 requires ^13.0.6 and @vercel/nft 1.11.1 requires ^13.0.0, so no supported complete upgrade exists. Vulnerability is traversal continuing after AbortSignal cancellation. Inspected NFT's two calls in `out/analyze.js`: no signal option. js-beautify's CLI calls globSync without signal; Vue's formatter uses the beautify library, not that CLI. These are build/test paths, not UI request handlers. Nitro 2.13.6 would remove the old archiver/glob10 subtree but leaves glob13, so omitted incidental churn from this release change. No claim that arbitrary uses of glob are safe.
- **esbuild 0.27.7** — [GHSA-g7r4-m6w7-qqqr](https://github.com/advisories/GHSA-g7r4-m6w7-qqqr), low, fixed in 0.28.1. `@nuxt/ui → @nuxt/fonts 0.14.0 → fontless 0.2.1 → esbuild ^0.27.0`; other build tools share it. Even latest @nuxt/ui 4.12 retains @nuxt/fonts ^0.14.0. Advisory requires esbuild's development server using `servedir` on **Windows**. Forge builds its UI in a Node24 Linux container and runs the bundled Nitro server; it does not serve production with esbuild. Nitro separately already has esbuild0.28.2. Updating Vite/unplugin would not remove fontless's constraint, so no unrelated upgrades or forced0.28 override.
- **deepmerge 4.3.1** — [GHSA-gcqx-w48m-w2h4](https://github.com/advisories/GHSA-gcqx-w48m-w2h4), low, no patched release. `nuxt → @nuxt/nitro-server → nitropack → @rollup/plugin-node-resolve16.0.3 → deepmerge`. Inspected the resolver's only call: `deepFreeze(deepMerge({}, defaults))`, where defaults is a source-code literal containing fixed arrays/booleans. User opts use object spread separately. The reported malicious-source-object premise is absent at this call. Build dependency; no untrusted request object reaches it. Keep tracked until upstream fixes/removes it; npm audit's suggested Nuxt downgrade is inappropriate.
- **minimatch 9.0.9 and 10.2.6** — [GHSA-g3hv-75wg-m249](https://github.com/advisories/GHSA-g3hv-75wg-m249), moderate, newly returned by npm audit, fixed in11.0.1. Paths: `vue-tsc2.2.12 → @vue/language-core → minimatch9`; `js-beautify → editorconfig3.0.2 → minimatch10`; `glob13 → minimatch10` and `archiver-utils → glob10 → minimatch9`. Globparts amplification can exhaust resources with adversarial patterns. Inspected Vue usages take patterns from Vue compiler config; editorconfig takes repository config patterns. Build/typecheck/format paths, not operator web requests. Upstream ranges exclude11; upgrading only vue-tsc would still leave others and adds an unrelated major-version change. No override.

## Validation and release limits

The combined validation used Node 24 and a fresh `npm ci`. Typechecking and the production build passed. Of 623 component tests, 622 passed initially; the remaining help-length check passed after shortening the runtime guide (31 help tests passed on rerun). All 47 browser suites passed, including Help diagrams, onboarding, account recovery and settings. The mobile Help rendering was also inspected. The current npm audit still reports 19 affected dependency nodes (3 low, 16 moderate), representing the four underlying advisories above. This is not a clean audit or a substitute for reviewing third-party distribution terms.
2 changes: 1 addition & 1 deletion docs/factory-runtime-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interrupted after a fresh GitHub read; they are not replayed. Review the current
issue, then resubmit the intended action or explicitly resume its migration pause.

The [security guide](../SECURITY.md#isolation-status) holds the canonical
live/staged/retired inventory. Supported `bin/forge` commands enter
current isolation boundaries and qualification limits. Supported `bin/forge` commands enter
`forge.launch`; the setup service selects the SQLite controller after cutover.
A saved `legacy` onboarding phase becomes `setup`, never a tmux supervisor.
Existing evidence: [launcher routing](../bin/forge),
Expand Down
47 changes: 21 additions & 26 deletions docs/factory-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ flowchart TD

## Workers and slots

**Build** owns implementation and the assigned pull request. For an approved group,
one logical builder plans tracked tasks, releases its planning lease, then
resumes integration after accepted outputs and verified task cleanup. A task may
cover several issues, and several tasks may contribute to one issue. The builder
can execute a prerequisite task itself, delegate it to a child, or keep work for
final integration. Every task uses an isolated checkout and exact prerequisite
outputs. Independent tasks and separate deliveries share the same role slots,
memory and account limits.
**Build** owns implementation and the assigned pull request. One builder can
coordinate an approved group of issues, delegate independent tasks to children,
then integrate their accepted outputs. Each task has its own checkout. Builders
and children share the same role slots, memory and account limits.
**Review** checks the complete candidate, **Audit** checks security, and
**Recovery** investigates a failed attempt before the next decision.

Expand Down Expand Up @@ -56,8 +52,8 @@ flowchart TD
C --> T[Provider native tool sandbox]
T --> F[Writable workspace and temporary files]
T --> N[Allowed network destinations through proxy]
T -. denied .-> H[Host filesystem and Docker socket]
T -. denied .-> Secrets[Private provider credentials and agent configuration]
T -. denied .-> H[Unassigned host files and Docker socket]
T -. denied .-> Secrets[Controller credentials and persistent state]
```

Repository commands run inside the provider's native sandbox as well as the container boundary. Workers get their own workspace and limited network access; they do not get the host's Docker socket or the Controller credential.
Expand All @@ -69,15 +65,21 @@ the supervisor checks before publishing role verdicts through the Forge App.
Untracked native provider delegation is disabled; the supported fallback is
Forge-managed children.

The current production runner requires Linux, Docker and the installed isolation policies. If a project needs unavailable tools or a database environment, Forge reports a setup problem instead of treating it as a code defect.
The supported runner requires Linux, Docker and the installed isolation policies.
Containers share the host kernel; they do not provide a VM boundary. If a project needs unavailable tools or a database environment, Forge reports a setup problem instead of treating it as a code defect.

For exact mounts, network rules and limits, read the [runtime reference](factory-runtime-reference.md) and the [isolation status](../SECURITY.md#isolation-status).

## Accounts and cooldowns

Coding accounts authenticate the model providers. They are separate from the GitHub Apps that access repositories, and from your operator sign-in.

Open **Settings → Coding accounts** to connect or repair an account using the displayed host instructions. Workers receive the selected account for their assignment; repository tool commands cannot read its private credential files.
Open **Settings → Connections → Coding accounts**. Codex browser sign-in can
connect or recover in the web app; other modes use the CLI. Claude API-key jobs
use a host proxy with a job-scoped capability. Other modes supply provider
authentication to the harness in the container and rely on the qualified native
tool sandbox to keep repository commands away from it. See the
[credential boundaries](../SECURITY.md#runtime-trust-boundaries).

A quota or sign-in problem can make an account unavailable. Forge shows the reason and, when known, when it can retry; waiting for a provider does not charge the issue a failed code attempt.

Expand All @@ -104,20 +106,13 @@ flowchart TD
D -->|No| Wait
```

Repository setup is also a delivery blocker. Implementation admission uses the
same repository identity, App connection revision and fresh protection report
shown in Settings. An unreadable observation or an
expired report shows **Repository setup** on the affected issues, with a link to
restore access or recheck the repository. The ordinary setup refresh and issue
observation clear this blocker after verified readiness; independent holds stay
in place. Dispatch saves its final protection read through that same report
boundary, so a newly discovered failure is visible immediately.

This readiness check does not change repository permissions or enablement.
Protection report expiry does not revoke a running worker or its output. New
work waits, and publication/merge retain their live policy checks. Auxiliary
repository planning and failure diagnosis require access, without requiring
publication readiness; loss of access still blocks them.
If repository access or its latest check is unavailable or stale, affected issues
show **Repository setup** with a link to restore access or recheck. Verified
readiness clears this blocker; other holds remain. New implementation work waits,
but an expired report does not cancel running workers or discard their outputs.
Planning and diagnosis can continue while repository access remains available.
Publication and merging still recheck current conditions. These checks do not
change permissions or enable automation.

A green worker result alone is not merge permission. Forge checks its App-bound Review and Audit evidence, required CI, verification, repository protections and current ownership; unresolved changes requested also prevent merging.

Expand Down
Loading
Loading