Skip to content

test(standard): consolidate regression coverage across backend and routes - #320

Merged
aitianshi merged 3 commits into
mainfrom
chore/trim-tests
Nov 23, 2026
Merged

aitianshi merged 3 commits into
mainfrom
chore/trim-tests

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #319

What

Consolidate related regression cases and remove reviewed redundant or incidental checks across the backend and route suites. Directly declared test methods fall from 3,950 to 3,388 against main at 38235bd, with 3,884 fewer lines across 155 test files. Add a Test design section to AGENTS.md covering meaningful assertions, shared fixtures, exact-text contracts and evidence for removing redundant cases. The final review retained 151 tests, merged 27 cases into existing tests and removed one duplicate.

Touches

Tracked tests under app/tests/ and app/ui_tests/: standard protocols and execution, benchmark adapters, run/trace readers, judge, storage, builder and route rendering. AGENTS.md adds the agreed test-design guidance. Production code, fixtures, product documentation and workflows are unchanged. Separate untracked audit files are excluded.

Verified

  • Rebased onto main at aa3f41b; preserved its new DigitalMate protocol and proof-storage coverage.
  • Backend suite: 2,787 tests executed across 171 modules. The sole failure is the pre-existing test_upstream_untouched audit in an untracked file excluded from this PR; all tracked backend modules passed.
  • Route suite: 612 tests across 61 modules passed.
  • Six focused mutation checks before rebase confirmed surviving assertions catch null-precedence, malformed-metadata fallback, source-checkout version, histogram-axis, live-tail-bound and provider-pin-order regressions. Each passed before and after restoring the implementation.
  • After merging main at 38235bd, resolved the workspace-test conflict while preserving its five new regression cases and stronger streaming check; all 37 workspace tests passed. The full-suite results above precede that merge.
  • git diff --check passes. Docker tier was not run.

Risk

Removing tests can leave regressions undetected even when the remaining suite passes. Earlier coverage review identified newly unexecuted application lines; coverage was not remeasured after the final consolidation/rebase. The focused mutation checks do not establish unchanged suite-wide coverage. Review the deleted cases and replacement assertions before marking ready. Revert the test-cleanup commit to restore the previous coverage.

@aitianshi
aitianshi marked this pull request as ready for review November 23, 2026 14:26
@aitianshi
aitianshi merged commit 4db1eb9 into main Nov 23, 2026
4 checks passed
@aitianshi
aitianshi deleted the chore/trim-tests branch November 23, 2026 14:26
@github-actions

Copy link
Copy Markdown

🟡 PR judge · 4 of 7 yes · #320 ↔ #319

Merge risk 🟢 MINOR the judge's reading of the diff
Priority 🟢 LOW no path reaches past the surface
Question Verdict
Changes do what the issue asks · 1 of 4 criteria ⚠️ partly
Issue and pull request describe the same change ✅ yes
Description matches the diff, no more, no less ⚠️ partly
Diff stays in scope ✅ yes
Tests cover the change, or Verified says how ✅ yes
Docs follow the change –
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 1 of 4 met
# Criterion Verdict
1 Changes are limited to tracked backend and route tests plus test-design guidance in AGENTS.md; production code and fixt… ✅ met (cut)
2 Consolidated tests retain the reviewed edge cases, including null precedence, malformed-metadata fallback, cancellation… ❔ undecided (cut)
3 Retain independent regression coverage where replacement was not established; do not infer redundancy solely from share… ⚠️ partial (cut)
4 Run backend and route suites on the rebased changes and report failures and validation limitations explicitly. ❔ undecided (cut)
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

