pangpang 0.9.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.
Files changed (58) hide show
  1. pangpang-0.9.0/LICENSE +202 -0
  2. pangpang-0.9.0/MANIFEST.in +12 -0
  3. pangpang-0.9.0/NOTICE +5 -0
  4. pangpang-0.9.0/PKG-INFO +284 -0
  5. pangpang-0.9.0/README.md +267 -0
  6. pangpang-0.9.0/README.zh.md +269 -0
  7. pangpang-0.9.0/pangpang/LICENSE.pi-model-catalog.txt +24 -0
  8. pangpang-0.9.0/pangpang/__init__.py +2 -0
  9. pangpang-0.9.0/pangpang/__main__.py +332 -0
  10. pangpang-0.9.0/pangpang/attention.py +209 -0
  11. pangpang-0.9.0/pangpang/broker.py +349 -0
  12. pangpang-0.9.0/pangpang/cli.py +188 -0
  13. pangpang-0.9.0/pangpang/connector.py +550 -0
  14. pangpang-0.9.0/pangpang/consent.py +116 -0
  15. pangpang-0.9.0/pangpang/context.py +497 -0
  16. pangpang-0.9.0/pangpang/execution.py +765 -0
  17. pangpang-0.9.0/pangpang/history.py +433 -0
  18. pangpang-0.9.0/pangpang/http.py +596 -0
  19. pangpang-0.9.0/pangpang/layout.py +34 -0
  20. pangpang-0.9.0/pangpang/linux_job.py +143 -0
  21. pangpang-0.9.0/pangpang/local_setup.py +156 -0
  22. pangpang-0.9.0/pangpang/logs.py +29 -0
  23. pangpang-0.9.0/pangpang/model_catalog.json +1 -0
  24. pangpang-0.9.0/pangpang/model_config.py +108 -0
  25. pangpang-0.9.0/pangpang/onboarding.py +382 -0
  26. pangpang-0.9.0/pangpang/pi_cwd_guard.mjs +151 -0
  27. pangpang-0.9.0/pangpang/pi_models.mjs +86 -0
  28. pangpang-0.9.0/pangpang/pi_runtime.py +368 -0
  29. pangpang-0.9.0/pangpang/pi_worker.mjs +131 -0
  30. pangpang-0.9.0/pangpang/pi_worker_command.py +170 -0
  31. pangpang-0.9.0/pangpang/planner_prompt.py +169 -0
  32. pangpang-0.9.0/pangpang/product_runtime.py +131 -0
  33. pangpang-0.9.0/pangpang/redaction.py +20 -0
  34. pangpang-0.9.0/pangpang/replies.py +98 -0
  35. pangpang-0.9.0/pangpang/routing_constraint.py +108 -0
  36. pangpang-0.9.0/pangpang/runner.py +2990 -0
  37. pangpang-0.9.0/pangpang/runtime.py +1208 -0
  38. pangpang-0.9.0/pangpang/runtime_pins.py +69 -0
  39. pangpang-0.9.0/pangpang/scheduler.py +473 -0
  40. pangpang-0.9.0/pangpang/semantic_gate.py +716 -0
  41. pangpang-0.9.0/pangpang/service.py +6151 -0
  42. pangpang-0.9.0/pangpang/store.py +985 -0
  43. pangpang-0.9.0/pangpang/task_gate.py +214 -0
  44. pangpang-0.9.0/pangpang/validation.py +25 -0
  45. pangpang-0.9.0/pangpang/vault.py +161 -0
  46. pangpang-0.9.0/pangpang/web/app.css +1 -0
  47. pangpang-0.9.0/pangpang/web/app.js +45 -0
  48. pangpang-0.9.0/pangpang/web/index.html +7 -0
  49. pangpang-0.9.0/pangpang/web/setup.js +1 -0
  50. pangpang-0.9.0/pangpang/windows_job.py +52 -0
  51. pangpang-0.9.0/pangpang.egg-info/PKG-INFO +284 -0
  52. pangpang-0.9.0/pangpang.egg-info/SOURCES.txt +56 -0
  53. pangpang-0.9.0/pangpang.egg-info/dependency_links.txt +1 -0
  54. pangpang-0.9.0/pangpang.egg-info/entry_points.txt +2 -0
  55. pangpang-0.9.0/pangpang.egg-info/requires.txt +4 -0
  56. pangpang-0.9.0/pangpang.egg-info/top_level.txt +1 -0
  57. pangpang-0.9.0/pyproject.toml +36 -0
  58. pangpang-0.9.0/setup.cfg +4 -0
