Files
DeepSeek-Reasonix/internal/taskcontract
SivanCola e36ef93a2f Simplify execution and completion semantics / 精简执行与完成语义 (#10198)
* Simplify execution and completion semantics

Problem:
Host-derived quality contracts, readiness gates, ordinary todo continuation,
and a separate Goal evaluator could prolong or block turns after the model had
finished, while mixing model claims with observed execution facts.

Root cause:
Execution safety, model completion judgment, and result presentation shared a
single quality-policy pipeline. Legacy delivery mode also propagated through
session, CLI, ACP, worktree, and recovery paths.

Fix:
Retire delivery mode and host quality obligations, keep Plan preapproval and
execution safety boundaries, drive Goal continuation from structured model
reports without an evaluator, and render facts separately from declarations.
Preserve legacy reads, explicit check recovery, historical evidence, and old
remote state without reactivating retired policy.

Verification:
- root and desktop Go suites
- focused root and desktop race suites
- frontend test:all and production build
- lint, generated contracts, cache guard, browser and native Electron checks

Cache impact:
One-time provider prefix change from retired tool discovery and updated tool
descriptions. Serialization and ordering remain stable within the version.

* Fix transcript history formatting

Problem:
The pull request's Linux and macOS test jobs stopped at the repository-wide
gofmt gate for internal/transcript/history.go.

Root cause:
A composite literal added during historical-check projection was not aligned
by gofmt before the initial push.

Fix:
Apply gofmt to the affected transcript history source.

Verification:
- gofmt -l . returns no files
- go test ./internal/transcript passes
- git diff --check passes

* Normalize subagent receipt paths for display

Problem:
The Windows isolated agent job rendered changed paths with backslashes while
the stable host-receipt contract and tests require slash-separated paths.

Root cause:
The simplified subagent completion path now exposes native receipt paths
directly, so Windows filepath normalization leaked into provider-visible
attestation text.

Fix:
Normalize only the rendered receipt and claim-violation path copies to forward
slashes. Keep native paths intact for write-scope enforcement and audit state.

Verification:
- focused host receipt and subagent completion tests pass
- deterministic backslash input test covers the platform-independent output
- repository gofmt and git diff checks pass

* Refresh desktop migration inventory

Problem:
The upstream CI refactor added one classified desktop CI job while this branch removes retired delivery surfaces, leaving the merged inventory count stale.

Fix:
Regenerate the desktop migration inventory with the current generator after merging main-v2.

Verification:
- go test -p 2 ./... -timeout 300s
- go test -p 2 ./... -timeout 300s (desktop)
- pnpm test:all && pnpm build
- make lint

* Wait for dock fixture hydration

Problem:
The dock browser benchmark could close Overview before the delayed bench session hydration completed. The authoritative hydrate then replaced the empty-state picker while Playwright was clicking Files.

Root cause:
The benchmark waited for the composer but not for the selected session snapshot, even though the fixture intentionally expands asynchronously.

Fix:
Wait for the fixture completion marker before mutating dock state.

Verification:
- node bench/dock-view-state.mjs (three consecutive runs)
- pnpm test:app-browser
- REASONIX_SETTINGS_BROWSERS=chromium pnpm test:settings-browser
2026-09-12 22:53:36 +08:00
..