sightmesh 0.13.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.
- sightmesh-0.13.0/.gitignore +6 -0
- sightmesh-0.13.0/LICENSE +201 -0
- sightmesh-0.13.0/PKG-INFO +165 -0
- sightmesh-0.13.0/README.md +154 -0
- sightmesh-0.13.0/docs/README.md +24 -0
- sightmesh-0.13.0/pyproject.toml +23 -0
- sightmesh-0.13.0/scripts/bakeoff/run_bakeoff.py +550 -0
- sightmesh-0.13.0/scripts/bootstrap-local.sh +44 -0
- sightmesh-0.13.0/scripts/check-cdesktop-runtime.sh +31 -0
- sightmesh-0.13.0/scripts/install-local.sh +92 -0
- sightmesh-0.13.0/scripts/migrate-conductor.sh +15 -0
- sightmesh-0.13.0/scripts/migration-dry-run.py +6 -0
- sightmesh-0.13.0/scripts/migration-smoke.py +119 -0
- sightmesh-0.13.0/scripts/package-smoke.sh +39 -0
- sightmesh-0.13.0/scripts/recovery-smoke.sh +52 -0
- sightmesh-0.13.0/scripts/uninstall-local.sh +105 -0
- sightmesh-0.13.0/src/sightmesh/__init__.py +48 -0
- sightmesh-0.13.0/src/sightmesh/approvals.py +249 -0
- sightmesh-0.13.0/src/sightmesh/bridge.py +368 -0
- sightmesh-0.13.0/src/sightmesh/cdesktop.py +1020 -0
- sightmesh-0.13.0/src/sightmesh/cli/__init__.py +128 -0
- sightmesh-0.13.0/src/sightmesh/cli/approvals_commands.py +522 -0
- sightmesh-0.13.0/src/sightmesh/cli/bridge_commands.py +79 -0
- sightmesh-0.13.0/src/sightmesh/cli/common.py +243 -0
- sightmesh-0.13.0/src/sightmesh/cli/diagnostics.py +656 -0
- sightmesh-0.13.0/src/sightmesh/cli/fleet.py +284 -0
- sightmesh-0.13.0/src/sightmesh/cli/messaging.py +393 -0
- sightmesh-0.13.0/src/sightmesh/cli/pool_commands.py +521 -0
- sightmesh-0.13.0/src/sightmesh/cli/routing_commands.py +315 -0
- sightmesh-0.13.0/src/sightmesh/cli/service_updates.py +140 -0
- sightmesh-0.13.0/src/sightmesh/cli/spawn.py +617 -0
- sightmesh-0.13.0/src/sightmesh/cli/tasks.py +248 -0
- sightmesh-0.13.0/src/sightmesh/cli/workspaces.py +467 -0
- sightmesh-0.13.0/src/sightmesh/conductor_migrate.py +802 -0
- sightmesh-0.13.0/src/sightmesh/durable.py +1017 -0
- sightmesh-0.13.0/src/sightmesh/effects.py +558 -0
- sightmesh-0.13.0/src/sightmesh/escalation.py +1189 -0
- sightmesh-0.13.0/src/sightmesh/execution_routing.py +744 -0
- sightmesh-0.13.0/src/sightmesh/external_runs.py +447 -0
- sightmesh-0.13.0/src/sightmesh/fence.py +26 -0
- sightmesh-0.13.0/src/sightmesh/fleet.py +626 -0
- sightmesh-0.13.0/src/sightmesh/leases.py +511 -0
- sightmesh-0.13.0/src/sightmesh/liveness.py +835 -0
- sightmesh-0.13.0/src/sightmesh/migration.py +220 -0
- sightmesh-0.13.0/src/sightmesh/observability.py +288 -0
- sightmesh-0.13.0/src/sightmesh/pool/__init__.py +79 -0
- sightmesh-0.13.0/src/sightmesh/pool/core.py +673 -0
- sightmesh-0.13.0/src/sightmesh/pool/server.py +355 -0
- sightmesh-0.13.0/src/sightmesh/pool/ui.html +414 -0
- sightmesh-0.13.0/src/sightmesh/profiles.py +160 -0
- sightmesh-0.13.0/src/sightmesh/repowire.py +52 -0
- sightmesh-0.13.0/src/sightmesh/routing.py +82 -0
- sightmesh-0.13.0/src/sightmesh/runtime-lock.json +16 -0
- sightmesh-0.13.0/src/sightmesh/runtime_lock.py +171 -0
- sightmesh-0.13.0/src/sightmesh/sdk.py +1336 -0
- sightmesh-0.13.0/src/sightmesh/service.py +461 -0
- sightmesh-0.13.0/src/sightmesh/service_process.py +146 -0
- sightmesh-0.13.0/src/sightmesh/stall_settings.py +30 -0
- sightmesh-0.13.0/src/sightmesh/stalls.py +44 -0
- sightmesh-0.13.0/src/sightmesh/succession.py +610 -0
- sightmesh-0.13.0/src/sightmesh/task_store.py +1159 -0
- sightmesh-0.13.0/src/sightmesh/updates.py +716 -0
- sightmesh-0.13.0/src/sightmesh/wakes.py +604 -0
- sightmesh-0.13.0/tests/conftest.py +40 -0
- sightmesh-0.13.0/tests/fixtures/__init__.py +0 -0
- sightmesh-0.13.0/tests/fixtures/free_route_failures.py +39 -0
- sightmesh-0.13.0/tests/fixtures/routing.py +28 -0
- sightmesh-0.13.0/tests/simulator/RED-BASELINE.md +136 -0
- sightmesh-0.13.0/tests/simulator/__init__.py +0 -0
- sightmesh-0.13.0/tests/simulator/conftest.py +283 -0
- sightmesh-0.13.0/tests/simulator/fake_cdesktop.py +486 -0
- sightmesh-0.13.0/tests/simulator/test_external_run_scenarios.py +196 -0
- sightmesh-0.13.0/tests/simulator/test_routing_scenarios.py +1222 -0
- sightmesh-0.13.0/tests/simulator/test_scenarios.py +1461 -0
- sightmesh-0.13.0/tests/test_approvals.py +35 -0
- sightmesh-0.13.0/tests/test_bakeoff.py +131 -0
- sightmesh-0.13.0/tests/test_bridge.py +227 -0
- sightmesh-0.13.0/tests/test_cdesktop.py +735 -0
- sightmesh-0.13.0/tests/test_cli.py +2256 -0
- sightmesh-0.13.0/tests/test_conductor_migrate.py +338 -0
- sightmesh-0.13.0/tests/test_durable.py +425 -0
- sightmesh-0.13.0/tests/test_effects.py +376 -0
- sightmesh-0.13.0/tests/test_escalation.py +632 -0
- sightmesh-0.13.0/tests/test_execution_routing.py +996 -0
- sightmesh-0.13.0/tests/test_external_runs.py +357 -0
- sightmesh-0.13.0/tests/test_fleet.py +208 -0
- sightmesh-0.13.0/tests/test_leases.py +302 -0
- sightmesh-0.13.0/tests/test_liveness.py +557 -0
- sightmesh-0.13.0/tests/test_liveness_detector.py +804 -0
- sightmesh-0.13.0/tests/test_local_installer.py +237 -0
- sightmesh-0.13.0/tests/test_observability.py +923 -0
- sightmesh-0.13.0/tests/test_pool.py +714 -0
- sightmesh-0.13.0/tests/test_pool_server.py +104 -0
- sightmesh-0.13.0/tests/test_profiles.py +97 -0
- sightmesh-0.13.0/tests/test_repowire.py +57 -0
- sightmesh-0.13.0/tests/test_routing.py +31 -0
- sightmesh-0.13.0/tests/test_runtime_lock.py +150 -0
- sightmesh-0.13.0/tests/test_sdk.py +1064 -0
- sightmesh-0.13.0/tests/test_service.py +259 -0
- sightmesh-0.13.0/tests/test_service_process.py +38 -0
- sightmesh-0.13.0/tests/test_signal_policy.py +117 -0
- sightmesh-0.13.0/tests/test_succession.py +1090 -0
- sightmesh-0.13.0/tests/test_task_store.py +568 -0
- sightmesh-0.13.0/tests/test_updates.py +937 -0
- sightmesh-0.13.0/tests/test_wakes.py +217 -0
sightmesh-0.13.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 SightMesh contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: sightmesh
|
|
3
|
+
Version: 0.13.0
|
|
4
|
+
Summary: Local visible-agent orchestration for cdesktop and Repowire
|
|
5
|
+
Author: SightMesh contributors
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Requires-Dist: websockets<16,>=15
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# SightMesh
|
|
13
|
+
|
|
14
|
+
> **Experimental.** SightMesh is usable for local evaluation, not yet a reliability claim. The current proof gate is several weeks of durable manager wake and acknowledged-delivery operation under real load. Until that evidence exists, active promotion is deliberately on hold.
|
|
15
|
+
|
|
16
|
+
SightMesh routes work across Claude and Codex accounts you own, launches full agents as visible and interruptible [cdesktop](https://github.com/cdesktop-ai/cdesktop) sessions, isolates implementation work in Git worktrees, and preserves the native state needed to inspect or recover work.
|
|
17
|
+
|
|
18
|
+
The proven wedge is deliberately small:
|
|
19
|
+
|
|
20
|
+
- ordered, quota-aware selection among accounts the operator owns and logged into normally;
|
|
21
|
+
- visible Claude Code and Codex sessions that a human can inspect or interrupt;
|
|
22
|
+
- isolated worktrees with explicit local ownership;
|
|
23
|
+
- recovery through Git, cdesktop transcripts and durable commands, and workspace-local `.context` handoffs.
|
|
24
|
+
|
|
25
|
+
See [execution routing](docs/execution-routing.md), [compatibility](docs/compatibility.md), [operations](docs/operations.md), the [trace-efficiency audit](docs/trace-efficiency.md), and the [source-derived competitive bake-off](docs/competitive-bakeoff.md) for tested versions, limitations, and alternatives.
|
|
26
|
+
|
|
27
|
+
SightMesh does not extract or replay credentials, bypass provider limits, make arbitrary local commands safe, or promise unattended recovery. See [Security](SECURITY.md) and [Architecture](docs/architecture.md).
|
|
28
|
+
|
|
29
|
+
## Pool-only quickstart
|
|
30
|
+
|
|
31
|
+
The credential pool works without installing or running the cdesktop fleet. It requires macOS, Python 3.11+, `uv`, the provider CLI you intend to use, and accounts you own.
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
git clone https://github.com/clarkipeng/sightmesh.git
|
|
35
|
+
cd sightmesh
|
|
36
|
+
uv tool install .
|
|
37
|
+
|
|
38
|
+
# Add one or more normally authenticated accounts.
|
|
39
|
+
sightmesh pool add-codex personal --mode sub
|
|
40
|
+
# Or, while currently logged into Claude, follow the setup-token prompt:
|
|
41
|
+
sightmesh pool add-claude personal-claude
|
|
42
|
+
|
|
43
|
+
sightmesh pool verify
|
|
44
|
+
sightmesh pool status
|
|
45
|
+
sightmesh pool exec codex exec "Summarize this repository"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Expected outcomes:
|
|
49
|
+
|
|
50
|
+
- `add-codex` opens the provider's normal browser login in a dedicated `CODEX_HOME`; `add-claude` asks for a token minted by `claude setup-token` for the currently logged-in account.
|
|
51
|
+
- `verify` makes a real request and reports whether entries are distinct and usable. Claude setup tokens and API keys do not expose live per-account quota, so their quota is reported as unknown rather than guessed.
|
|
52
|
+
- `status` names the account currently selected for each configured provider.
|
|
53
|
+
- `exec` prints the selected account to stderr and replaces itself with the normal provider CLI using only that account's credentials.
|
|
54
|
+
|
|
55
|
+
Pool state is local under `~/.config/agent-pool` by default. Do not add accounts you do not own or use pool ordering to evade a provider limit.
|
|
56
|
+
|
|
57
|
+
## Full visible fleet
|
|
58
|
+
|
|
59
|
+
The full setup additionally installs the cdesktop release and checksum recorded in the authoritative [runtime lock](src/sightmesh/runtime-lock.json), Repowire (`0.17.0`), local LaunchAgents, and shared Claude/Codex skills. The live behavior record and feature boundary are documented in [Compatibility](docs/compatibility.md).
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
./scripts/bootstrap-local.sh
|
|
63
|
+
sightmesh doctor
|
|
64
|
+
sightmesh configure
|
|
65
|
+
sightmesh service start
|
|
66
|
+
sightmesh service open
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Expected outcome: `doctor` accepts the local dependencies, `service start` starts loopback-only cdesktop and bridge services, and `service open` opens the visible cdesktop fleet.
|
|
70
|
+
|
|
71
|
+
Launch an isolated supervised worker:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
sightmesh spawn --name docs-review --repo /path/to/repo \
|
|
75
|
+
--base main --executor CODEX --prompt "Review the public documentation" --worktree
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The command creates a cdesktop workspace and Git worktree, starts a visible agent session, records local ownership, and bridge-enables the workspace unless `--no-bridge` is passed. Use `--unattended` only as an explicit worktree-only opt-in.
|
|
79
|
+
|
|
80
|
+
Inspect and contact the fleet:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
sightmesh peers
|
|
84
|
+
sightmesh peek @docs-review
|
|
85
|
+
sightmesh message @docs-review --message "Check the installation claims"
|
|
86
|
+
sightmesh steer @docs-review --message "Stop implementation and report findings"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`message` waits for the next safe turn boundary. `steer` sends a native `replace` command scoped to the selected session; on this release it does not independently guard against a pending approval or question, so inspect the target before steering.
|
|
90
|
+
|
|
91
|
+
## Managed task SDK
|
|
92
|
+
|
|
93
|
+
Use semantic task keys and normal prompt strings. SightMesh owns task IDs, epochs, request hashes, leases, and command dedupe keys. cdesktop owns visible workspaces, worktrees, sessions, transcripts, and the exact-once native launch journal.
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
from sightmesh import Command, SightMesh, WorkerSpec
|
|
97
|
+
|
|
98
|
+
mesh = SightMesh()
|
|
99
|
+
mesh.start(WorkerSpec(
|
|
100
|
+
key="auth-audit",
|
|
101
|
+
prompt="Audit the authentication boundary and report concrete risks.",
|
|
102
|
+
repo="catapult-games",
|
|
103
|
+
base="main",
|
|
104
|
+
))
|
|
105
|
+
|
|
106
|
+
mesh.start_all([
|
|
107
|
+
WorkerSpec("api-tests", "Add focused API coverage.", "catapult-games"),
|
|
108
|
+
WorkerSpec("docs-check", "Verify the public setup guide.", "catapult-games"),
|
|
109
|
+
])
|
|
110
|
+
mesh.send_all([
|
|
111
|
+
Command("api-tests", "Also cover duplicate wakeups."),
|
|
112
|
+
Command("docs-check", "Keep examples human-readable."),
|
|
113
|
+
])
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
`start` is idempotent for a key in the current manager scope. `start_all` validates and reserves the full batch before launching its members, then returns one result or error per key. `send_all` validates every destination before queueing any command. A replacement gets a new session in the same task-owned worktree only after the old session is quarantined. Checkpoint content stays in that worktree under `.context`, addressed by its content hash; SightMesh stores only the reference. Three total launch attempts trip the circuit breaker.
|
|
117
|
+
|
|
118
|
+
Repository names resolve to the one canonical checkout even when old managed-worktree registrations share that name. For a routed managed task, the bridge recognizes a terminal subscription quota refusal, cools only that opaque account binding, and transfers the task once to the next eligible configured route. Explicit profiles are never changed automatically.
|
|
119
|
+
|
|
120
|
+
The flat CLI uses the same service:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
sightmesh start auth-audit "Audit the authentication boundary" --repo catapult-games
|
|
124
|
+
sightmesh show auth-audit
|
|
125
|
+
sightmesh send auth-audit "Also inspect refresh-token rotation"
|
|
126
|
+
sightmesh checkpoint "Tests pass; documentation remains"
|
|
127
|
+
sightmesh complete --summary "Audit complete"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
For batches, prefer the Python SDK. The CLI also accepts `sightmesh start --batch jobs.json` and `sightmesh send --batch commands.json` for shell workflows. Prompt files are optional, not required.
|
|
131
|
+
|
|
132
|
+
Model rules of thumb are judgment, not routing code. Terra or Luna are usually efficient worker defaults. Use a stronger model such as Sol or Opus when debugging, auditing, or planning genuinely requires it. Scope and uncertainty matter more than the role label; profiles and the configured routing chain remain the source of truth.
|
|
133
|
+
|
|
134
|
+
## How ownership stays native
|
|
135
|
+
|
|
136
|
+
```text
|
|
137
|
+
Claude Code / Codex
|
|
138
|
+
│
|
|
139
|
+
▼
|
|
140
|
+
cdesktop: visible sessions, transcripts, workspaces, durable commands
|
|
141
|
+
│ │
|
|
142
|
+
│ └── Git: branches and worktrees
|
|
143
|
+
└── SightMesh: intent validation, leases, pool order, recovery policy
|
|
144
|
+
│
|
|
145
|
+
└── Repowire: cross-workspace contact
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
SightMesh does not create a second transcript store, global context mirror, or credential broker. That keeps recovery state inspectable in the systems that already own it, but also means the experimental stack inherits their failure modes.
|
|
149
|
+
|
|
150
|
+
## Documentation
|
|
151
|
+
|
|
152
|
+
Start with the [documentation map](docs/README.md). In particular:
|
|
153
|
+
|
|
154
|
+
- [Architecture](docs/architecture.md) — public design signal and honest limitations
|
|
155
|
+
- [Compatibility](docs/compatibility.md) — exact tested versions and platform boundary
|
|
156
|
+
- [Operations](docs/operations.md) — approvals, updates, failover, leases, and recovery
|
|
157
|
+
- [Conductor migration](docs/migration.md) — plan, apply, rollback, and preservation rules
|
|
158
|
+
- [Storage and retention](docs/storage.md) — local state and deletion boundaries
|
|
159
|
+
- [Release checks](docs/release.md) — maintainer verification and artifact provenance
|
|
160
|
+
|
|
161
|
+
## Project status and support
|
|
162
|
+
|
|
163
|
+
The frozen subscription-first execution-routing settings and their current integration boundary are documented in [execution routing](docs/execution-routing.md). cdesktop remains the primary workspace and session UI. `sightmesh pool serve` is a local, recovery/compatibility view of pool health only; it is not the execution-routing UI or a replacement for cdesktop.
|
|
164
|
+
|
|
165
|
+
SightMesh is Apache-2.0 licensed and accepts focused experimental feedback. It currently supports the tested macOS/Python combinations in [Compatibility](docs/compatibility.md); there is no SLA or production support commitment. Read [SUPPORT.md](SUPPORT.md), [CONTRIBUTING.md](CONTRIBUTING.md), and [SECURITY.md](SECURITY.md) before opening a report.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# SightMesh
|
|
2
|
+
|
|
3
|
+
> **Experimental.** SightMesh is usable for local evaluation, not yet a reliability claim. The current proof gate is several weeks of durable manager wake and acknowledged-delivery operation under real load. Until that evidence exists, active promotion is deliberately on hold.
|
|
4
|
+
|
|
5
|
+
SightMesh routes work across Claude and Codex accounts you own, launches full agents as visible and interruptible [cdesktop](https://github.com/cdesktop-ai/cdesktop) sessions, isolates implementation work in Git worktrees, and preserves the native state needed to inspect or recover work.
|
|
6
|
+
|
|
7
|
+
The proven wedge is deliberately small:
|
|
8
|
+
|
|
9
|
+
- ordered, quota-aware selection among accounts the operator owns and logged into normally;
|
|
10
|
+
- visible Claude Code and Codex sessions that a human can inspect or interrupt;
|
|
11
|
+
- isolated worktrees with explicit local ownership;
|
|
12
|
+
- recovery through Git, cdesktop transcripts and durable commands, and workspace-local `.context` handoffs.
|
|
13
|
+
|
|
14
|
+
See [execution routing](docs/execution-routing.md), [compatibility](docs/compatibility.md), [operations](docs/operations.md), the [trace-efficiency audit](docs/trace-efficiency.md), and the [source-derived competitive bake-off](docs/competitive-bakeoff.md) for tested versions, limitations, and alternatives.
|
|
15
|
+
|
|
16
|
+
SightMesh does not extract or replay credentials, bypass provider limits, make arbitrary local commands safe, or promise unattended recovery. See [Security](SECURITY.md) and [Architecture](docs/architecture.md).
|
|
17
|
+
|
|
18
|
+
## Pool-only quickstart
|
|
19
|
+
|
|
20
|
+
The credential pool works without installing or running the cdesktop fleet. It requires macOS, Python 3.11+, `uv`, the provider CLI you intend to use, and accounts you own.
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
git clone https://github.com/clarkipeng/sightmesh.git
|
|
24
|
+
cd sightmesh
|
|
25
|
+
uv tool install .
|
|
26
|
+
|
|
27
|
+
# Add one or more normally authenticated accounts.
|
|
28
|
+
sightmesh pool add-codex personal --mode sub
|
|
29
|
+
# Or, while currently logged into Claude, follow the setup-token prompt:
|
|
30
|
+
sightmesh pool add-claude personal-claude
|
|
31
|
+
|
|
32
|
+
sightmesh pool verify
|
|
33
|
+
sightmesh pool status
|
|
34
|
+
sightmesh pool exec codex exec "Summarize this repository"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Expected outcomes:
|
|
38
|
+
|
|
39
|
+
- `add-codex` opens the provider's normal browser login in a dedicated `CODEX_HOME`; `add-claude` asks for a token minted by `claude setup-token` for the currently logged-in account.
|
|
40
|
+
- `verify` makes a real request and reports whether entries are distinct and usable. Claude setup tokens and API keys do not expose live per-account quota, so their quota is reported as unknown rather than guessed.
|
|
41
|
+
- `status` names the account currently selected for each configured provider.
|
|
42
|
+
- `exec` prints the selected account to stderr and replaces itself with the normal provider CLI using only that account's credentials.
|
|
43
|
+
|
|
44
|
+
Pool state is local under `~/.config/agent-pool` by default. Do not add accounts you do not own or use pool ordering to evade a provider limit.
|
|
45
|
+
|
|
46
|
+
## Full visible fleet
|
|
47
|
+
|
|
48
|
+
The full setup additionally installs the cdesktop release and checksum recorded in the authoritative [runtime lock](src/sightmesh/runtime-lock.json), Repowire (`0.17.0`), local LaunchAgents, and shared Claude/Codex skills. The live behavior record and feature boundary are documented in [Compatibility](docs/compatibility.md).
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
./scripts/bootstrap-local.sh
|
|
52
|
+
sightmesh doctor
|
|
53
|
+
sightmesh configure
|
|
54
|
+
sightmesh service start
|
|
55
|
+
sightmesh service open
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Expected outcome: `doctor` accepts the local dependencies, `service start` starts loopback-only cdesktop and bridge services, and `service open` opens the visible cdesktop fleet.
|
|
59
|
+
|
|
60
|
+
Launch an isolated supervised worker:
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
sightmesh spawn --name docs-review --repo /path/to/repo \
|
|
64
|
+
--base main --executor CODEX --prompt "Review the public documentation" --worktree
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The command creates a cdesktop workspace and Git worktree, starts a visible agent session, records local ownership, and bridge-enables the workspace unless `--no-bridge` is passed. Use `--unattended` only as an explicit worktree-only opt-in.
|
|
68
|
+
|
|
69
|
+
Inspect and contact the fleet:
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
sightmesh peers
|
|
73
|
+
sightmesh peek @docs-review
|
|
74
|
+
sightmesh message @docs-review --message "Check the installation claims"
|
|
75
|
+
sightmesh steer @docs-review --message "Stop implementation and report findings"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`message` waits for the next safe turn boundary. `steer` sends a native `replace` command scoped to the selected session; on this release it does not independently guard against a pending approval or question, so inspect the target before steering.
|
|
79
|
+
|
|
80
|
+
## Managed task SDK
|
|
81
|
+
|
|
82
|
+
Use semantic task keys and normal prompt strings. SightMesh owns task IDs, epochs, request hashes, leases, and command dedupe keys. cdesktop owns visible workspaces, worktrees, sessions, transcripts, and the exact-once native launch journal.
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
from sightmesh import Command, SightMesh, WorkerSpec
|
|
86
|
+
|
|
87
|
+
mesh = SightMesh()
|
|
88
|
+
mesh.start(WorkerSpec(
|
|
89
|
+
key="auth-audit",
|
|
90
|
+
prompt="Audit the authentication boundary and report concrete risks.",
|
|
91
|
+
repo="catapult-games",
|
|
92
|
+
base="main",
|
|
93
|
+
))
|
|
94
|
+
|
|
95
|
+
mesh.start_all([
|
|
96
|
+
WorkerSpec("api-tests", "Add focused API coverage.", "catapult-games"),
|
|
97
|
+
WorkerSpec("docs-check", "Verify the public setup guide.", "catapult-games"),
|
|
98
|
+
])
|
|
99
|
+
mesh.send_all([
|
|
100
|
+
Command("api-tests", "Also cover duplicate wakeups."),
|
|
101
|
+
Command("docs-check", "Keep examples human-readable."),
|
|
102
|
+
])
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`start` is idempotent for a key in the current manager scope. `start_all` validates and reserves the full batch before launching its members, then returns one result or error per key. `send_all` validates every destination before queueing any command. A replacement gets a new session in the same task-owned worktree only after the old session is quarantined. Checkpoint content stays in that worktree under `.context`, addressed by its content hash; SightMesh stores only the reference. Three total launch attempts trip the circuit breaker.
|
|
106
|
+
|
|
107
|
+
Repository names resolve to the one canonical checkout even when old managed-worktree registrations share that name. For a routed managed task, the bridge recognizes a terminal subscription quota refusal, cools only that opaque account binding, and transfers the task once to the next eligible configured route. Explicit profiles are never changed automatically.
|
|
108
|
+
|
|
109
|
+
The flat CLI uses the same service:
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
sightmesh start auth-audit "Audit the authentication boundary" --repo catapult-games
|
|
113
|
+
sightmesh show auth-audit
|
|
114
|
+
sightmesh send auth-audit "Also inspect refresh-token rotation"
|
|
115
|
+
sightmesh checkpoint "Tests pass; documentation remains"
|
|
116
|
+
sightmesh complete --summary "Audit complete"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
For batches, prefer the Python SDK. The CLI also accepts `sightmesh start --batch jobs.json` and `sightmesh send --batch commands.json` for shell workflows. Prompt files are optional, not required.
|
|
120
|
+
|
|
121
|
+
Model rules of thumb are judgment, not routing code. Terra or Luna are usually efficient worker defaults. Use a stronger model such as Sol or Opus when debugging, auditing, or planning genuinely requires it. Scope and uncertainty matter more than the role label; profiles and the configured routing chain remain the source of truth.
|
|
122
|
+
|
|
123
|
+
## How ownership stays native
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
Claude Code / Codex
|
|
127
|
+
│
|
|
128
|
+
▼
|
|
129
|
+
cdesktop: visible sessions, transcripts, workspaces, durable commands
|
|
130
|
+
│ │
|
|
131
|
+
│ └── Git: branches and worktrees
|
|
132
|
+
└── SightMesh: intent validation, leases, pool order, recovery policy
|
|
133
|
+
│
|
|
134
|
+
└── Repowire: cross-workspace contact
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
SightMesh does not create a second transcript store, global context mirror, or credential broker. That keeps recovery state inspectable in the systems that already own it, but also means the experimental stack inherits their failure modes.
|
|
138
|
+
|
|
139
|
+
## Documentation
|
|
140
|
+
|
|
141
|
+
Start with the [documentation map](docs/README.md). In particular:
|
|
142
|
+
|
|
143
|
+
- [Architecture](docs/architecture.md) — public design signal and honest limitations
|
|
144
|
+
- [Compatibility](docs/compatibility.md) — exact tested versions and platform boundary
|
|
145
|
+
- [Operations](docs/operations.md) — approvals, updates, failover, leases, and recovery
|
|
146
|
+
- [Conductor migration](docs/migration.md) — plan, apply, rollback, and preservation rules
|
|
147
|
+
- [Storage and retention](docs/storage.md) — local state and deletion boundaries
|
|
148
|
+
- [Release checks](docs/release.md) — maintainer verification and artifact provenance
|
|
149
|
+
|
|
150
|
+
## Project status and support
|
|
151
|
+
|
|
152
|
+
The frozen subscription-first execution-routing settings and their current integration boundary are documented in [execution routing](docs/execution-routing.md). cdesktop remains the primary workspace and session UI. `sightmesh pool serve` is a local, recovery/compatibility view of pool health only; it is not the execution-routing UI or a replacement for cdesktop.
|
|
153
|
+
|
|
154
|
+
SightMesh is Apache-2.0 licensed and accepts focused experimental feedback. It currently supports the tested macOS/Python combinations in [Compatibility](docs/compatibility.md); there is no SLA or production support commitment. Read [SUPPORT.md](SUPPORT.md), [CONTRIBUTING.md](CONTRIBUTING.md), and [SECURITY.md](SECURITY.md) before opening a report.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Documentation map
|
|
2
|
+
|
|
3
|
+
The README covers evaluation and the core workflow. Use these focused references for deeper work.
|
|
4
|
+
|
|
5
|
+
## Operate and evaluate
|
|
6
|
+
|
|
7
|
+
- [Architecture](architecture.md): ownership, durable commands, recovery, and limitations.
|
|
8
|
+
- [Compatibility](compatibility.md): tested operating system, Python, cdesktop, and provider CLI behavior.
|
|
9
|
+
- [Operations](operations.md): fleet inspection, updates, approvals, provider failover, leases, and recovery gates.
|
|
10
|
+
- [Storage and retention](storage.md): local files, transcripts, archives, and deletion behavior.
|
|
11
|
+
- [Trace efficiency](trace-efficiency.md): measured trace and coordination tradeoffs.
|
|
12
|
+
|
|
13
|
+
## Adopt or compare
|
|
14
|
+
|
|
15
|
+
- [Conductor migration](migration.md): read-only planning, apply, rollback, and preservation rules.
|
|
16
|
+
- [Conductor parity](conductor-parity.md): supported product boundary and gaps.
|
|
17
|
+
- [Agent Deck competitive bake-off](competitive-bakeoff.md): source-derived comparison and methodology.
|
|
18
|
+
|
|
19
|
+
## Release
|
|
20
|
+
|
|
21
|
+
- [Release checks](release.md): package, compatibility, provenance, and maintainer gates.
|
|
22
|
+
- [Release-note template](release-note-template.md): experimental release wording and evidence checklist.
|
|
23
|
+
|
|
24
|
+
For security reports and usage questions, use the repository-level [security policy](../SECURITY.md) and [support policy](../SUPPORT.md).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sightmesh"
|
|
7
|
+
version = "0.13.0"
|
|
8
|
+
description = "Local visible-agent orchestration for cdesktop and Repowire"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = { text = "Apache-2.0" }
|
|
12
|
+
authors = [{ name = "SightMesh contributors" }]
|
|
13
|
+
dependencies = ["websockets>=15,<16"]
|
|
14
|
+
|
|
15
|
+
[project.scripts]
|
|
16
|
+
sightmesh = "sightmesh.cli:main"
|
|
17
|
+
|
|
18
|
+
[tool.hatch.build.targets.wheel]
|
|
19
|
+
packages = ["src/sightmesh"]
|
|
20
|
+
artifacts = ["src/sightmesh/pool/ui.html", "src/sightmesh/runtime-lock.json"]
|
|
21
|
+
|
|
22
|
+
[tool.hatch.build.targets.sdist]
|
|
23
|
+
include = ["src/sightmesh", "tests", "scripts", "README.md", "LICENSE"]
|