Skip to content

refactor(standard): separate generated proofs from definitions - #316

Merged
aitianshi merged 2 commits into
mainfrom
docs/config-format-review
Nov 23, 2026
Merged

aitianshi merged 2 commits into
mainfrom
docs/config-format-review

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #315

What

Separate generated evidence from authored catalogue definitions. Conformance, control and fidelity checks now update sibling proofs.json files without rewriting configuration. Legacy embedded records remain readable.

Touches

The standard's contract loader and proof persistence; CLI scaffolding and version creation; remote payloads; 28 catalogue/kit definitions; regression tests, documentation and import instructions. JSON remains the format.

Before and after

Definitions previously held configuration and generated evidence together. Evidence now lives in proofs.json, keyed by version. Resolved configuration and evidence match the latest main exactly. Catalogue file trees additionally show proofs.json. Visual parity was verified by the maintainer; comparison images were not captured.

Verified

  • Backend suite: 3,229 tests, initially one outdated test setup; the affected conformance module then passed all 17 tests after correction.
  • Route suite: all 719 tests passed.
  • Compared all 28 migrated entries with latest main: authored fields and proof records preserved exactly.
  • git diff --check passed.
  • Coverage includes version isolation, legacy entries, concurrent writes, immutable authored files and remote snapshots.

Risk

Incorrect loading or version association could hide catalogue entries or affect matching. An external proof file replaces embedded evidence; missing records do not fall back to another version. Older application versions cannot read separately stored evidence. Rollback of user entries requires restoring their previous complete folder or reintegrating evidence before reverting the reader.

@aitianshi
aitianshi marked this pull request as ready for review November 23, 2026 13:59
@github-actions

Copy link
Copy Markdown

🔴 PR judge · 6 of 7 yes · #316 ↔ #315

Merge risk ⛔ SEVERE the judge's reading of the diff; app/nullius/standard/cli.py is in the path of every run
Priority 🔴 EXTREME the deepest path is app/nullius/standard/cli.py
Question Verdict
Changes do what the issue asks · 5 of 5 criteria ✅ yes
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 ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 5 of 5 met
# Criterion Verdict
1 Bundled definitions contain configuration; generated evidence is stored separately per version. ✅ met (cut)
2 Proof updates preserve authored definition bytes and merge concurrent evidence updates. ✅ met (cut)
3 Legacy embedded records remain readable; external evidence is authoritative when present. ✅ met (cut)
4 New versions do not inherit proofs; remote snapshots and installed packages include evidence. ✅ met (cut)
5 Catalogue displays and matching retain the same evidence, except for the additional file-tree entry. ✅ met (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
aitianshi merged commit aa3f41b into main Nov 23, 2026
4 checks passed
@aitianshi
aitianshi deleted the docs/config-format-review branch November 23, 2026 14:08
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.

Separate authored definitions from generated proof records

1 participant