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
35 changes: 28 additions & 7 deletions .github/workflows/release-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Install media tools
run: |
sudo apt-get update
sudo apt-get install --yes ffmpeg
sudo apt-get install --yes ffmpeg bubblewrap
ffmpeg -version
ffprobe -version
ffmpeg -hide_banner -encoders 2>&1 | grep 'libx264 '
Expand All @@ -102,6 +102,33 @@ jobs:
- name: Check generated contracts
if: always() && steps.install.outcome == 'success'
run: python scripts/generate_contracts.py --check
- name: Bundled OpenCode model gateway regression
if: always() && steps.install.outcome == 'success'
timeout-minutes: 5
env:
OPENDIRECTOR_REAL_CLI: '1'
run: python -m pytest tests/test_native_runtime.py tests/test_agent_visual_gate.py -k real_opencode -q -ra --durations=50 --junitxml=test-results/bundled-opencode.xml --ci-profile=test-results/bundled-opencode.json
- id: harness-install
name: Install native Harness test tools
if: always() && steps.install.outcome == 'success'
timeout-minutes: 8
run: |
npm install --prefix "$RUNNER_TEMP/visual-harness-clis" --no-audit --no-fund \
@openai/codex@0.166.0 @anthropic-ai/claude-code@2.1.220 \
opencode-ai@1.19.5 @deepseek-ai/dsh@0.2.2-rc.1
python -m venv "$RUNNER_TEMP/visual-jiuwen"
"$RUNNER_TEMP/visual-jiuwen/bin/python" -m pip install 'workswarm==0.2.8'
ln -s "$RUNNER_TEMP/visual-jiuwen/bin/jiuwenswarm-process" "$RUNNER_TEMP/visual-harness-clis/node_modules/.bin/jiuwenswarm-process"
echo "$RUNNER_TEMP/visual-harness-clis/node_modules/.bin" >> "$GITHUB_PATH"
- name: Native Harness visual regression
if: always() && steps.harness-install.outcome == 'success'
timeout-minutes: 10
env:
OPENDIRECTOR_HARNESS_CI: '1'
run: >-
python -m pytest tests/test_agent_visual_gate.py::test_harness_native_visual_input -q -ra
--basetemp "$RUNNER_TEMP/harness-visual-pytest"
--junitxml=test-results/harness-visual.xml --ci-profile=test-results/harness-visual.json
- name: Python tests
if: always() && steps.install.outcome == 'success'
env:
Expand All @@ -110,12 +137,6 @@ jobs:
- name: Check full layer inventory / 核对完整分层清单
if: always() && steps.install.outcome == 'success' && inputs.python-mark-expression == ''
run: python scripts/ci/check_test_layers.py --profile test-results/python.json --require-executed
- name: Bundled OpenCode model gateway regression
if: always() && steps.install.outcome == 'success'
timeout-minutes: 5
env:
OPENDIRECTOR_REAL_CLI: '1'
run: python -m pytest tests/test_native_runtime.py -k real_opencode -q -ra --durations=50 --junitxml=test-results/bundled-opencode.xml --ci-profile=test-results/bundled-opencode.json
- name: Upload Python timing evidence / 上传 Python 耗时证据
if: always() && steps.install.outcome == 'success'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Expand Down
22 changes: 22 additions & 0 deletions docs/development/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,28 @@ Start the isolated API with both `--http-generation-fixture --assistant-fixture`

The image browser workflow covers pinned, followed and mixed references. With an exact two-image requirement, one and three images are rejected with no new jobs or generation requests; accepted pairs are checked against uploaded bytes, order and persisted asset IDs. Reopening retains the references, model, prompt and results. Frontend tests also check that a pin and a followed reference to the same asset are counted only once.

## Agent 原生视觉读取 / Agent native visual inspection

发布检查使用真实 Bundled、OpenCode、Codex、Claude Code、JiuwenSwarm 和 DeepSeek Harness CLI 以及本地模型夹具,检查原图和 FFmpeg 抽帧是否以正确顺序作为可解码图片到达模型。Bundled 还检查纯文本模型不会收到图片。CI 安装固定版本的外部 CLI,所需 CLI 缺失即失败。

Release checks use the real Bundled, OpenCode, Codex, Claude Code, JiuwenSwarm and DeepSeek Harness CLIs with local model fixtures. They verify that decodable pixels from the still and FFmpeg frame reach the model in order. The Bundled check also verifies that a text-only model receives no pixels. CI installs pinned external CLI versions and fails if a required CLI is unavailable.

```bash
OPENDIRECTOR_HARNESS_CI=1 python -m pytest tests/test_agent_visual_gate.py::test_harness_native_visual_input
```

真实模型验收单独执行,使用隔离工程和合成素材。所选运行时的安装、认证或视觉能力不可用时,验收失败。

Run the live model acceptance separately. It uses temporary projects and synthetic media and fails if a requested runtime's installation, authentication or visual input is unavailable.

```bash
OPENDIRECTOR_VISUAL_GATE=all python -m pytest tests/test_agent_visual_gate.py -k live_runtime_visual_input
```

可将 `all` 换成逗号分隔的运行时 ID。Bundled 从环境读取 `OPENDIRECTOR_VISUAL_GATE_URL`、`OPENDIRECTOR_VISUAL_GATE_MODEL` 和可选的 `OPENDIRECTOR_VISUAL_GATE_KEY`。其他运行时使用已配置的原生账户和模型,可用 `OPENDIRECTOR_VISUAL_GATE_<RUNTIME>_MODEL` 指定模型。JiuwenSwarm 的视觉模型可在原生 `model_client_config` 中声明 `supports_vision: true`。

Replace `all` with comma-separated runtime IDs to select a subset. Bundled reads `OPENDIRECTOR_VISUAL_GATE_URL`, `OPENDIRECTOR_VISUAL_GATE_MODEL` and the optional `OPENDIRECTOR_VISUAL_GATE_KEY` from the environment. Other runtimes use their configured native accounts and models, with `OPENDIRECTOR_VISUAL_GATE_<RUNTIME>_MODEL` available as an override. JiuwenSwarm vision models can declare `supports_vision: true` in the native `model_client_config`.

## 按风险选择验证

能力与提示修改还需检查实际页面和发送内容:共同失败原因只呈现一次,提示说明用户能够采取的操作,调研记录和测试配置不进入产品文案。分别查看中英文页面的正常、未知、过期、暂停和失败状态。按最终请求统计素材,确认超量输入零新增任务、零生成请求;默认参数与服务允许范围、工具来源与模型输入分别核对。
Expand Down
8 changes: 6 additions & 2 deletions packages/core/src/opendirector/agent/deepseek.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ def arguments(private, skill_root=None):
rows = [row for row in desktop_rows if row.get('id', '').startswith('llm-')
and row['id'] not in overridden and 'config' in row]
default = next((row['config'] for row in desktop_rows if row.get('id') == 'agent-default-model'), None)
if default and 'acp' not in overridden:
rows.append({'id': 'acp', 'config': {key: default[key] for key in ('provider', 'model')}})
if 'acp' not in overridden:
# The native ACP profile can still default to the retired text-only ID.
route = {key: default[key] for key in ('provider', 'model')} if default else {
'provider': 'deepseek-official', 'model': 'deepseek-flash',
}
rows.append({'id': 'acp', 'config': route})
rows.append({'id': 'skill-filesystem', 'config': {'includeDefaultRoots': False,
'customSkillDirs': [str(skill_root)] if skill_root else [], 'watch': False}})
patch = private / 'deepseek.patch.json'
Expand Down
Loading
Loading