pangpang-0.9.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,12 @@
1
+ include README.md
2
+ include README.zh.md
3
+ include LICENSE
4
+ recursive-include pangpang *.py
5
+ recursive-include pangpang *.mjs
6
+ recursive-include pangpang *.json
7
+ recursive-include pangpang *.txt
8
+ recursive-include pangpang/web *
9
+ recursive-include pangpang/_shipped *
10
+ global-exclude __pycache__
11
+ global-exclude *.pyc
12
+ prune tests
pangpang-0.9.0/NOTICE ADDED
@@ -0,0 +1,5 @@
1
+ PangPang
2
+ Copyright 2026 The PangPang Authors
3
+
4
+ This product includes software developed at The PangPang Authors project.
5
+ Third-party components retain their original licenses; see THIRD_PARTY_NOTICES.
@@ -0,0 +1,284 @@
1
+ Metadata-Version: 2.4
2
+ Name: pangpang
3
+ Version: 0.9.0
4
+ Summary: Durable control plane for the agents, models, and computers you already have.
5
+ License: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/Tritium-Emergence/PangPang
7
+ Project-URL: Security, https://github.com/Tritium-Emergence/PangPang/blob/main/SECURITY.md
8
+ Requires-Python: >=3.11
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Requires-Dist: cryptography==50.0.1
13
+ Requires-Dist: cffi==2.1.1
14
+ Requires-Dist: pycparser==3.0
15
+ Requires-Dist: tzdata==2026.4
16
+ Dynamic: license-file
17
+
18
+ # PangPang
19
+
20
+ **The Bot That Manages Your AI.**
21
+ **Let AI manage AI, so people can focus on goals again.**
22
+
23
+ [中文](README.zh.md) · [Install](docs/INSTALL.md) · [Model providers](docs/MODEL-PROVIDERS.md) · [Security](SECURITY.md) · [Deployment & recovery](docs/RUNBOOK.md) · [Docs map](docs/INDEX.md)
24
+
25
+ ---
26
+
27
+ ## AI is great at getting work done. So why are you busier than ever?
28
+
29
+ Claude Code writes code, Codex analyzes projects, local models handle everyday tasks. A single agent can produce in minutes what used to take a human hours; several agents can work at the same time.
30
+
31
+ But **AI now generates results far faster than any human can review, coordinate and accept them**.
32
+
33
+ Code was written — who checked it didn't break anything? Research is done — who verified the evidence? Three agents are working at once — who knows which one finished and which is still waiting? A machine dropped offline — did the task run at all, and can it be retried safely?
34
+
35
+ **AI hasn't removed the hard problems. It has moved the difficulty from production to coordination, review, integration and acceptance.**
36
+
37
+ So you own more and more AI, while you yourself become the project manager, the IT department and the human message queue.
38
+
39
+ We already have plenty of capable agents — a hall full of virtuosos. What's missing is not one more, smarter hire, but someone to conduct them.
40
+
41
+ **That is PangPang: a bot dedicated to managing AI.**
42
+
43
+ ## 01 · Not another agent — AI that manages AI
44
+
45
+ PangPang does not try to replace Claude Code, Codex or the models you have already deployed.
46
+
47
+ It stands outside those execution tools: it understands goals, organizes work, assigns execution, tracks progress, and brings results and real state back to you.
48
+
49
+ | Who | Responsible for |
50
+ | --- | --- |
51
+ | **You** | Setting goals, defining boundaries, approving consequential actions, making final decisions |
52
+ | **PangPang (the supervisor Bot)** | Managing long-running work, coordinating agents and devices, handling dependencies and failures, assembling results and evidence |
53
+ | **Executor agents** | Using their own models, tools and skills to do the actual work: research, coding, writing, testing |
54
+
55
+ A task no longer belongs to a chat window that can be closed at any moment — it belongs to a durable, trackable **Work**.
56
+
57
+ **You manage goals, PangPang manages work, agents do the execution.**
58
+
59
+ ## 02 · What is actually different about a long-lived work bot?
60
+
61
+ Imagine two jobs.
62
+
63
+ **Job A: ongoing AI-industry content.** You want to track news long-term, collect material, prepare topics, and have them reviewed when needed. Scheduled runs repeat only after your approval; the actual research and writing is handed to suitable executors.
64
+
65
+ **Job B: maintaining a software project.** Codex changes code on one machine while another executor runs tests on a second. When a test fails, PangPang keeps the work and its dependency state; when results come back, it links them to the original work.
66
+
67
+ These tasks share three hard problems:
68
+
69
+ **Work must persist.** Ending a chat, switching models or restarting a service must never erase what the task was or how far it got.
70
+
71
+ **Progress must be verifiable.** An agent saying "done" is not proof of completion. You need to separate model replies, process state, execution receipts, file artifacts and real business acceptance.
72
+
73
+ **Failures must not be guesswork.** If a machine drops offline and the outcome is unconfirmed, the system should record "uncertain" — not pretend success, and not blindly re-run an operation that may have side effects.
74
+
75
+ PangPang builds a durable control plane around exactly these problems: it stores Work, dependencies, checkpoints, execution facts and artifacts, so you can come back, review, continue or correct the same piece of work.
76
+
77
+ > **Chats may end. Work should not disappear.**
78
+
79
+ ## 03 · Your existing AI, models and computers — organized into one working system
80
+
81
+ You may have a local Qwen, cloud GPT or Claude; a Windows workstation, a Linux GPU server and a Mac; and several different CLI agents.
82
+
83
+ Finishing a task should not start with deciding which terminal to open, which agent to launch, and where to hand messages between windows.
84
+
85
+ PangPang organizes these capabilities through a coordinator and device connectors:
86
+
87
+ - **Long-lived Bots** keep a role, stable preferences and work scope; they are not bound to any specific model.
88
+ - **Work and Task** record work, phases, dependencies, deadlines, checkpoints and execution receipts.
89
+ - **Executors** run tasks with existing CLI agents — PangPang does not rebuild coding or research capabilities inside itself.
90
+ - **Hosts / Connectors** let tasks run on the machine that has the files, tools and permissions they need.
91
+ - **Artifacts** link outputs back to the work, for review, follow-up and delivery.
92
+
93
+ ```text
94
+ You
95
+ goals · decisions · authority
96
+ │
97
+ ▼
98
+ PangPang · supervisor Bot
99
+ understand · coordinate · write back state
100
+ │
101
+ durable Work / Task / Receipt
102
+ │
103
+ ┌───────────┼───────────┐
104
+ ▼ ▼ ▼
105
+ Codex Claude Code Pi / others
106
+ │ │ │
107
+ workstation remote PC local/cloud models
108
+ └───────────┼───────────┘
109
+ ▼
110
+ results · files · evidence
111
+ │
112
+ ▼
113
+ PangPang archives & delivers
114
+ ```
115
+
116
+ This diagram shows the division of labor; it does not claim that every combination of agent, model, device and protocol has passed real-machine acceptance.
117
+
118
+ ## 04 · Remembering everything is not a super-long chat's job
119
+
120
+ Longer context is not the same as more reliable long-term work.
121
+
122
+ A chat transcript mixes outdated plans, rejected decisions, tool logs and irrelevant discussion. Handing that whole history to the next agent is expensive — and it carries over bad information and bad instructions along with the good.
123
+
124
+ PangPang follows one principle:
125
+
126
+ **Small, clean active context; large, durable external state.**
127
+
128
+ The long-lived Bot stays in the outer layer, owning goals, coordination and state. When real work is needed, it hands a fresh executor a bounded task brief — goal, constraints, relevant evidence, acceptance criteria — instead of dumping the entire dirty chat into the prompt.
129
+
130
+ When execution finishes, what comes back is results, artifacts and receipts. The real work state is stored server-side and cannot be rewritten by a model's say-so.
131
+
132
+ This is the **thin supervisor, thick executor** design:
133
+
134
+ > **Share goals and outcomes, isolate reasoning context — let the Bot that is good at managing manage, and the agents that are good at executing execute.**
135
+
136
+ ## 05 · What PangPang already does
137
+
138
+ **Long-running work management.** Bots, Work, Tasks and dependencies persist; work continues, cancellation propagates, checkpoints hold, and state reconciles after a service restart.
139
+
140
+ **Device and executor collaboration.** Connectors bring real computers into the coordinator; tasks are assigned under capability, location and authority constraints; executors keep their own tools and skill stacks.
141
+
142
+ **Scheduled work.** Routines are supported. A Routine created or modified by a model never gains standing execution authority directly — it requires the operator's approval of the exact current version.
143
+
144
+ **Results and files come back.** Execution receipts, text results and file artifacts are linked to their source task; file access and harvest are constrained by path, digest, size and type.
145
+
146
+ **Disconnect and failure recovery.** A lost connection is not treated as task failure, and unknown state is never dressed up as success; without sufficient terminal evidence, dependencies stay waiting and dangerous re-dispatch is prevented.
147
+
148
+ **Web control UI.** Chat, configure models, browse work and artifacts from a browser; mobile layout supported.
149
+
150
+ **Multi-protocol models.** The global conversation model supports OpenAI Chat Completions, Responses, Anthropic Messages, Gemini API-key mode, and compatible local/third-party endpoints. Catalog and protocol support are not a certification that every vendor, model or login method has been field-tested.
151
+
152
+ PangPang's current focus is **managing work reliably** — not claiming universal automatic quality judgment, full-platform sandboxing, or per-phase dynamic model-cost optimization.
153
+
154
+ ## 06 · Getting started
155
+
156
+ The current release is **0.9.0 RC**; 1.0 is not out. Start in a controlled environment and follow the [install guide](docs/INSTALL.md).
157
+
158
+ ### Launch the supervisor
159
+
160
+ Requires system **Python 3.11+** and access to a model service. Use the official assembled package with platform runtimes:
161
+
162
+ ```bash
163
+ pip install pangpang
164
+ python -m pangpang.cli cloud
165
+ ```
166
+
167
+ Then open **http://127.0.0.1:8790** in your local browser.
168
+
169
+ Sign in with the access key shown on first launch and configure the global conversation model in settings.
170
+
171
+ Platform wheels include digest-verified Bun Worker and the Pi fallback executor; Node.js is not required, but **the Python interpreter is not bundled**. Do not confuse a plain wheel built from a source directory with an assembled release package that contains runtimes.
172
+
173
+ ### Connect another computer
174
+
175
+ Create a device pairing in the Web UI, then on the target machine:
176
+
177
+ ```bash
178
+ python -m pangpang.cli connector \
179
+ --cloud https://YOUR.DOMAIN \
180
+ --workspace /your/workspace \
181
+ --data /private/pangpang-device
182
+ ```
183
+
184
+ Windows:
185
+
186
+ ```powershell
187
+ python -m pangpang.cli connector --cloud https://YOUR.DOMAIN --workspace C:\Work --data C:\PangPangData
188
+ ```
189
+
190
+ First-time local execution requires explicit confirmation. Devices need no inbound SSH or public ports; a remote coordinator must sit behind a trusted HTTPS entry as described in the [deployment & recovery guide](docs/RUNBOOK.md) — never expose the default plaintext service to the public internet.
191
+
192
+ Once models, devices and executors are configured, start with requests like:
193
+
194
+ - "Create a long-lived Bot responsible for my public-account content."
195
+ - "Have the executor on the Linux machine run the tests for this project."
196
+ - "Generate a briefing every morning from now on — ask me first when permissions are needed."
197
+ - "Continue yesterday's work; first tell me what is done and what is still unconfirmed."
198
+ - "Harvest the artifacts, and don't overwrite the original files."
199
+
200
+ ## 07 · Security boundaries and current status
201
+
202
+ PangPang operates real files on real machines. So we care less about demonstrating "full autonomy" than about whether the boundaries are clear:
203
+
204
+ - Neither model nor executor output can grant itself permissions.
205
+ - Secrets are managed by the control plane; custom API endpoints require explicit confirmation.
206
+ - An approved Routine that changes in a way affecting its authority must be re-approved.
207
+ - An unverified device report never becomes a final execution fact directly.
208
+ - File-path restrictions are **not an OS sandbox**. Untrusted executors under the same system account remain a risk; high-security environments need separate identities, sandboxes or VMs.
209
+ - Cross-device or remote deployments must use trusted HTTPS and restrict execution per the runbook.
210
+
211
+ **Release and acceptance status (0.9.0 RC):**
212
+
213
+ | Platform | Current boundary |
214
+ | --- | --- |
215
+ | **Linux** | Automated verification and Bun package tests exist; full real-scenario acceptance is still being completed |
216
+ | **Windows** | Install and browser test paths exist; real CLI / Connector fault-injection acceptance is in progress |
217
+ | **macOS** | Platform code and test entry points exist; full real-machine acceptance is not claimed |
218
+
219
+ Passing automated tests does not mean every model, CLI, device, disconnect-recovery and cross-platform scenario has been verified. Shipped artifacts and verified scope are listed in [Releases](https://github.com/Tritium-Emergence/PangPang/releases) and the [runbook](docs/RUNBOOK.md).
220
+
221
+ ## Local-model performance
222
+
223
+ The default scheduler assumes a model endpoint that profits from concurrency (`model_max_concurrency=4`). If your endpoint is a **single-stream local Qwen** where parallel long contexts reduce wall-clock performance, set the model scheduler to 1:
224
+
225
+ ```json
226
+ {
227
+ "scheduler": {
228
+ "model_max_concurrency": 1,
229
+ "reserved_user_slots": 0,
230
+ "main_bot_max_active_turns": 1,
231
+ "main_bot_reserved_user_slots": 0,
232
+ "service_bot_max_active_turns": 1
233
+ }
234
+ }
235
+ ```
236
+
237
+ Executor capacity and workspace claims are a separate resource domain and must not be coupled back into planner resource locks.
238
+
239
+ **Do not detect the provider from the model name:** local and cloud inference services may share the same `qwen-*` name, yet their generation parameters are not interchangeable. New configurations do not auto-inject thinking/reasoning parameters: Pi-catalog models follow Pi's built-in mapping, and custom endpoints get their thinking format, reasoning level and `max_tokens`/`max_completion_tokens` field chosen explicitly in settings. Historical A/B evidence (see RUNBOOK) recommends enabling thinking for local Qwen and `reasoning_effort=medium` + `max_completion_tokens` for cloud reasoning endpoints, but that is a recommended explicit setting, not an automatic default; pre-provider profiles keep their historical field behavior until reconfigured.
240
+
241
+ ## Optional services
242
+
243
+ - `TAVILY_API_KEY` is optional: it makes in-process `web_search` prefer Tavily. Without it `web_search` still works through the keyless Bing/DuckDuckGo chain.
244
+ - `TYPESAFE_API_KEY` enables optional Jev/SystemOne semantic decisions (an optional external closed API; missing/timeout/error must have a deterministic fallback path).
245
+
246
+ Neither service may become an authority for ownership, permissions, liveness, secrets, workspace safety or execution terminal state.
247
+
248
+ ## Validation
249
+
250
+ Local gates are the source of truth:
251
+
252
+ ```bash
253
+ # Linux/macOS/Windows: prepare a Python venv and use its interpreter
254
+ python -m pip install -r requirements.txt
255
+ npm ci --ignore-scripts
256
+ python -m unittest discover -s tests -p "test_*.py"
257
+ ```
258
+
259
+ The full gate additionally covers Playwright browser tests (`npx playwright install chromium && npm run test:browser`) and the release build; builds require a clean committed checkout.
260
+
261
+ Passing automated tests does not mean real-model / real-CLI / TLS / multi-platform / long-context / disconnect-recovery have all been field-verified. A real release additionally requires destructive fault injection and a real-machine loop.
262
+
263
+ `pangpang/web/app.js` / `app.css` are single-file bundles built from `web-src/` via `npx vite build` (rebuildable and byte-comparable); audit the frontend by reading `web-src/`.
264
+
265
+ ## 08 · Documentation and contributing
266
+
267
+ - [Install and first run](docs/INSTALL.md)
268
+ - [Model services and protocols](docs/MODEL-PROVIDERS.md)
269
+ - [Security model](SECURITY.md)
270
+ - [Deployment, recovery and operations](docs/RUNBOOK.md)
271
+ - [Docs index](docs/INDEX.md)
272
+ - [Contributing guide](CONTRIBUTING.md)
273
+
274
+ PangPang's original code and documentation are licensed under the **Apache License 2.0**; third-party components remain under their own licenses — see [THIRD_PARTY_NOTICES](THIRD_PARTY_NOTICES). Contributions follow the [DCO](CONTRIBUTING.md). The PangPang name and logo are not licensed with the code — see [TRADEMARKS.md](TRADEMARKS.md).
275
+
276
+ ---
277
+
278
+ ### There will be more virtuosos, and they will keep getting cheaper.
279
+
280
+ The future will not lack AI that writes code, does research or analyzes data. What is genuinely hard is organizing a flood of fast-generated work into reliable, continuous, checkable results.
281
+
282
+ **PangPang does not want to be another virtuoso.**
283
+
284
+ **We want you to have your own conductor.**