Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
cda7d10
ci: run unit suites on two balanced four-worker runners
zhaozhaozz Nov 17, 2026
c4c5c66
ci: explicitly upload unit reports from the hidden scratch directory
zhaozhaozz Nov 17, 2026
1e7d324
ci: preserve Nightly metrics for failed and sharded runs
zhaozhaozz Nov 17, 2026
bab3260
feat(console): add searchable project scope switcher
zhaozhaozz Nov 17, 2026
8801e33
fix(console): preserve mobile assistant controls with scope bar
zhaozhaozz Nov 17, 2026
1073f0b
fix(console): use one scroller for mobile assistant confirmations
zhaozhaozz Nov 17, 2026
0592d5a
test(#978): pin the settings table chips to wrap, not ellipsize, at d…
Nov 17, 2026
39ae0a5
fix(#978): let the settings table chips wrap instead of ellipsizing
Nov 17, 2026
c77a9d6
test(#978): the readable chip is also hit-testable, never a one-chara…
Nov 17, 2026
daac402
fix(#978): the 看板 cell wraps, so the switch sits below instead of on …
Nov 17, 2026
c31d39e
test(#968): a volume the deployment already counts is not counted twi…
HugoXK Nov 16, 2026
71d283c
fix(#968): a Docker volume row carries only the bytes no other row co…
HugoXK Nov 16, 2026
7806fb1
docs(#968): a labelled volume is excluded from the row, not already c…
HugoXK Nov 17, 2026
d39a631
docs(#968): the computers row counts every scanned *-work volume, a d…
Nov 17, 2026
d0bd909
test(#914): the launcher is named by the words it shows, in all three…
Nov 17, 2026
d54890a
fix(#914): the launcher keeps its visible text as its accessible name
Nov 17, 2026
c0d04aa
feat(harness): unify native sessions for controllers and assistants
codex Nov 17, 2026
5c3fee2
fix(harness): redact bootstrap trajectories and enforce native settin…
codex Nov 17, 2026
30f881a
docs(harness): align Claude settings boundary and defer candidate sla…
codex Nov 17, 2026
3eb8d88
fix(relay): retire request liveness before cleaning cancelled respons…
codex Nov 17, 2026
f83ddb3
refactor(manager): separate Docker disk usage measurements
zhaozhaozz Nov 17, 2026
5a6b246
feat(console): derive project scope from canonical routes
zhaozhaozz Nov 17, 2026
cd2a00f
fix(console): preserve assistant drafts across scoped presentation ch…
zhaozhaozz Nov 17, 2026
65d2416
fix(console): keep scoped queries and revoked views consistent
zhaozhaozz Nov 17, 2026
b1b55a0
fix(console): keep scoped navigation and project links usable on phones
zhaozhaozz Nov 17, 2026
569d7c5
test(console): align page fixtures and permission refresh with addres…
zhaozhaozz Nov 17, 2026
694465f
feat: preserve tool results in computer-scoped temporary files
zhaozhaozz Nov 17, 2026
b923a75
fix(manager): validate reused deliveries and retain correctable rejec…
codex Nov 17, 2026
c284175
docs: scope submission retry counts to task-backed sessions
codex Nov 17, 2026
257a3d1
fix(recovery): bind coordination wakes and retain recoverable dispatc…
codex Nov 17, 2026
5147d7c
fix(dispatch): keep cancellation terminal and cover failure-history r…
codex Nov 17, 2026
61fd5ad
fix(qa): bound related indexes and disclose immutable originals lazily
codex Nov 17, 2026
898d6e6
fix(runner): restore the full CLI PATH in login shells
zhaozhaozz Nov 17, 2026
cf8fafa
feat(console): navigate projects from the scope sidebar
zhaozhaozz Nov 17, 2026
7206da7
fix(console): preserve scope across receipts and return navigation
zhaozhaozz Nov 17, 2026
610c40d
fix(console): retain remembered scope when neutral pages reload
zhaozhaozz Nov 17, 2026
b8ad708
test(console): follow scoped navigation in browser regressions
zhaozhaozz Nov 17, 2026
2ca6cb1
fix(console): translate settings group and refresh navigation previews
zhaozhaozz Nov 17, 2026
87d3eed
fix(actions): handle failed version-tag runs as Actions failures
zhaozhaozz Nov 17, 2026
4191821
fix(manager): load adaptive roadmap guidance by default
codex Nov 17, 2026
ce903f6
feat(schedules): keep project scheduled tasks in the project and move…
zhaozhaozz Nov 17, 2026
70519a1
fix(schedules): isolate faulting daily report migrations and delete m…
zhaozhaozz Nov 17, 2026
c31ad4d
docs(actions): name the tag-run switch and how a same-named tag decides
zhaozhaozz Nov 17, 2026
6a95efd
fix(management): keep one copy of each work type's prompt in get_effe…
zhaozhaozz Nov 17, 2026
aa55fec
feat(review): complete, confirm and root-cause Issues; judge whether …
zhaozhaozz Nov 17, 2026
121ff0f
feat(dispatch): develop clear Issues without a label, never merge wit…
zhaozhaozz Nov 17, 2026
247abaf
feat(onboarding): recommend missing label axes and a discussion label
zhaozhaozz Nov 17, 2026
7cf9fd4
docs: describe the label-free development offer and the merge rule wh…
zhaozhaozz Nov 17, 2026
12bc3f2
docs: make bot-judged development the default, over a README that onl…
zhaozhaozz Nov 17, 2026
b72322e
docs: note the label-only README override in the built-in prompt index
zhaozhaozz Nov 18, 2026
76223d0
test(#870): a refused Feishu name is read once, not on every redraw
HugoXK Nov 17, 2026
e4dc95f
fix(#870): auto-read a missing Feishu name once per chat
HugoXK Nov 17, 2026
827d870
test(#870): a refused personal Feishu name is read once, not on every…
Nov 17, 2026
d15b007
fix(#870): remember a refused personal Feishu name across redraws
Nov 17, 2026
30e2fb2
test(#616): a failed management open states its reason once and offer…
Nov 18, 2026
91e6630
fix(#616): state a failed management open once, above a composer that…
Nov 18, 2026
4809882
fix(#616): let the failed-open state own the panel it is shown in
Nov 18, 2026
ad80ce0
fix(#1040): let Pi own review sessions and reopen them by explicit bi…
zhaozhaozz Nov 18, 2026
ca7dcaf
test(console): separate Feishu name lookup browser coverage
zhaozhaozz Nov 18, 2026
28ed569
refactor(docker): consolidate Dockerfiles, wrapper and Compose files …
zhaozhaozz Nov 18, 2026
a75555d
feat(#1047): let the review and the Manager judge claims from GitHub'…
zhaozhaozz Nov 18, 2026
8423e1f
test(#1039): a console page starts at one h1 and never skips a headin…
HugoXK Nov 18, 2026
8930fcf
fix(#1039): start the board at an h1 and keep card headings at h2
HugoXK Nov 18, 2026
a988711
fix(#1039): keep the new heading levels visually identical
Nov 18, 2026
50ea7ad
test(#1039): enumerate every settings route and detail page, not four…
HugoXK Nov 18, 2026
4745641
fix(#1039): every settings card is an h2 under the page h1, sub-secti…
HugoXK Nov 18, 2026
b14fb14
test(#1039): the three remaining specs that named the settings card b…
HugoXK Nov 18, 2026
1ca9b32
fix(settings): name the level of the service role card, settle the se…
HugoXK Nov 18, 2026
bb56512
fix(settings): draw the created service role card at the page's level…
HugoXK Nov 18, 2026
e414bdf
feat(#1047): show an Issue's development with the bot-developing labe…
zhaozhaozz Nov 18, 2026
459bd56
fix(console): compact project navigation and status
zhaozhaozz Nov 18, 2026
d54168d
Show verified storage allocation and run retention from the admin con…
zhaozhaozz Nov 18, 2026
0aa91ac
Verify storage collector imports in the control plane image
zhaozhaozz Nov 18, 2026
71d6fea
Keep project retention inputs visible on narrow screens
zhaozhaozz Nov 18, 2026
a405d7c
Refresh cleanup history and invalidate reclaimed workspace scans
zhaozhaozz Nov 18, 2026
d2ec27a
Verify storage disclosures and isolate incomplete directory scans
zhaozhaozz Nov 18, 2026
df44e8c
refactor(test): consolidate acceptance, docker, live and framework un…
zhaozhaozz Nov 18, 2026
753cef6
docs(#1047): name the claim facts in the architecture's development flow
zhaozhaozz Nov 18, 2026
eb94def
fix(console): hide the project header during project switches
zhaozhaozz Nov 18, 2026
e1d5e1a
refactor(test): organize ut, st, e2e, fixtures and live suites by module
zhaozhaozz Nov 18, 2026
9b04251
fix(#1058): give a Manager on another backend the full dispatch syste…
zhaozhaozz Nov 18, 2026
9ad7a46
test(a11y): the project switcher must name itself from its content (#…
HugoXK Nov 18, 2026
31cec53
fix(a11y): name the project switcher from its visible text (#1060)
HugoXK Nov 18, 2026
886442b
Publish the authored Actions diagnosis and redact credential values i…
zhaozhaozz Nov 18, 2026
e9a11e5
Protect encoded Actions credentials and accept structured report evid…
zhaozhaozz Nov 18, 2026
dbf4459
refactor(manager): separate project runner request validation
zhaozhaozz Nov 18, 2026
937465a
fix(#698): audit rows say what was done in plain words; codes and ids…
Birfy Nov 14, 2026
23c1c59
fix(console): 审计筛选按白话动作名合并成一个按钮,技术信息带行内动作名的可访问名(#698 review F1/F2)
Birfy Nov 14, 2026
879c91a
test(#616): cover the failed-open state in the floating assistant panel
Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
71 changes: 62 additions & 9 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ concurrency:
cancel-in-progress: true

jobs:
unit:
name: unit
unit-shards:
name: unit shard ${{ matrix.shard }} / 2
runs-on: ubuntu-latest
# #734: the slowest recent push run spent 762 s in this job (run 43790528730, npm test alone 727 s), so 30 minutes
# leaves room for a cold cache and still ends a wedged required check in half an hour instead of the platform default.
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
shard: [1, 2]
steps:
- uses: actions/checkout@v7
with:
Expand All @@ -41,22 +45,71 @@ jobs:
- run: timeout --signal=KILL 1500 npm test
env:
BOT_REQUIRE_PI: '1'
BOT_TEST_SUMMARY: .tmp/unit-summary.json
BOT_TEST_JOBS: '4'
BOT_TEST_SHARD: ${{ matrix.shard }}/2
BOT_TEST_REPORT: .tmp/unit-shard-${{ matrix.shard }}.json

# Scheduled and manual runs (Nightly) keep their totals for the public board's charts of scheduled runs (#938).
# Keep every attempt. Diagnostic artifact names sort after unit-summary so the
# generic board reader still finds its metrics within its bounded download budget.
- uses: actions/upload-artifact@v7
if: always()
with:
name: unit-test-shard-${{ matrix.shard }}-attempt-${{ github.run_attempt }}
path: .tmp/unit-shard-${{ matrix.shard }}.json
include-hidden-files: true
if-no-files-found: error
retention-days: 14

- name: Compose files
run: |
docker compose -f docker/compose.yaml config --quiet
docker compose -f docker/compose.yaml -f docker/compose.build.yaml config --quiet
BOT_BUILD_CONTEXT=. docker compose --project-directory . -f docker/compose.yaml -f docker/compose.build.yaml config --quiet

# Keep the required check named unit. Success requires both jobs and a disjoint,
# complete report for the current source/weight plan, including on merge_group.
unit:
name: unit
needs: unit-shards
if: always() && !cancelled()
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 22
- uses: actions/download-artifact@v8
with:
pattern: unit-test-shard-*
path: .tmp/unit-shards
- run: node test/framework/unit-shards.mjs merge .tmp/unit-shards
if: always()
- name: All shard jobs succeeded
env:
SHARD_RESULT: ${{ needs.unit-shards.result }}
run: test "$SHARD_RESULT" = success
- uses: actions/upload-artifact@v7
if: always()
with:
name: unit-test-balance-attempt-${{ github.run_attempt }}
path: .tmp/unit-balance.json
include-hidden-files: true
if-no-files-found: ignore
retention-days: 14
# Preserve the public board's existing Nightly metric names and artifact.
- uses: actions/upload-artifact@v7
if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
with:
name: unit-summary
path: .tmp/unit-summary.json
include-hidden-files: true
overwrite: true
if-no-files-found: ignore
retention-days: 30

- name: Compose files
run: |
docker compose config --quiet
docker compose -f compose.yaml -f compose.build.yaml config --quiet

e2e:
name: e2e
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Images

# Builds the deployment images that compose.yaml runs. Pull requests and the merge queue only build them; pushes to
# Builds the deployment images that docker/compose.yaml runs. Pull requests and the merge queue only build them; pushes to
# main publish ghcr.io/agent-ci-infra/<name> with the tags sha-<12-character commit> and latest. release.yml later
# adds a version tag to the sha- images of the tagged commit.
on:
Expand Down Expand Up @@ -32,16 +32,16 @@ jobs:
matrix:
include:
- name: bot-control-plane
dockerfile: Dockerfile
dockerfile: docker/control-plane.Dockerfile
description: Control plane (admin console, webhook receiver, task engine); also runs key-init and the webhook gateway.
- name: bot-computer-manager
dockerfile: manager/Dockerfile
dockerfile: docker/manager.Dockerfile
description: Creates and runs the per-repository project computers; the only service with the Docker socket.
- name: bot-project-computer
dockerfile: images/project/Dockerfile
dockerfile: docker/project-computer.Dockerfile
description: System image of the per-repository project computers.
- name: bot-cloudflare-tunnel
dockerfile: tunnel/Dockerfile
dockerfile: docker/tunnel.Dockerfile
description: Optional Cloudflare Tunnel connector for the webhook listener.
env:
IMAGE: ghcr.io/agent-ci-infra/${{ matrix.name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
dir=$(printf %q "$DEPLOY_PATH")

# The compose.yaml of the release replaces the server's; local changes belong in .env or compose.override.yaml.
remote "mkdir -p $dir && cat > $dir/compose.yaml.next && mv $dir/compose.yaml.next $dir/compose.yaml" < compose.yaml
remote "mkdir -p $dir && cat > $dir/compose.yaml.next && mv $dir/compose.yaml.next $dir/compose.yaml" < docker/compose.yaml
remote "bash -s -- $dir $(printf %q "$TAG")" <<'SCRIPT'
set -euo pipefail
cd "$1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ App 已经创建好了,不需要自己再建。安装地址只用这一个:

## 自动改代码

自动改代码不是默认行为:只有管理员把该仓库的能力上限设为「可开发并开 PR」(`develop`)后,项目 Manager 才会按依据判断能不能开发 Issue:有人(不是 App)加了开发标签(默认 `bot-develop`)、triage 以上权限的维护者在评论里提出要求,或 Manager 提示词里的规则允许;外人的评论不算。不能开发时 bot 在 Issue 上回复缺什么。完整条件见[自动开发什么时候开始](docs/rules.md#自动开发什么时候开始)。bot 开出的 PR 上,仓库成员评论要求修改时,bot 判断后照做(只是提问就回答);其他检视机器人提出合理意见时,最多据此修改一次,见[bot 开的 PR 怎样跟进修改](docs/rules.md#bot-开的-pr-怎样跟进修改)。
项目能力上限是开关:低于「可开发并开 PR」(`develop`)时 bot 不开发,新项目默认是「可评论和打标签」。能力上限为 `develop` 时,问题清晰的 Issue 默认由 bot 自己判断并开 PR:最近一次检视结论为「可开发」、问题已确认、推荐方案范围明确、没有留给人决定的问题、没有人被指派时,项目 Manager 按内置提示词里的这条规则开始开发,不需要开发标签。有人(不是 App)加开发标签(默认 `bot-develop`)、triage 以上权限的维护者在评论里提出要求,仍然是开发的依据,但不是默认前提;外人的评论不算。仓库 README 或 CONTRIBUTING 里只要求「必须由人加开发标签」的句子不否决这条默认,这样的说明应该改掉;仓库自己的 skill、测试方式和已有标签的用法仍然遵守。bot 不自行合并 PR,人明确要求时除外。不能开发时 bot 在 Issue 上回复缺什么。完整条件见[自动开发什么时候开始](docs/rules.md#自动开发什么时候开始)。bot 开出的 PR 上,仓库成员评论要求修改时,bot 判断后照做(只是提问就回答);其他检视机器人提出合理意见时,最多据此修改一次,见[bot 开的 PR 怎样跟进修改](docs/rules.md#bot-开的-pr-怎样跟进修改)。

## 在角色配置里调整行为

Expand Down
34 changes: 0 additions & 34 deletions compose.build.yaml

This file was deleted.

File renamed without changes.
42 changes: 42 additions & 0 deletions docker/compose.build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Builds every image from this checkout instead of pulling the published ones. It only overrides image names and
# adds build contexts, so use it on top of docker/compose.yaml, which holds the rest of the deployment:
# docker compose -f docker/compose.yaml -f docker/compose.build.yaml up -d --build
# When passing `--project-directory .` (to keep the repository root as the Compose working directory and .env base),
# set `BOT_BUILD_CONTEXT=.` so the build context still resolves to the repository root.
services:
key-init:
image: department-bot-control-plane:local
build:
context: ${BOT_BUILD_CONTEXT:-..}
dockerfile: docker/control-plane.Dockerfile
bot:
image: department-bot-control-plane:local
build:
context: ${BOT_BUILD_CONTEXT:-..}
dockerfile: docker/control-plane.Dockerfile
environment:
# Built from this checkout, not a published tag: the settings page reports a source build.
BOT_IMAGE_TAG: ""
webhook:
image: department-bot-control-plane:local
build:
context: ${BOT_BUILD_CONTEXT:-..}
dockerfile: docker/control-plane.Dockerfile
tunnel:
image: department-bot-cloudflare-tunnel:local
build:
context: ${BOT_BUILD_CONTEXT:-..}
dockerfile: docker/tunnel.Dockerfile
manager:
image: department-bot-computer-manager:local
build:
context: ${BOT_BUILD_CONTEXT:-..}
dockerfile: docker/manager.Dockerfile
environment:
# Must stay equal to the project-image reference below.
BOT_PROJECT_IMAGE: department-bot-project-computer:local
project-image:
image: department-bot-project-computer:local
build:
context: ${BOT_BUILD_CONTEXT:-..}
dockerfile: docker/project-computer.Dockerfile
19 changes: 17 additions & 2 deletions compose.yaml → docker/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Runs the images published from main; nothing is built on this machine.
# docker compose up -d
# docker compose -f docker/compose.yaml up -d (or download compose.yaml alone and run: docker compose up -d)
# BOT_IMAGE_TAG (default latest, the head of main) pins every image to a release such as v1.2.0 or to sha-<commit>.
# Upgrade with `docker compose pull` and `docker compose up -d`. Never add --volumes (-v) to `down`: that deletes
# the master key, the internal credentials and the databases. compose.build.yaml builds the same services from source.
# the master key, the internal credentials and the databases. docker/compose.build.yaml builds the same services from source.
services:
key-init:
image: ghcr.io/agent-ci-infra/bot-control-plane:${BOT_IMAGE_TAG:-latest}
command: ["node", "dist/keygen.js", "/keys/master.key", "/internal/manager.token"]
environment:
BOT_TOOL_RESULTS_DIR: /tool-results
BOT_DATABASE_PATH: /data/control.sqlite
network_mode: none
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
volumes:
- bot-keys:/keys
- bot-data:/data
- tool-results:/tool-results
- internal-keys:/internal
healthcheck:
disable: true
Expand All @@ -28,9 +33,11 @@ services:
TMPDIR: /tmp
SQLITE_TMPDIR: /tmp
BOT_DATABASE_PATH: /data/control.sqlite
BOT_TOOL_RESULTS_DIR: /tool-results
BOT_MASTER_KEY_FILE: /keys/master.key
BOT_MANAGER_TOKEN_FILE: /internal/manager.token
BOT_MANAGER_URL: http://manager:8793
BOT_HOST_STORAGE_DIR: /run/host-storage
BOT_COMMAND_TIMEOUT_MAX_SECONDS: "${BOT_COMMAND_TIMEOUT_MAX_SECONDS:-600}"
BOT_GITHUB_API_URL: "${BOT_GITHUB_API_URL:-https://api.github.com}"
BOT_MENTION_NAMES: "${BOT_MENTION_NAMES-bot,agent-ci-infra-bot}"
Expand Down Expand Up @@ -61,9 +68,11 @@ services:
- "${BOT_BIND_ADDRESS:-127.0.0.1}:${BOT_PORT:-${BOT_WEBHOOK_PORT:-8791}}:8791"
volumes:
- bot-data:/data
- tool-results:/tool-results
- bot-keys:/keys:ro
- internal-keys:/internal:ro
- tunnel-keys:/tunnel
- ${BOT_HOST_STORAGE_DIR:-storage-metrics}:/run/host-storage:ro
# Persistent HOME of every assistant computer (#457), one directory per group or person; the control plane reads,
# writes, measures and deletes them as the computers' own user (10001).
- assistant-homes:/assistant-homes
Expand Down Expand Up @@ -119,9 +128,11 @@ services:
BOT_MANAGER_TOKEN_FILE: /internal/manager.token
# The manager only inspects this image and never pulls; it must equal the project-image reference below, tag included.
BOT_PROJECT_IMAGE: ghcr.io/agent-ci-infra/bot-project-computer:${BOT_IMAGE_TAG:-latest}
BOT_TOOL_RESULTS_DIR: /tool-results
BOT_PROJECT_EGRESS: "${BOT_PROJECT_EGRESS:-true}"
volumes:
- manager-data:/data
- tool-results:/tool-results:ro
- internal-keys:/internal:ro
- /var/run/docker.sock:/var/run/docker.sock
# Read-only: the manager finds the volume's name here and mounts one owner's HOME directory (a subpath) per computer.
Expand All @@ -146,6 +157,10 @@ services:
security_opt: [no-new-privileges:true]
restart: "no"
volumes:
storage-metrics:
tool-results:
labels:
department.bot.kind: tool-results
agent-tools:
labels:
department.bot.kind: agent-tools
Expand Down
17 changes: 9 additions & 8 deletions Dockerfile → docker/control-plane.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ COPY public-board/dashboard/package.json ./public-board/dashboard/package.json
RUN npm ci --ignore-scripts
COPY tsconfig.json ./
COPY src ./src
COPY runner/command-policy.mjs runner/command-policy.d.mts runner/command-output.mjs runner/command-output.d.mts runner/browser-policy.mjs runner/browser-policy.d.mts ./runner/
COPY manager/compaction.mjs manager/compaction.d.mts ./manager/
COPY runner/command-policy.mjs runner/command-policy.d.mts runner/command-output.mjs runner/command-output.d.mts runner/browser-policy.mjs runner/browser-policy.d.mts runner/result-owner.mjs runner/result-owner.d.mts ./runner/
COPY manager/compaction.mjs manager/compaction.d.mts manager/storage-footprint.mjs manager/storage-footprint.d.mts ./manager/
COPY public-board ./public-board
RUN npm run build

Expand All @@ -23,9 +23,9 @@ WORKDIR /app
# Chromium is preinstalled so the control-plane task loop (#908) can start a real browser without apt (#916).
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates python3 tzdata chromium fonts-liberation fonts-noto-cjk && rm -rf /var/lib/apt/lists/*
RUN groupadd --gid 10001 bot && useradd --uid 10001 --gid bot --no-create-home bot \
&& mkdir -p /data /keys /internal /tunnel /assistant-homes /opt/agent-tools \
&& chown bot:bot /data /keys /internal /tunnel /assistant-homes /opt/agent-tools \
&& chmod 700 /data /keys /tunnel && chmod 750 /internal /assistant-homes && chmod 755 /opt/agent-tools
&& mkdir -p /tool-results /data /keys /internal /tunnel /assistant-homes /opt/agent-tools \
&& chown bot:bot /tool-results /data /keys /internal /tunnel /assistant-homes /opt/agent-tools \
&& chmod 700 /data /keys /tunnel && chmod 750 /internal /assistant-homes && chmod 755 /tool-results /opt/agent-tools
COPY --from=dependencies /app/node_modules ./node_modules
COPY package.json ./package.json
COPY --from=build /app/dist ./dist
Expand All @@ -39,11 +39,12 @@ COPY config ./config
COPY skills ./skills
# Process Harness executes this worker in the control-plane container.
COPY runner/role-worker.mjs ./runner/role-worker.mjs
COPY runner/command-policy.mjs runner/command-output.mjs runner/browser-policy.mjs ./runner/
COPY runner/command-policy.mjs runner/command-output.mjs runner/browser-policy.mjs runner/result-owner.mjs runner/filesystem-id.mjs ./runner/
# The control plane compacts control.sqlite at start with the manager's routine (#671).
COPY manager/compaction.mjs ./manager/compaction.mjs
COPY manager/compaction.mjs manager/storage-footprint.mjs ./manager/
RUN node --input-type=module -e "await import('./dist/app/storage.js'); await import('./manager/compaction.mjs');"
COPY scripts/external-token.mjs ./scripts/external-token.mjs
COPY scripts/bot-chromium.sh /usr/local/bin/bot-chromium
COPY docker/bot-chromium.sh /usr/local/bin/bot-chromium
RUN chmod 755 /usr/local/bin/bot-chromium
ENV BOT_BROWSER_EXECUTABLE=/usr/local/bin/bot-chromium
# The entry gateway service runs from this image too (node webhook/main.mjs), as its own container.
Expand Down
2 changes: 1 addition & 1 deletion manager/Dockerfile → docker/manager.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:22-bookworm-slim
WORKDIR /app
COPY manager ./manager
COPY runner/notes.mjs runner/note-path.mjs runner/note-catalog.mjs runner/browser-policy.mjs ./runner/
COPY runner/notes.mjs runner/note-path.mjs runner/note-catalog.mjs runner/browser-policy.mjs runner/result-owner.mjs runner/filesystem-id.mjs ./runner/
RUN for file in manager/*.mjs; do node --check "$file"; done
# node --check does not resolve imports; load the modules that pull in runner/ so a missing file fails the image build.
# Do not import manager/main.mjs: it reads a token and starts the server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN cd /opt/runner && npm ci --omit=dev --ignore-scripts && npm cache clean --fo
COPY runner /opt/runner
RUN for file in /opt/runner/*.mjs; do node --check "$file"; done
COPY LICENSE NOTICE /opt/licenses/
COPY scripts/bot-chromium.sh /usr/local/bin/bot-chromium
COPY docker/bot-chromium.sh /usr/local/bin/bot-chromium
RUN chmod 755 /usr/local/bin/bot-chromium && chmod -R a-w /opt/runner /opt/bot
# Preinstalled browser for task harness (#916). Assistant computers reuse this image but still have no network.
ENV BOT_BROWSER_EXECUTABLE=/usr/local/bin/bot-chromium
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/access-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ GitHub 取消、过期、重复或冲突回调继续使用原 `identityError`

## 验证范围

`e2e/console-access.spec.mjs` 通过真实控制面与隔离 OAuth HTTP 夹具验证初始化一次性、本地恢复、错误/限流映射入口、网络中断保留输入、提交中状态、GitHub回调错误、无项目权限说明、入口读取失败重试和工作区失败恢复。既有 GitHub 身份、组织切换、解绑、登录配置及管理员授权回归继续执行。预览在空表单或回调错误状态生成,不包含密码或真实用户数据。
`test/e2e/console/console-access.spec.mjs` 通过真实控制面与隔离 OAuth HTTP 夹具验证初始化一次性、本地恢复、错误/限流映射入口、网络中断保留输入、提交中状态、GitHub回调错误、无项目权限说明、入口读取失败重试和工作区失败恢复。既有 GitHub 身份、组织切换、解绑、登录配置及管理员授权回归继续执行。预览在空表单或回调错误状态生成,不包含密码或真实用户数据。

本批为 #225 的登录/初始化切片。七步接入和身份页继续使用既有组件与真实服务,本批不据此宣称完整 #225/#223 验收完成。

Expand Down
Loading
Loading