aitianshi added a commit that referenced this pull request Nov 23, 2026
…MCP fixes sent upstream (#308)

Closes #307

## What

DigitalMate gets a second version, `0.1.13-fixes`, beside the unchanged
default `0.1.13`:

- **Source:** the fork branch `nullius/v0.1.13` at `5a2a3b9f`: the
`v0.1.13` release plus two upstream changes, each commit naming its
upstream issue or pull request.
- Hive project workspace binding: openJiuwen-ai/DigitalMate#699,
cherry-picked onto v0.1.13 (prompt-note conflicts resolved; its project
note keeps v0.1.13's bash and `deliver_file` guidance).
- Operator stdio MCP servers for Bees: issue
openJiuwen-ai/DigitalMate#2483, PR openJiuwen-ai/DigitalMate#2484, as
revised after DigitalMate's design review (setting
`DIGITALMATE_HIVE_HOME_MCP_SERVERS`, fail-closed start-up, ended servers
refused before dispatch, Stop cancels a call).
The version's `upstream.fixes` lists both, so it can go when a release
carries them. No product code is kept in Nullius.
- **ACP:** `acp.py` gives each session its own product instance; `run.py
--session` binds the session's folder with the product's own
`dm_hive_tools.workspace` command and hands the session's stdio MCP
servers over in a private, owner-only file. Other MCP transports are
refused before a product starts.
- **Bee questions in a session:** a Bee's open question is that turn's
reply, and the next prompt answers it at the Bee's wait point (as the
product's own card does); a one-shot run still fails on a question, as
nobody can answer.
- **`run.py`:** one start-up (`product`) shared by the one-shot task and
the session. The release's one-shot runs bind no project and drop an
inherited MCP setting.
- **Proofs** follow `main`'s `proofs.json` (#316): both versions'
records are there.

## Touches

catalogue (DigitalMate entry and proofs, `run`, `gateway`, new `acp`) ·
docs (generated agent pages, AGENTS.md) · backend tests

## Verified

- Install of the fixed version from the fork at `5a2a3b9f`, neutral
folder, container backend: complete (13.5 min).
- Kits on `digitalmate@0.1.13-fixes` at `5a2a3b9f`, OpenRouter
`meta/muse-spark-1.3-contributor`, one at a time: `agent.task/v1` 3/3,
`agent.workspace/v1` 2/2, `agent.tools/v1` 2/2 with all three skills
(decoys, chain, retry), `agent.conversation/v1` 2/2, `agent.search/v1`
3/3. No personal path in the jobs.
- A few units of six benchmarks, one task at a time:

  | Benchmark | Version | Result |
  | --- | --- | --- |
  | GSM8K | 0.1.13 | 3/3 |
| Open Telco | 0.1.13 | 2/3 (one stopped on a Bee question, which a
one-shot run cannot answer) |
  | HumanEval | 0.1.13-fixes | 3/3 |
  | SWE-bench Verified | 0.1.13-fixes | 1/2 |
| τ³-bench | 0.1.13-fixes | 2/3 (0/3 before the session answered Bee
questions) |
| GAIA | 0.1.13-fixes | 0/3 (two "cannot determine"; one ran into
DigitalMate's 600 s task limit) |

A few units each: these show each benchmark runs end to end, not scores
to compare.
- Spend: the kit re-runs and benchmarks add up to about 0.59 USD by
their records and ledgers; the key's counter rose 0.80 USD over the same
window, a gap not attributed (the key is shared).
- DigitalMate's side: on the fork branch, its hive-tools, Bee
tool/runtime, project workspace and new wiring tests pass but for one
that also fails on plain v0.1.13 in the same environment;
openJiuwen-ai/DigitalMate#2484's head passes DigitalMate's three
architecture gate commands.
- Backend suite 2799 tests OK, route suite 612 OK, after merging `main`
(#316 moved proofs, #320 consolidated tests). New tests: ACP sessions
(one instance per session, turns forwarded as they are, cancellation,
stdio MCP rows to a private file removed afterwards, other transports
refused, relative cwd refused), the session loop and its conversation,
Bee questions answered in a session, the fixed start-up's binding and
MCP hand-over, the release's start-up without either, and the fixed
version's record.

## Risk

- The fixed version installs from a private fork: a machine needs read
access to it, and GitHub deletes the fork if access to the upstream is
withdrawn.
- Its results come from a modified product: it is never the default, and
its proofs are its own.
- Undone by a revert; the release version and its proofs are unchanged.
aitianshi added a commit that referenced this pull request Nov 23, 2026
No linked issue: the owner asked for a new release, v0.2.0.

## What

Prepares v0.2.0. The version becomes `0.2.0`, a minor bump for the scale
of change since v0.1.1: model providers defined once (#148), saved
recipes moved to the user data directory (#203), the standard package
reorganised (#290, #316), new benchmarks and Boat VMs.
`docs/releases/v0.2.0.md` gives the highlights, a Contributors section,
the full changelog of the 97 pull requests in `v0.1.1..main` (93 listed,
#142, #219, #234 and #320 as test and CI changes) and the installation
notes, in the shape of v0.1.1's. Install examples, the release guide,
the docs' release-notes link and menu, and the workflows' default tags
name 0.2.0. The release tooling does not change.

## Touches

CI and skills (the release and publish workflows' default tags) · docs
and site

## Verified

- Backend suite: 2799 tests in 171 modules, OK. Route suite: 624 tests
in 64 modules, OK.
- `catalogue_docs.py --write` and `diagrams.py --write` left no change;
`readme_media.py --check` is current.
- `python3 app/packaging/release.py build --tag v0.2.0` built and
verified `nullius_eval-0.2.0-py3-none-any.whl`,
`nullius_eval-0.2.0.tar.gz` and `SHA256SUMS`; `release.py verify --tag
v0.2.0` and `verify.py` on the wheel passed, including the
installed-tool and profile-preservation checks.
- The workflows have not run; they run only by hand on `main`.

## Risk

Version strings and docs only. A wrong default tag in a workflow is an
input the person running it can change, and `release.py` refuses a tag
that does not match `pyproject.toml` or has no notes. Nothing is tagged,
drafted or published by this change. Undo with a revert.
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.

Tests: consolidate reviewed regression coverage

1 participant