## Summary
The product tree still described research delivery, a merged handoff,
and a private model schedule as current work. This PR removes those
assets and leaves the current execution contracts in the module READMEs.
A new packaged desktop profile no longer turns Terminal on. The user
still starts the bundled Terminal by setting `terminalEnabled` to true.
The packaged Electron executable still launches `terminal.mjs`.
This PR is independent. Its base is `main` at `1892e9e070`.
## Request
The user asked to remove retired agent research so a maintainer who did
not join that work can understand the current system from the module
READMEs, the ADRs, and the code.
Scenario: AIRI desktop agent execution and the Terminal Beta
distribution on `main`.
Harness and model: Cursor, Grok 4.7.
## Change map
| Module | Before | After | Description |
| --- | --- | --- | --- |
| Desktop distribution | A Terminal Beta build used its own name,
profile, port, and update exemption, and turned Terminal on | The normal
AIRI package remains. A new profile leaves Terminal off | The Beta
release path is gone. `APP_USER_DATA_PATH` still selects a profile |
| Desktop Host approval | Ask, Auto, and Full lived beside research
notes | The desktop README states Ask, Auto, and Full | These modes do
not replace the service modes |
| Computer Use service | README mixed a demo script with service policy
| The service README states `actions`, `all`, and `never`, plus the
execution records and lifecycle limits | Public self-approval, workflow
approval, and CDP limits stay |
| Agent instructions | Root instructions pointed at a merged handoff and
a project memory file | Root instructions point at the four module
READMEs and `docs/ai/adr/` | The private model schedule is gone |
| Research notes | Convergence audits, proposals, and status diaries sat
in the product tree | Those files are deleted | Git history at
`1892e9e070` keeps them. `planning-orchestration/contract.ts` and its
test stay |
## Architecture and behavior
A new packaged profile creates `{ mcpServers: {} }` and does not start
Terminal. An existing or new config with `terminalEnabled: true` starts
`airi-terminal` through `process.execPath` and `terminal.mjs`.
The Desktop Host uses `ask`, `auto`, and `full`. The Computer Use
service uses `actions`, `all`, and `never`. One list does not replace
the other.
`modelDecision`, `authorization`, `execution`, and
`businessVerification` stay separate in the service README.
`contextCompaction` stays in the Core Agent README. A delivered input or
a zero exit code is not business completion. A lost response after
dispatch is `unknown` and sets `doNotReplay`.
## Boundaries and risks
| Invariant or boundary | Failure mode | Protection | Evidence or gap |
| --- | --- | --- | --- |
| New packaged profile leaves Terminal off | A Beta flag turns Terminal
on again | The default config no longer reads `AIRI_DISTRIBUTION` |
`keeps the bundled Terminal off in a new packaged profile` |
| Explicit Terminal enable still uses the packaged executable | The
start path switches to an external Node binary or stores an install path
| `applyAndRestart` still builds the bundled server from `execPath` and
the app path | `starts the bundled Terminal in a packaged app when
Terminal is enabled` |
| An existing `terminalEnabled: true` config still starts Terminal | A
config migration drops the flag | The manager still reads the saved flag
| Existing `writeConfigText` cases in `index.test.ts` |
| Steam, Flatpak, and Nix stay externally updated | The updater runs
inside a store install | `isExternallyUpdatedInstall` still matches
those three installs | `auto-updater.test.ts` |
| `APP_USER_DATA_PATH` still selects the profile | The launcher drops
the environment branch | The launcher still applies a non-empty
`APP_USER_DATA_PATH` before the instance lock | Source check only. No
unit test covers the launcher entry |
| Service approval stays `actions`, `all`, and `never` | Docs teach
maintainers to use only Ask, Auto, and Full | The two lists are in
different READMEs | Documentation review. No new service test |
## Verification
`pnpm -F @proj-airi/stage-tamagotchi exec vitest run --project node
src/main/services/airi/mcp-servers/index.test.ts
src/main/services/electron/auto-updater.test.ts`
Result: 2 files passed, 91 tests passed.
`pnpm -F @proj-airi/stage-tamagotchi typecheck`
Result: passed.
ESLint on the changed TypeScript files passed with 0 errors.
`electron-builder.config.ts` still has 2 existing comment-length
warnings.
`git grep` of the deleted paths in the branch found no remaining
references.
Not verified: a packaged Windows launch, a real-model Agent task, and
Compact continuity on a real model run. The full repository lint and the
full AIRI build did not run.
## Visual changes
Not applicable: this change does not alter a page, window, or layout.
Made with [Cursor](https://cursor.com)
---------
Co-authored-by: Cursor <cursoragent@cursor.com>