marcus-toolkit 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: marcus-toolkit
3
+ Version: 0.1.0
4
+ Summary: The run-side toolbox Marcus extensions share: a server under test, seeding, run guards, the cost watchdog, the board sampler, measures, the run record, and a pull-loop agent shell
5
+ License: MIT License
6
+
7
+ Copyright (c) 2025 Larry Gray
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Project-URL: Homepage, https://github.com/painted-porch/marcus-toolkit
28
+ Project-URL: Changelog, https://github.com/painted-porch/marcus-toolkit/blob/main/CHANGELOG.md
29
+ Classifier: License :: OSI Approved :: MIT License
30
+ Classifier: Programming Language :: Python :: 3.11
31
+ Classifier: Development Status :: 3 - Alpha
32
+ Requires-Python: >=3.11
33
+ Description-Content-Type: text/markdown
34
+ License-File: LICENSE
35
+ Provides-Extra: dev
36
+ Requires-Dist: pytest==7.4.3; extra == "dev"
37
+ Requires-Dist: mypy==1.19.1; extra == "dev"
38
+ Requires-Dist: ruff==0.15.5; extra == "dev"
39
+ Requires-Dist: black==26.3.0; extra == "dev"
40
+ Dynamic: license-file
41
+
42
+ # marcus-toolkit
43
+
44
+ The run-side toolbox that Marcus extensions share.
45
+
46
+ ## What this is, briefly
47
+
48
+ [Marcus](https://github.com/painted-porch/marcus) coordinates AI agents through a shared task board: agents pull work from the board over MCP (the Model Context Protocol, the wire protocol for Marcus's tools), do it, and report back with evidence.
49
+ An *extension* is a separate program that seeds a board and runs agents against it for one purpose: verifying citations, verifying a numerical report, coordinating Minecraft agents, refereeing a wargame.
50
+
51
+ Every extension needs the same scaffolding around a run, and every extension so far rebuilt it.
52
+ This package is that scaffolding, built once (the inventory and the reasoning are in painted-porch/marcus issue #914):
53
+
54
+ | Module | What it does |
55
+ | --- | --- |
56
+ | `marcus_toolkit.server` | a **server under test**: a private Marcus started for one run with every model-provider key stripped from its environment and the model switched off with an empty key, so the run can spend nothing by construction; refuses a port someone else holds and proves the port's owner is this run's server |
57
+ | `marcus_toolkit.seed` | seeds a project with exactly the tasks named, through `create_project(options.tasks)`, and refuses before the call what the board would mis-handle: an unknown spec key, a `build`-family label, a dependency naming no task, a project name containing "test" |
58
+ | `marcus_toolkit.watchdog` | stops a run the moment its spend reaches the approved line; the line is re-read on every poll when it comes from a file |
59
+ | `marcus_toolkit.pricing`, `marcus_toolkit.usage` | one price table; usage rows read from pi's transcripts or from `<state>/<agent>/usage.jsonl`, one row per model call, which any runtime can write |
60
+ | `marcus_toolkit.sampler` | reads the board from outside every few seconds and applies the drain verdict's claimability rule, so frontier width has a time series |
61
+ | `marcus_toolkit.integrity` | hashes the files that execute, hashes the same files as committed, records a checkout's version |
62
+ | `marcus_toolkit.record` | the run record: `runs/<stamp>/`, `run-config.txt`, JSONL streams, copies |
63
+ | `marcus_toolkit.measure` | pulls and the idle-poll ratio, the kernel's frontier series, the sampler's series, board counts from a copy of `kanban.db` |
64
+ | `marcus_toolkit.client`, `marcus_toolkit.agent` | the MCP client and a pull-loop agent shell in Python |
65
+ | `node/` | the same client in Node: `mcp-http.js` and `board.js` |
66
+ | `marcus_toolkit.livecheck` | the toolbox's own live check against a real Marcus checkout |
67
+
68
+ Nothing in this package imports Marcus's own code.
69
+ It talks to a server over MCP and reads the files a run leaves behind, which is all an extension may do (`docs/architecture/extension-contract.md` in the Marcus repository).
70
+
71
+ ## Install
72
+
73
+ ```bash
74
+ pip install -e . # from a checkout
75
+ pip install -e ".[dev]" # with the test and lint tools
76
+ ```
77
+
78
+ For the Node client, import `node/board.js` and `node/mcp-http.js` directly; they have no dependencies.
79
+
80
+ ## The live check
81
+
82
+ ```bash
83
+ python -m marcus_toolkit.livecheck --checkout ~/dev/marcus --out livecheck-runs
84
+ ```
85
+
86
+ Starts a server under test from that checkout, seeds two tasks (the second depending on the first), runs one scripted agent through register, pull, report, pull, report, drain, reads the board from outside before and after, and writes `livecheck-runs/<stamp>/VERDICT.json`.
87
+ It passes only when every card closed, the agent heard the drain, every reply was read back, and the server log carries no model-provider host.
88
+ CI runs it against the Marcus commit pinned in `.github/workflows/ci.yml`.
89
+
90
+ ## Where it came from
91
+
92
+ The Minecraft harness's plumbing (`painted-porch/marcus-minecraft`, `plumbing/`), the Marcus experiment runners (`dev-tools/experiments/runners/marcus_client.py`), and the AI-citation verifier's free rehearsal.
93
+ The defects those runs found are fixed here once: a stop line read only at process start, a placeholder key that fired one real call on startup, a task spec whose extra key broke every promotion, a blocked task counted as claimable.
94
+
95
+ ## Versioning
96
+
97
+ Each release states the Marcus commit it was live-checked against.
98
+ The toolbox depends on Marcus's MCP tool names and reply shapes, not on its code; when those change, this package gets a release, not a patch to the kernel.
@@ -0,0 +1,25 @@
1
+ marcus_toolkit/__init__.py,sha256=XY3Pgj_SHEnFsAV2hGjP7-59D3v1cUaUtiecohr1mco,838
2
+ marcus_toolkit/agent.py,sha256=-tqaXc5sduLdMmqwxFSE1UOOxWHAQQNnUJaVkiit0gc,15086
3
+ marcus_toolkit/candidates.py,sha256=L4CqUleko8iZVdxEx57VRxUO2diwWdmdhTjI7dHhVYg,18008
4
+ marcus_toolkit/client.py,sha256=CM03LgUH-uV5BqPYdMu0-99mP76W4O051w_2VKtDHNU,11125
5
+ marcus_toolkit/funnel.py,sha256=J41U63bmx5bKNDE_WKHChS6oC-IiFNNaRN_qzwzJfJk,5643
6
+ marcus_toolkit/gate.py,sha256=BHfhnxGvi1we1Nd90DUUJrw_7dx_K9-Xf3og7CMlPCM,5355
7
+ marcus_toolkit/integrity.py,sha256=_RRfWRGgidLWHxM5mm_csgki59C6SuqLah3jehRfTtw,7345
8
+ marcus_toolkit/livecheck.py,sha256=_Q-lJRVFSUMxq_mSvRiZUL5Jegqv0YHdiwE0-_4ruCE,8341
9
+ marcus_toolkit/measure.py,sha256=1WCS0gIIpoA5NnwNcYVejiNjiLKzTBOr_p27zGiqXpQ,6231
10
+ marcus_toolkit/pricing.py,sha256=KQbjkcTNjI1w8Zcl8bVPd7K0Hw8qGwR96Q9LMucK3Ck,2839
11
+ marcus_toolkit/record.py,sha256=S5SkBdrErwg15ITIpCu6EmjXLODnOAN3a8VBKy9IQi0,2849
12
+ marcus_toolkit/sampler.py,sha256=x3kZhSYPdMvzDDCjWdIfsnPSfgTS4Sne3KLd8MVknOQ,5489
13
+ marcus_toolkit/seed.py,sha256=Wj5l_g3kz5hsLdKd83KJZtQJpUUJMPAFKwjXV85OtuI,6220
14
+ marcus_toolkit/server.py,sha256=idixtxjrIUJH70mLN6_NvWeZzYMeWFBvTMTDx-7QztM,11300
15
+ marcus_toolkit/tender.py,sha256=JWHONSsXkoxja_wwEzOdGfE_heu_yGjQfADrWY5hTAc,12778
16
+ marcus_toolkit/tending.py,sha256=lwqjMXic5juDIqMM0psamuwMPM_hALoErCk1GrLclOk,33886
17
+ marcus_toolkit/usage.py,sha256=TL8jUCe8c_O_8wG5xQ3VK86740i0Pnx-LOPr8c4iiP0,7004
18
+ marcus_toolkit/views.py,sha256=bOJdM3-cjfdGbkQRUD6mVIjJv-SE1jl2O3HoOAmdqfM,5397
19
+ marcus_toolkit/watchdog.py,sha256=IxB9fyNW9grWFQ7coSIC5-mQAHvGu8agu76ahEitX3A,8264
20
+ marcus_toolkit-0.1.0.dist-info/licenses/LICENSE,sha256=TBw2RUcZF_TPy2f--AJyNYP3Gq-ZuFSvvRgw26z_icg,1067
21
+ marcus_toolkit-0.1.0.dist-info/METADATA,sha256=fQ9GIm_egFFBvQ2E96HhdLloR7JkkIIs9bvmaKtrtWI,6473
22
+ marcus_toolkit-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
23
+ marcus_toolkit-0.1.0.dist-info/entry_points.txt,sha256=6w90zv5Wf7l6-o3b2g57StQz2Nqrc8k7bfWTlM2AE9I,235
24
+ marcus_toolkit-0.1.0.dist-info/top_level.txt,sha256=o82YTGGugIc5NQ9xebKbM3aPdoLC5SF7GRCCg1w4bhg,15
25
+ marcus_toolkit-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ marcus-toolkit-hash = marcus_toolkit.integrity:main
3
+ marcus-toolkit-livecheck = marcus_toolkit.livecheck:main
4
+ marcus-toolkit-sampler = marcus_toolkit.sampler:main
5
+ marcus-toolkit-watchdog = marcus_toolkit.watchdog:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Larry Gray
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ marcus_toolkit