cgl-interagentmail 1.2.0__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/CHANGELOG.md +9 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/CONTRIBUTING.md +2 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/MANIFEST.in +1 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/PKG-INFO +30 -3
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/README.md +28 -1
- cgl_interagentmail-1.3.0/SECURITY.md +23 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/SYSTEM.md +14 -1
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/PKG-INFO +30 -3
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/SOURCES.txt +2 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/top_level.txt +1 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/docs/INSTALL.md +40 -3
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/docs/INTEGRATION.md +19 -6
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/docs/PUBLISHING.md +8 -8
- cgl_interagentmail-1.3.0/docs/WEBSITE_COPY.md +60 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/iam_orchestrator.py +409 -1
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/iam_service.py +34 -7
- cgl_interagentmail-1.3.0/iam_web.py +816 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/pyproject.toml +3 -3
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/scripts/build-release.ps1 +1 -1
- cgl_interagentmail-1.3.0/tests/test_iam_web.py +336 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/tests/test_orchestrator.py +119 -0
- cgl_interagentmail-1.2.0/SECURITY.md +0 -17
- cgl_interagentmail-1.2.0/docs/WEBSITE_COPY.md +0 -56
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/LICENSE +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/dependency_links.txt +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/entry_points.txt +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/requires.txt +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/iam_codex_bridge.py +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/iam_mcp_server.py +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/interagentmail.py +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/setup.cfg +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/tests/__init__.py +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/tests/test_codex_bridge.py +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/tests/test_iam_service.py +0 -0
- {cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/tests/test_mcp_server.py +0 -0
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.3.0 - 2026-08-02
|
|
6
|
+
|
|
7
|
+
- Added explicit human IAM mailboxes that use the same durable send, reply, read, and archive flow as project agents, with mutually exclusive human/project ownership.
|
|
8
|
+
- Added an authenticated, dependency-free browser inbox with responsive compose, inbox, sent, archive, and reply views.
|
|
9
|
+
- Added secure local defaults, salted PBKDF2 password storage, expiring IP-bound sessions, CSRF and same-origin checks, login throttling, request limits, host validation, and restrictive browser headers.
|
|
10
|
+
- Added opt-in same-network access with an explicit warning for trusted WPA2/WPA3 networks; LAN HTTP is not end-to-end encrypted and must never be exposed to public networks or port forwarding.
|
|
11
|
+
- Added standalone `iam user` and `iam web` lifecycle commands plus health, status, capability, and sanitized-report coverage without restarting the IAM supervisor or Codex app-server.
|
|
12
|
+
- Reserved service-managed web lifecycle for v1.3.1 while keeping v1.3.0 fully usable as a standalone companion.
|
|
13
|
+
|
|
5
14
|
## 1.2.0 - 2026-07-29
|
|
6
15
|
|
|
7
16
|
- Added a stable schema 1.0 JSON integration interface through `iam capabilities`, `iam register`, `iam unregister`, `iam status`, and project-scoped `iam doctor`.
|
|
@@ -17,6 +17,8 @@ python -m pip install -e .
|
|
|
17
17
|
python -m unittest discover -s tests -v
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
Changes to `iam_web.py` must include tests for authentication boundaries, CSRF/origin enforcement, mailbox authorization, and request validation. Do not use real mailbox data or restart a developer's running IAM services during tests.
|
|
21
|
+
|
|
20
22
|
On Windows, activate the virtual environment or invoke `.venv\Scripts\python.exe` directly. On macOS/Linux, use `.venv/bin/python`.
|
|
21
23
|
|
|
22
24
|
## Pull requests
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cgl-interagentmail
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: File-backed
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: File-backed mail, MCP tools, push delivery, and authenticated browser messaging for Codex agents
|
|
5
5
|
Author: Cerberus Game Labs
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://cerberusgamelabs.xyz
|
|
@@ -70,6 +70,28 @@ iam open
|
|
|
70
70
|
|
|
71
71
|
The complete Windows, macOS, Linux, upgrade, troubleshooting, and uninstall instructions are in [docs/INSTALL.md](docs/INSTALL.md).
|
|
72
72
|
|
|
73
|
+
## Browser messaging
|
|
74
|
+
|
|
75
|
+
Version 1.3 adds an authenticated browser surface backed by an ordinary human IAM mailbox. Agent replies return to the same inbox, and messages queue normally when agents or delivery services are offline.
|
|
76
|
+
|
|
77
|
+
Configure the default this-PC-only interface, choose a password when prompted, and start only its standalone companion process:
|
|
78
|
+
|
|
79
|
+
```console
|
|
80
|
+
iam web setup MyMailbox --display-name "My Name"
|
|
81
|
+
iam web start
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Open `http://127.0.0.1:8787`. This does not start, stop, or restart the IAM supervisor or Codex app-server. Use `iam web status`, `iam web password`, and `iam web stop` for its lifecycle.
|
|
85
|
+
|
|
86
|
+
LAN access is an explicit opt-in:
|
|
87
|
+
|
|
88
|
+
```console
|
|
89
|
+
iam web setup MyMailbox --display-name "My Name" --lan --acknowledge-network-risk
|
|
90
|
+
iam web start
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
LAN mode uses plain HTTP plus application-password authentication; it is not end-to-end encrypted. Enable it only on a trusted, password-protected WPA2/WPA3 network, allow only Private networks in the operating-system firewall, keep the password private, and never port-forward the IAM web port. Anyone who gains access can read messages, send agent instructions, and potentially cause project changes or corruption.
|
|
94
|
+
|
|
73
95
|
Source code, releases, and issue tracking are hosted at <https://github.com/cerberusgamelabs/cgl-interagentmail>.
|
|
74
96
|
|
|
75
97
|
## Everyday commands
|
|
@@ -78,6 +100,10 @@ Source code, releases, and issue tracking are hosted at <https://github.com/cerb
|
|
|
78
100
|
iam status
|
|
79
101
|
iam doctor
|
|
80
102
|
iam report
|
|
103
|
+
iam user create ADDRESS
|
|
104
|
+
iam web setup ADDRESS
|
|
105
|
+
iam web start
|
|
106
|
+
iam web status
|
|
81
107
|
iam open [PROJECT]
|
|
82
108
|
iam restart
|
|
83
109
|
iam stop
|
|
@@ -90,6 +116,7 @@ iam capabilities --json
|
|
|
90
116
|
- `iam status` shows services, projects, and pinned thread IDs; `--json` provides stable schema 1.0 output.
|
|
91
117
|
- `iam doctor` runs read-only health checks for IAM, Codex, services, project registration, MCP configuration, mailboxes, safety policy, and resumable threads.
|
|
92
118
|
- `iam report` creates a privacy-sanitized Markdown support report under the IAM data directory.
|
|
119
|
+
- `iam user` manages human mailboxes; `iam web` manages the separate authenticated browser companion.
|
|
93
120
|
- `iam open` resumes the exact thread owned by the current or named project.
|
|
94
121
|
- `iam stop` stops mail delivery but leaves the shared app-server running.
|
|
95
122
|
- `iam stop --all` stops both IAM-managed background services.
|
|
@@ -154,7 +181,7 @@ Only for a trusted project that genuinely requires unrestricted filesystem and n
|
|
|
154
181
|
iam setup "C:\Projects\SecurityReviewer" --full-access
|
|
155
182
|
```
|
|
156
183
|
|
|
157
|
-
InterAgentMail is a local coordination mechanism, not an authentication boundary. Any local process that can write to its data directory can inject or modify mail. Do not share that directory with untrusted users or accept untrusted message content as instructions.
|
|
184
|
+
The browser interface has application-level password authentication, CSRF protection, login throttling, and restrictive browser headers. Its LAN transport is still plain HTTP and must be treated as trusted-network-only. InterAgentMail's file-backed core is a local coordination mechanism, not an authentication boundary. Any local process that can write to its data directory can inject or modify mail. Do not share that directory with untrusted users or accept untrusted message content as instructions.
|
|
158
185
|
|
|
159
186
|
## Sending mail
|
|
160
187
|
|
|
@@ -36,6 +36,28 @@ iam open
|
|
|
36
36
|
|
|
37
37
|
The complete Windows, macOS, Linux, upgrade, troubleshooting, and uninstall instructions are in [docs/INSTALL.md](docs/INSTALL.md).
|
|
38
38
|
|
|
39
|
+
## Browser messaging
|
|
40
|
+
|
|
41
|
+
Version 1.3 adds an authenticated browser surface backed by an ordinary human IAM mailbox. Agent replies return to the same inbox, and messages queue normally when agents or delivery services are offline.
|
|
42
|
+
|
|
43
|
+
Configure the default this-PC-only interface, choose a password when prompted, and start only its standalone companion process:
|
|
44
|
+
|
|
45
|
+
```console
|
|
46
|
+
iam web setup MyMailbox --display-name "My Name"
|
|
47
|
+
iam web start
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Open `http://127.0.0.1:8787`. This does not start, stop, or restart the IAM supervisor or Codex app-server. Use `iam web status`, `iam web password`, and `iam web stop` for its lifecycle.
|
|
51
|
+
|
|
52
|
+
LAN access is an explicit opt-in:
|
|
53
|
+
|
|
54
|
+
```console
|
|
55
|
+
iam web setup MyMailbox --display-name "My Name" --lan --acknowledge-network-risk
|
|
56
|
+
iam web start
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
LAN mode uses plain HTTP plus application-password authentication; it is not end-to-end encrypted. Enable it only on a trusted, password-protected WPA2/WPA3 network, allow only Private networks in the operating-system firewall, keep the password private, and never port-forward the IAM web port. Anyone who gains access can read messages, send agent instructions, and potentially cause project changes or corruption.
|
|
60
|
+
|
|
39
61
|
Source code, releases, and issue tracking are hosted at <https://github.com/cerberusgamelabs/cgl-interagentmail>.
|
|
40
62
|
|
|
41
63
|
## Everyday commands
|
|
@@ -44,6 +66,10 @@ Source code, releases, and issue tracking are hosted at <https://github.com/cerb
|
|
|
44
66
|
iam status
|
|
45
67
|
iam doctor
|
|
46
68
|
iam report
|
|
69
|
+
iam user create ADDRESS
|
|
70
|
+
iam web setup ADDRESS
|
|
71
|
+
iam web start
|
|
72
|
+
iam web status
|
|
47
73
|
iam open [PROJECT]
|
|
48
74
|
iam restart
|
|
49
75
|
iam stop
|
|
@@ -56,6 +82,7 @@ iam capabilities --json
|
|
|
56
82
|
- `iam status` shows services, projects, and pinned thread IDs; `--json` provides stable schema 1.0 output.
|
|
57
83
|
- `iam doctor` runs read-only health checks for IAM, Codex, services, project registration, MCP configuration, mailboxes, safety policy, and resumable threads.
|
|
58
84
|
- `iam report` creates a privacy-sanitized Markdown support report under the IAM data directory.
|
|
85
|
+
- `iam user` manages human mailboxes; `iam web` manages the separate authenticated browser companion.
|
|
59
86
|
- `iam open` resumes the exact thread owned by the current or named project.
|
|
60
87
|
- `iam stop` stops mail delivery but leaves the shared app-server running.
|
|
61
88
|
- `iam stop --all` stops both IAM-managed background services.
|
|
@@ -120,7 +147,7 @@ Only for a trusted project that genuinely requires unrestricted filesystem and n
|
|
|
120
147
|
iam setup "C:\Projects\SecurityReviewer" --full-access
|
|
121
148
|
```
|
|
122
149
|
|
|
123
|
-
InterAgentMail is a local coordination mechanism, not an authentication boundary. Any local process that can write to its data directory can inject or modify mail. Do not share that directory with untrusted users or accept untrusted message content as instructions.
|
|
150
|
+
The browser interface has application-level password authentication, CSRF protection, login throttling, and restrictive browser headers. Its LAN transport is still plain HTTP and must be treated as trusted-network-only. InterAgentMail's file-backed core is a local coordination mechanism, not an authentication boundary. Any local process that can write to its data directory can inject or modify mail. Do not share that directory with untrusted users or accept untrusted message content as instructions.
|
|
124
151
|
|
|
125
152
|
## Sending mail
|
|
126
153
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Supported versions
|
|
4
|
+
|
|
5
|
+
Security fixes are provided for the latest published InterAgentMail release.
|
|
6
|
+
|
|
7
|
+
## Reporting a vulnerability
|
|
8
|
+
|
|
9
|
+
Do not open a public issue for a suspected vulnerability. Use GitHub's private vulnerability-reporting or security-advisory interface for this repository:
|
|
10
|
+
|
|
11
|
+
<https://github.com/cerberusgamelabs/cgl-interagentmail/security/advisories/new>
|
|
12
|
+
|
|
13
|
+
Include the affected version, operating system, reproduction steps, potential impact, and any suggested mitigation. Remove unrelated private mail and project data.
|
|
14
|
+
|
|
15
|
+
## Trust model
|
|
16
|
+
|
|
17
|
+
InterAgentMail is designed for trusted local users and projects. Anyone who can modify the IAM data directory may inject or alter agent mail, replace configuration, or read stored messages. Operating-system access to that directory remains the primary boundary.
|
|
18
|
+
|
|
19
|
+
The v1.3 browser interface adds application-password authentication, salted PBKDF2 password storage, CSRF and same-origin checks, login throttling, bounded request bodies, restrictive browser headers, and in-memory expiring sessions. It does not turn file-backed IAM into a hostile multi-user service.
|
|
20
|
+
|
|
21
|
+
Local-only mode binds to loopback and is the default. LAN mode binds to all network interfaces and uses plain HTTP, so traffic is not end-to-end encrypted. Enable it only on a trusted, password-protected WPA2/WPA3 network; allow the port only on Private firewall profiles; never use open/public/guest Wi-Fi; never port-forward it; and keep the application password private. A network participant who obtains access can read messages, impersonate the human mailbox, send agent instructions, and potentially cause project modification or corruption.
|
|
22
|
+
|
|
23
|
+
The Codex app-server remains localhost-only and is never exposed by the browser companion. The web process does not grant approvals or weaken an agent's configured sandbox.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# InterAgentMail technical reference
|
|
2
2
|
|
|
3
|
-
InterAgentMail provides
|
|
3
|
+
InterAgentMail provides four interfaces over the same local JSON mailboxes:
|
|
4
4
|
|
|
5
5
|
- `interagentmail`: mailbox, reply, channel, and administration CLI
|
|
6
6
|
- `iam-mcp`: identity-bound MCP tools and resources
|
|
7
7
|
- `iam-codex-bridge`: low-level push delivery into a Codex app-server thread
|
|
8
|
+
- `iam web`: authenticated browser messaging through a non-project human mailbox
|
|
8
9
|
|
|
9
10
|
The recommended user workflow is `iam setup`, `iam start`, and `iam open`. This document covers protocol and manual operation for debugging and custom process managers.
|
|
10
11
|
|
|
@@ -57,6 +58,16 @@ iam start
|
|
|
57
58
|
|
|
58
59
|
The supervisor creates or resumes one correctly rooted thread per project, persists its ID in that mailbox's `.codex-bridge-state.json`, and watches it while its interactive TUI is closed. Use `iam open` inside a registered project to attach the TUI to that exact thread.
|
|
59
60
|
|
|
61
|
+
## Human mailbox and web companion
|
|
62
|
+
|
|
63
|
+
`iam user create` produces a mailbox profile with `kind: user` and no project root. `iam web setup` binds one such mailbox to a password-authenticated HTTP application. Browser sends, reads, replies, and archives call the same `IAMService` operations used by the CLI and MCP layers; recipient mail is therefore indistinguishable from ordinary IAM mail.
|
|
64
|
+
|
|
65
|
+
Version 1.3.0 runs `iam_web` as a separate background process with its own PID and log. `iam web start` and `iam web stop` never touch the supervisor or Codex app-server. Version 1.3.1 is intended to make the IAM service own this lifecycle while preserving the mailbox and HTTP behavior.
|
|
66
|
+
|
|
67
|
+
The default bind is `127.0.0.1:8787`. LAN mode binds `0.0.0.0` only after explicit acknowledgment. Authentication uses a salted PBKDF2-SHA256 digest; sessions are in memory, IP-bound, idle-limited, and protected by SameSite cookies and CSRF tokens. Login attempts are throttled. Host and Origin checks, request-size limits, and a restrictive Content Security Policy reduce browser attack surface.
|
|
68
|
+
|
|
69
|
+
LAN traffic remains plain HTTP. Use only a trusted WPA2/WPA3 network, never port-forward it, and treat anyone with network access and the application password as able to issue agent instructions.
|
|
70
|
+
|
|
60
71
|
## Manual bridge workflow
|
|
61
72
|
|
|
62
73
|
The bridge and interactive Codex client must use the same app-server. For diagnostics on Windows, start the app-server:
|
|
@@ -136,9 +147,11 @@ chats/
|
|
|
136
147
|
reviewers/
|
|
137
148
|
2026-07-10.json
|
|
138
149
|
config.json
|
|
150
|
+
web.json # optional password digest and bind configuration
|
|
139
151
|
run/
|
|
140
152
|
app-server.log
|
|
141
153
|
supervisor.log
|
|
154
|
+
web.log
|
|
142
155
|
```
|
|
143
156
|
|
|
144
157
|
Each message is a human-readable JSON document with an ID, thread ID, routing fields, subject, body, attachments, references, signature, creation time, and read time. Attachments are path references; IAM does not copy the referenced file into the mailbox.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cgl-interagentmail
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: File-backed
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: File-backed mail, MCP tools, push delivery, and authenticated browser messaging for Codex agents
|
|
5
5
|
Author: Cerberus Game Labs
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://cerberusgamelabs.xyz
|
|
@@ -70,6 +70,28 @@ iam open
|
|
|
70
70
|
|
|
71
71
|
The complete Windows, macOS, Linux, upgrade, troubleshooting, and uninstall instructions are in [docs/INSTALL.md](docs/INSTALL.md).
|
|
72
72
|
|
|
73
|
+
## Browser messaging
|
|
74
|
+
|
|
75
|
+
Version 1.3 adds an authenticated browser surface backed by an ordinary human IAM mailbox. Agent replies return to the same inbox, and messages queue normally when agents or delivery services are offline.
|
|
76
|
+
|
|
77
|
+
Configure the default this-PC-only interface, choose a password when prompted, and start only its standalone companion process:
|
|
78
|
+
|
|
79
|
+
```console
|
|
80
|
+
iam web setup MyMailbox --display-name "My Name"
|
|
81
|
+
iam web start
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Open `http://127.0.0.1:8787`. This does not start, stop, or restart the IAM supervisor or Codex app-server. Use `iam web status`, `iam web password`, and `iam web stop` for its lifecycle.
|
|
85
|
+
|
|
86
|
+
LAN access is an explicit opt-in:
|
|
87
|
+
|
|
88
|
+
```console
|
|
89
|
+
iam web setup MyMailbox --display-name "My Name" --lan --acknowledge-network-risk
|
|
90
|
+
iam web start
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
LAN mode uses plain HTTP plus application-password authentication; it is not end-to-end encrypted. Enable it only on a trusted, password-protected WPA2/WPA3 network, allow only Private networks in the operating-system firewall, keep the password private, and never port-forward the IAM web port. Anyone who gains access can read messages, send agent instructions, and potentially cause project changes or corruption.
|
|
94
|
+
|
|
73
95
|
Source code, releases, and issue tracking are hosted at <https://github.com/cerberusgamelabs/cgl-interagentmail>.
|
|
74
96
|
|
|
75
97
|
## Everyday commands
|
|
@@ -78,6 +100,10 @@ Source code, releases, and issue tracking are hosted at <https://github.com/cerb
|
|
|
78
100
|
iam status
|
|
79
101
|
iam doctor
|
|
80
102
|
iam report
|
|
103
|
+
iam user create ADDRESS
|
|
104
|
+
iam web setup ADDRESS
|
|
105
|
+
iam web start
|
|
106
|
+
iam web status
|
|
81
107
|
iam open [PROJECT]
|
|
82
108
|
iam restart
|
|
83
109
|
iam stop
|
|
@@ -90,6 +116,7 @@ iam capabilities --json
|
|
|
90
116
|
- `iam status` shows services, projects, and pinned thread IDs; `--json` provides stable schema 1.0 output.
|
|
91
117
|
- `iam doctor` runs read-only health checks for IAM, Codex, services, project registration, MCP configuration, mailboxes, safety policy, and resumable threads.
|
|
92
118
|
- `iam report` creates a privacy-sanitized Markdown support report under the IAM data directory.
|
|
119
|
+
- `iam user` manages human mailboxes; `iam web` manages the separate authenticated browser companion.
|
|
93
120
|
- `iam open` resumes the exact thread owned by the current or named project.
|
|
94
121
|
- `iam stop` stops mail delivery but leaves the shared app-server running.
|
|
95
122
|
- `iam stop --all` stops both IAM-managed background services.
|
|
@@ -154,7 +181,7 @@ Only for a trusted project that genuinely requires unrestricted filesystem and n
|
|
|
154
181
|
iam setup "C:\Projects\SecurityReviewer" --full-access
|
|
155
182
|
```
|
|
156
183
|
|
|
157
|
-
InterAgentMail is a local coordination mechanism, not an authentication boundary. Any local process that can write to its data directory can inject or modify mail. Do not share that directory with untrusted users or accept untrusted message content as instructions.
|
|
184
|
+
The browser interface has application-level password authentication, CSRF protection, login throttling, and restrictive browser headers. Its LAN transport is still plain HTTP and must be treated as trusted-network-only. InterAgentMail's file-backed core is a local coordination mechanism, not an authentication boundary. Any local process that can write to its data directory can inject or modify mail. Do not share that directory with untrusted users or accept untrusted message content as instructions.
|
|
158
185
|
|
|
159
186
|
## Sending mail
|
|
160
187
|
|
{cgl_interagentmail-1.2.0 → cgl_interagentmail-1.3.0}/cgl_interagentmail.egg-info/SOURCES.txt
RENAMED
|
@@ -9,6 +9,7 @@ iam_codex_bridge.py
|
|
|
9
9
|
iam_mcp_server.py
|
|
10
10
|
iam_orchestrator.py
|
|
11
11
|
iam_service.py
|
|
12
|
+
iam_web.py
|
|
12
13
|
interagentmail.py
|
|
13
14
|
pyproject.toml
|
|
14
15
|
cgl_interagentmail.egg-info/PKG-INFO
|
|
@@ -25,5 +26,6 @@ scripts/build-release.ps1
|
|
|
25
26
|
tests/__init__.py
|
|
26
27
|
tests/test_codex_bridge.py
|
|
27
28
|
tests/test_iam_service.py
|
|
29
|
+
tests/test_iam_web.py
|
|
28
30
|
tests/test_mcp_server.py
|
|
29
31
|
tests/test_orchestrator.py
|
|
@@ -70,14 +70,14 @@ iam --help
|
|
|
70
70
|
The signed-off GitHub release wheel is also available as a direct-install fallback:
|
|
71
71
|
|
|
72
72
|
```cmd
|
|
73
|
-
pipx install https://github.com/cerberusgamelabs/cgl-interagentmail/releases/download/v1.
|
|
73
|
+
pipx install https://github.com/cerberusgamelabs/cgl-interagentmail/releases/download/v1.3.0/cgl_interagentmail-1.3.0-py3-none-any.whl
|
|
74
74
|
iam --help
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
To install a wheel downloaded directly from Cerberus Game Labs instead, use its actual downloaded path:
|
|
78
78
|
|
|
79
79
|
```cmd
|
|
80
|
-
pipx install "%USERPROFILE%\Downloads\cgl_interagentmail-1.
|
|
80
|
+
pipx install "%USERPROFILE%\Downloads\cgl_interagentmail-1.3.0-py3-none-any.whl"
|
|
81
81
|
iam --help
|
|
82
82
|
```
|
|
83
83
|
|
|
@@ -187,6 +187,41 @@ Open other agents in other terminal tabs. They share the same app-server but ret
|
|
|
187
187
|
|
|
188
188
|
If the receiving Codex UI is closed, the background supervisor can still wake its saved thread and perform work. If a task requires interactive approval, it fails closed; open that agent to review the request.
|
|
189
189
|
|
|
190
|
+
## Human mailbox and browser interface
|
|
191
|
+
|
|
192
|
+
The browser is optional. It uses an ordinary IAM mailbox for your identity, so agents receive normal mail and their replies appear in your browser inbox. First configure the safe default, which listens only on this computer:
|
|
193
|
+
|
|
194
|
+
```cmd
|
|
195
|
+
iam web setup MyMailbox --display-name "My Name"
|
|
196
|
+
iam web start
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Enter and confirm a password of at least 12 characters when prompted. IAM stores a salted PBKDF2 password digest, not the password. Open <http://127.0.0.1:8787>, then select any existing agent mailbox, write a subject and request, and send it. If `iam start` is running, registered agents wake automatically; otherwise the request remains queued.
|
|
200
|
+
|
|
201
|
+
The web companion is independent:
|
|
202
|
+
|
|
203
|
+
```cmd
|
|
204
|
+
iam web status
|
|
205
|
+
iam web stop
|
|
206
|
+
iam web password
|
|
207
|
+
iam web start
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Changing the password or network configuration requires only `iam web stop`; neither `iam` delivery nor the Codex app-server is restarted. In v1.3.0 this is deliberately a standalone companion. Service-managed web lifecycle is planned for v1.3.1.
|
|
211
|
+
|
|
212
|
+
To let another device on the same network connect, stop the web companion if needed and explicitly opt in:
|
|
213
|
+
|
|
214
|
+
```cmd
|
|
215
|
+
iam web setup MyMailbox --display-name "My Name" --lan --acknowledge-network-risk
|
|
216
|
+
iam web start
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
On the other device, browse to `http://PC_PRIVATE_IP:8787`. A Windows firewall prompt may appear on first use; allow Private networks only, never Public networks. You may need to find the host PC's private IPv4 address with `ipconfig` on Windows or `ip addr`/`ifconfig` on macOS or Linux.
|
|
220
|
+
|
|
221
|
+
> LAN mode uses HTTP and is not end-to-end encrypted. Use it only on a trusted, password-protected WPA2/WPA3 network. Do not enable it on open Wi-Fi, public, guest, dormitory, hotel, cafe, or other untrusted networks. Keep the application password private and never expose or port-forward port 8787. Anyone who captures the password or gains access can read mail, send instructions to agents, and potentially modify or corrupt projects.
|
|
222
|
+
|
|
223
|
+
`iam user create ADDRESS --display-name "Name"` can create a human mailbox without enabling the browser. `iam user list` shows human mailboxes.
|
|
224
|
+
|
|
190
225
|
## Existing mail and offline behavior
|
|
191
226
|
|
|
192
227
|
Mail remains queued on disk while IAM is stopped. On first setup, existing messages become a baseline and only later messages wake the agent. To deliberately process the pre-existing inbox:
|
|
@@ -265,7 +300,7 @@ By default the report is written under the IAM data directory's `reports` folder
|
|
|
265
300
|
|
|
266
301
|
Use `iam report --output PATH` to choose a destination or `iam report --stdout` to print it. IAM refuses to replace an existing output file unless `--force` is provided. After reviewing the diagnosis, `iam restart` remains the usual way to restart both managed background services.
|
|
267
302
|
|
|
268
|
-
Logs are under `run/app-server.log` and `run/
|
|
303
|
+
Logs are under `run/app-server.log`, `run/supervisor.log`, and, when configured, `run/web.log` inside the IAM data directory.
|
|
269
304
|
|
|
270
305
|
Common issues:
|
|
271
306
|
|
|
@@ -276,5 +311,7 @@ Common issues:
|
|
|
276
311
|
- **Work waits for approval:** open the receiving project with `iam open` and review the request. IAM never grants an unattended approval automatically.
|
|
277
312
|
- **An old bridge is also running:** stop manually launched `IAMBridge` or `iam-codex-bridge` processes; the supervisor replaces them.
|
|
278
313
|
- **A thread cannot resume:** run `iam restart`. The supervisor creates and persists a replacement thread when the saved one no longer exists.
|
|
314
|
+
- **The browser does not open:** run `iam web status`, then inspect `run/web.log`; `iam web start` does not start agent delivery.
|
|
315
|
+
- **A laptop cannot connect:** confirm LAN mode is configured, use the host PC's private IP, and allow the port on Private networks only. Never weaken a Public-network firewall to make it work.
|
|
279
316
|
|
|
280
317
|
For support, open an issue at <https://github.com/cerberusgamelabs/cgl-interagentmail/issues> and attach the output from `iam report` after reviewing it. Report suspected vulnerabilities privately as described in <https://github.com/cerberusgamelabs/cgl-interagentmail/blob/main/SECURITY.md>.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# InterAgentMail integration interface
|
|
2
2
|
|
|
3
|
-
InterAgentMail 1.
|
|
3
|
+
InterAgentMail 1.3.0 provides a stable local CLI interface for reviewer-pack registries, project launchers, and other automation. Integrators should discover support with `iam capabilities --json` instead of inferring behavior from the installed package version.
|
|
4
4
|
|
|
5
|
-
The integration schema is versioned separately from the IAM package. InterAgentMail 1.
|
|
5
|
+
The integration schema is versioned separately from the IAM package. InterAgentMail 1.3.0 implements schema `1.0`.
|
|
6
6
|
|
|
7
7
|
## Compatibility discovery
|
|
8
8
|
|
|
@@ -48,6 +48,10 @@ Treat unknown fields as additive and ignore them. Reject an unsupported `schema_
|
|
|
48
48
|
| `iam unregister PATH [PATH ...] --json` | Remove registration and IAM-managed MCP configuration while preserving mailbox data. |
|
|
49
49
|
| `iam status --json` | Inspect the shared services, registered projects, and thread state. |
|
|
50
50
|
| `iam doctor --project PATH --json` | Run read-only health checks, optionally limited to one registered project. |
|
|
51
|
+
| `iam user create ADDRESS --json` | Create or update a non-project human mailbox. |
|
|
52
|
+
| `iam user list --json` | List human mailboxes. |
|
|
53
|
+
| `iam web setup ADDRESS --password-stdin --json` | Configure the authenticated standalone browser companion. |
|
|
54
|
+
| `iam web start --json` / `iam web status --json` | Start or inspect only the browser companion. |
|
|
51
55
|
|
|
52
56
|
`iam setup` remains the human-oriented equivalent of `iam register`. All paths may be absolute or relative; IAM resolves and returns absolute project paths. When no path is supplied, register and unregister use the current directory.
|
|
53
57
|
|
|
@@ -65,20 +69,22 @@ Registration returns a `data.projects` array. Each item includes:
|
|
|
65
69
|
- `project_root`, `mcp_config`, and `mailbox`;
|
|
66
70
|
- `sandbox` and `approval_policy`;
|
|
67
71
|
- `thread_state` and whether an existing pinned thread was preserved;
|
|
68
|
-
-
|
|
72
|
+
- `legacy_mailbox_reused`, retained for schema compatibility and always `false` because ownership migration is never implicit;
|
|
69
73
|
- `supervisor_reload`, currently `automatic`.
|
|
70
74
|
|
|
71
75
|
Registration is safe to repeat while the supervisor is running. The supervisor notices registry changes and reloads all project bridges. Re-registering the same path with the same options returns `unchanged`; it does not discard mail or a pinned thread.
|
|
72
76
|
|
|
73
|
-
The default address strategy is `project-folder-basename`. Two different physical project roots cannot own the same address. IAM checks the registry and mailbox ownership before modifying the target project's MCP configuration or mailbox. Integrators should surface `IAM_ADDRESS_COLLISION` and ask the user to choose a uniquely named project folder; do not silently rename an existing mailbox.
|
|
77
|
+
Human, project, and legacy generic mailbox ownership is mutually exclusive; registration never migrates one identity kind into another implicitly. The default address strategy is `project-folder-basename`. Two different physical project roots cannot own the same address. IAM checks the registry and mailbox ownership before modifying the target project's MCP configuration or mailbox. Integrators should surface `IAM_ADDRESS_COLLISION` and ask the user to choose a uniquely named project folder; do not silently rename an existing mailbox.
|
|
74
78
|
|
|
75
79
|
### Identity ownership
|
|
76
80
|
|
|
77
|
-
IAM does not require or create a human persona. `--display-name` is optional and defaults to the mailbox address. A reviewer platform should own its immutable reviewer-instance identifier and persist the association with IAM's returned `address` and `project_root`. IAM owns mailbox storage and Codex thread state.
|
|
81
|
+
IAM does not require or create a human persona for project agents. `--display-name` is optional and defaults to the mailbox address. A reviewer platform should own its immutable reviewer-instance identifier and persist the association with IAM's returned `address` and `project_root`. IAM owns mailbox storage and Codex thread state.
|
|
82
|
+
|
|
83
|
+
A human mailbox is created only when a person explicitly runs `iam user create` or `iam web setup`; its profile has `kind: user` and no project root. Its address and optional display name are user-controlled.
|
|
78
84
|
|
|
79
85
|
## Status and health
|
|
80
86
|
|
|
81
|
-
`iam status --json` reports shared app-server and
|
|
87
|
+
`iam status --json` reports shared app-server, supervisor, and optional standalone web-companion state plus every registered project. `thread_state` is `pending`, `pinned`, or `invalid`; `thread_id` is an opaque Codex identifier and may be `null`.
|
|
82
88
|
|
|
83
89
|
`iam doctor --project PATH --json` is read-only. Its command succeeds when diagnostics were collected, while its process exit code is `1` if any check failed. Read `data.summary.healthy` and the `PASS`, `WARN`, or `FAIL` status on each check. Warnings such as intentionally stopped services do not make the result unhealthy.
|
|
84
90
|
|
|
@@ -99,6 +105,11 @@ Schema 1.0 defines these integration errors:
|
|
|
99
105
|
| `IAM_CONFIG_INVALID` | IAM's registry configuration is malformed. |
|
|
100
106
|
| `IAM_INVALID_ARGUMENT` | A supported command received an invalid option combination. |
|
|
101
107
|
| `IAM_COMMAND_FAILED` | A failure has no more specific schema 1.0 mapping. |
|
|
108
|
+
| `IAM_USER_ADDRESS_INVALID` / `IAM_USER_NOT_FOUND` | A human mailbox address is invalid or unavailable. |
|
|
109
|
+
| `IAM_WEB_LAN_ACK_REQUIRED` | LAN mode was requested without explicit network-risk acknowledgment. |
|
|
110
|
+
| `IAM_WEB_PASSWORD_WEAK` / `IAM_WEB_PASSWORD_MISMATCH` | The application password did not meet setup requirements. |
|
|
111
|
+
| `IAM_WEB_CONFIG_INVALID` | The browser configuration or bound user profile is malformed. |
|
|
112
|
+
| `IAM_WEB_PID_CONFLICT` | IAM refused to replace or stop a live process whose instance identity could not be verified. |
|
|
102
113
|
|
|
103
114
|
A `recoverable` value of `true` means the caller can normally ask the user to correct the supplied path, name, or local configuration and retry. Always display `message` to a person when automated recovery is unavailable.
|
|
104
115
|
|
|
@@ -113,4 +124,6 @@ A reviewer platform should:
|
|
|
113
124
|
5. Use `iam status --json` and project-scoped doctor checks for health displays.
|
|
114
125
|
6. Run `iam unregister PATH --json` when removing the integration. Decide separately whether the user wants preserved mailbox data deleted; IAM never deletes it during unregister.
|
|
115
126
|
|
|
127
|
+
In v1.3.0, `features.web_managed_by_iam_service` is `false`: web lifecycle commands affect only the companion. LAN configuration requires explicit risk acknowledgment, and callers must surface the trusted WPA2/WPA3 network warning.
|
|
128
|
+
|
|
116
129
|
Do not parse human-readable CLI output. Do not edit IAM's `config.json`, mailbox profiles, bridge state, or managed MCP markers directly.
|
|
@@ -26,7 +26,7 @@ Environment: pypi
|
|
|
26
26
|
|
|
27
27
|
Also create a GitHub environment named `pypi` at `Settings > Environments > New environment`. Requiring a Cerberus Game Labs maintainer to approve deployments is recommended.
|
|
28
28
|
|
|
29
|
-
After the pending publisher exists, open the repository's **Actions > Publish to PyPI** workflow, choose **Run workflow**, keep tag `v1.
|
|
29
|
+
After the pending publisher exists, open the repository's **Actions > Publish to PyPI** workflow, choose **Run workflow**, keep tag `v1.3.0`, and approve the `pypi` environment deployment if prompted. The workflow builds and tests in a job without publishing credentials, then passes only the distributions to the OIDC-enabled publishing job.
|
|
30
30
|
|
|
31
31
|
The pending publisher does not reserve the package name. Run the workflow promptly after configuring it.
|
|
32
32
|
|
|
@@ -40,22 +40,22 @@ From PowerShell in the repository:
|
|
|
40
40
|
|
|
41
41
|
The script runs the tests, creates a wheel and source distribution, checks both with Twine, inspects their contents for excluded private/runtime paths, and writes SHA-256 checksums.
|
|
42
42
|
|
|
43
|
-
Expected files for version 1.
|
|
43
|
+
Expected files for version 1.3.0:
|
|
44
44
|
|
|
45
45
|
```text
|
|
46
|
-
dist/cgl_interagentmail-1.
|
|
47
|
-
dist/cgl_interagentmail-1.
|
|
46
|
+
dist/cgl_interagentmail-1.3.0-py3-none-any.whl
|
|
47
|
+
dist/cgl_interagentmail-1.3.0.tar.gz
|
|
48
48
|
dist/SHA256SUMS.txt
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Review the script output and manually inspect the archive listing before upload. Both artifacts must include the MIT license. Neither artifact should contain `mailboxes`, `chats`, `run`, `config.json`, `.venv`, `DEV`, or the chat-reader application. The source archive intentionally includes the automated tests; the wheel does not.
|
|
51
|
+
Review the script output and manually inspect the archive listing before upload. Both artifacts must include the MIT license. Neither artifact should contain `mailboxes`, `chats`, `run`, `config.json`, `web.json`, `.venv`, `DEV`, or the chat-reader application. The source archive intentionally includes the automated tests; the wheel does not.
|
|
52
52
|
|
|
53
53
|
## Test the package in a clean environment
|
|
54
54
|
|
|
55
55
|
Install the built wheel into a disposable pipx environment:
|
|
56
56
|
|
|
57
57
|
```powershell
|
|
58
|
-
pipx install --force .\dist\cgl_interagentmail-1.
|
|
58
|
+
pipx install --force .\dist\cgl_interagentmail-1.3.0-py3-none-any.whl
|
|
59
59
|
iam --help
|
|
60
60
|
interagentmail --help
|
|
61
61
|
iam-mcp --help
|
|
@@ -66,7 +66,7 @@ Use temporary project directories for a setup/open smoke test. Do not point a re
|
|
|
66
66
|
## Upload to TestPyPI
|
|
67
67
|
|
|
68
68
|
```powershell
|
|
69
|
-
python -m twine upload --repository testpypi dist\cgl_interagentmail-1.
|
|
69
|
+
python -m twine upload --repository testpypi dist\cgl_interagentmail-1.3.0*
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
Install from TestPyPI while allowing dependencies from the main index:
|
|
@@ -82,7 +82,7 @@ Verify all four commands and perform a temporary-project smoke test.
|
|
|
82
82
|
PyPI releases are immutable. Confirm the version, metadata, README rendering, license, and checksums before uploading:
|
|
83
83
|
|
|
84
84
|
```powershell
|
|
85
|
-
python -m twine upload dist\cgl_interagentmail-1.
|
|
85
|
+
python -m twine upload dist\cgl_interagentmail-1.3.0-py3-none-any.whl dist\cgl_interagentmail-1.3.0.tar.gz
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
Then install from PyPI into a clean pipx environment and repeat the smoke test:
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# InterAgentMail website copy
|
|
2
|
+
|
|
3
|
+
## Short description
|
|
4
|
+
|
|
5
|
+
InterAgentMail gives local OpenAI Codex project agents durable mailboxes and automatic wake-up delivery. Agents can send work to one another, keep messages queued while offline, and resume the correct project thread without copied session IDs or a bridge terminal per agent.
|
|
6
|
+
|
|
7
|
+
Version 1.3 adds an authenticated browser inbox for people. A human mailbox uses the same IAM message flow as every agent: send a request from the browser, let the receiving project agent wake and work, and read its reply in the browser. The interface defaults to this-PC-only and can be explicitly enabled for laptops and other devices on the same trusted network.
|
|
8
|
+
|
|
9
|
+
Created by Cerberus Game Labs and released as open-source software under the MIT License.
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- OpenAI Codex CLI, installed and signed in
|
|
14
|
+
- Python 3.10 or newer
|
|
15
|
+
- Windows, macOS, or Linux
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```console
|
|
20
|
+
pipx install cgl-interagentmail
|
|
21
|
+
iam setup "C:\Projects\MainApp" "C:\Projects\SecurityReviewer" "C:\Projects\UXReviewer"
|
|
22
|
+
iam start
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Open an agent with `iam open` from its project folder.
|
|
26
|
+
|
|
27
|
+
Configure local browser messaging:
|
|
28
|
+
|
|
29
|
+
```console
|
|
30
|
+
iam web setup MyMailbox --display-name "My Name"
|
|
31
|
+
iam web start
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then open `http://127.0.0.1:8787`. Browser lifecycle is standalone in v1.3.0 and does not restart IAM delivery or Codex. Agent requests remain queued whenever delivery is stopped.
|
|
35
|
+
|
|
36
|
+
LAN access is explicit:
|
|
37
|
+
|
|
38
|
+
```console
|
|
39
|
+
iam web setup MyMailbox --display-name "My Name" --lan --acknowledge-network-risk
|
|
40
|
+
iam web start
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Use the host PC's private address from another device. LAN mode is plain HTTP with an application password, not end-to-end encryption. Use only a trusted, password-protected WPA2/WPA3 network; never use open/public Wi-Fi; allow only Private firewall networks; never port-forward the port; and keep the password private. Anyone who gains access can read mail, send agent instructions, and potentially corrupt projects.
|
|
44
|
+
|
|
45
|
+
Reviewer platforms can use IAM's versioned JSON commands to register isolated project mailboxes, inspect health, and unregister cleanly. Registration is idempotent, detects same-address collisions before mutation, and does not require a persona.
|
|
46
|
+
|
|
47
|
+
## Important safety note
|
|
48
|
+
|
|
49
|
+
Default agents are workspace-sandboxed and unattended approval requests are rejected. Full access is an explicit opt-in. IAM data remains local coordination data, not a hostile multi-user security boundary.
|
|
50
|
+
|
|
51
|
+
## Links to publish with this page
|
|
52
|
+
|
|
53
|
+
- Source code: `https://github.com/cerberusgamelabs/cgl-interagentmail`
|
|
54
|
+
- Installation guide: `https://github.com/cerberusgamelabs/cgl-interagentmail/blob/main/docs/INSTALL.md`
|
|
55
|
+
- Issues and support: `https://github.com/cerberusgamelabs/cgl-interagentmail/issues`
|
|
56
|
+
- Current release: `https://github.com/cerberusgamelabs/cgl-interagentmail/releases/tag/v1.3.0`
|
|
57
|
+
- Python package: `https://pypi.org/project/cgl-interagentmail/`
|
|
58
|
+
- Current wheel: `https://github.com/cerberusgamelabs/cgl-interagentmail/releases/download/v1.3.0/cgl_interagentmail-1.3.0-py3-none-any.whl`
|
|
59
|
+
- SHA-256 checksums: `https://github.com/cerberusgamelabs/cgl-interagentmail/releases/download/v1.3.0/SHA256SUMS.txt`
|
|
60
|
+
- License: `https://github.com/cerberusgamelabs/cgl-interagentmail/blob/main/LICENSE`
|