maxxab-agent-runner 0.1.0rc7__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.
- maxxab_agent_runner-0.1.0rc7/.gitignore +12 -0
- maxxab_agent_runner-0.1.0rc7/CHANGELOG.md +72 -0
- maxxab_agent_runner-0.1.0rc7/LICENSE +21 -0
- maxxab_agent_runner-0.1.0rc7/NOTICE.md +19 -0
- maxxab_agent_runner-0.1.0rc7/PKG-INFO +97 -0
- maxxab_agent_runner-0.1.0rc7/README.md +84 -0
- maxxab_agent_runner-0.1.0rc7/automation/__init__.py +1 -0
- maxxab_agent_runner-0.1.0rc7/automation/__main__.py +4 -0
- maxxab_agent_runner-0.1.0rc7/automation/accounting.py +107 -0
- maxxab_agent_runner-0.1.0rc7/automation/callbacks.py +24 -0
- maxxab_agent_runner-0.1.0rc7/automation/cli.py +266 -0
- maxxab_agent_runner-0.1.0rc7/automation/config.py +193 -0
- maxxab_agent_runner-0.1.0rc7/automation/contracts.py +100 -0
- maxxab_agent_runner-0.1.0rc7/automation/control.py +860 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_bootstrap.py +526 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_docker_credentials.py +394 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_docker_http.py +239 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_docker_io.py +378 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_docker_stream.py +57 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_guardian_protocol.py +62 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_assets.py +254 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_bootstrap.py +336 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_channel.py +240 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_clock.py +266 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_configuration.py +80 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_consumer.py +89 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_containment.py +363 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_dispatch.py +173 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_docker_recipe.py +262 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_elf.py +154 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_execution_root.py +385 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_frozen.py +914 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_handoff.py +105 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_launch_data.py +188 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_lifetime.py +56 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_linux.py +90 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_manager.py +263 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_observer.py +222 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_operational.py +62 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_original.py +183 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_payload.py +180 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_prefork.py +143 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_proc.py +478 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_proc_view.py +351 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_project_layout.py +241 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_provisioner.py +357 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_readiness.py +252 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_receiver.py +909 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_root_entry.py +331 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_seal.py +356 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_source_pins.py +101 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_state.py +100 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_systemd.py +82 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_runtime_verity.py +219 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_startup.py +91 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_store.py +2778 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_supervisor.py +431 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_transport.py +703 -0
- maxxab_agent_runner-0.1.0rc7/automation/control_workspace.py +255 -0
- maxxab_agent_runner-0.1.0rc7/automation/fresh_github.py +288 -0
- maxxab_agent_runner-0.1.0rc7/automation/fresh_work.py +400 -0
- maxxab_agent_runner-0.1.0rc7/automation/github.py +165 -0
- maxxab_agent_runner-0.1.0rc7/automation/github_transport.py +269 -0
- maxxab_agent_runner-0.1.0rc7/automation/hold_journal.py +182 -0
- maxxab_agent_runner-0.1.0rc7/automation/lifecycle.py +156 -0
- maxxab_agent_runner-0.1.0rc7/automation/live_contracts.py +750 -0
- maxxab_agent_runner-0.1.0rc7/automation/live_io.py +576 -0
- maxxab_agent_runner-0.1.0rc7/automation/live_preview.py +155 -0
- maxxab_agent_runner-0.1.0rc7/automation/managed_config.py +265 -0
- maxxab_agent_runner-0.1.0rc7/automation/managed_observation.py +203 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/libmd/COPYING +177 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/libmd/config.h +1 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/libmd/local-link.h +68 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/libmd/sha2.c +990 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/libmd/sha2.h +130 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_guardian.c +290 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_admission.c +296 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_admission.h +49 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_bootstrap.c +232 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_bootstrap.h +26 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_clock.c +811 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_clock.h +130 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_launch.c +490 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_launch.h +77 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_persistence.c +321 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_persistence.h +50 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_preparer.c +4178 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_preparer.h +110 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_project_view.c +444 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_project_view.h +31 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_qualification_main.c +22 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_records.c +478 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_records.h +101 -0
- maxxab_agent_runner-0.1.0rc7/automation/native/runtime_stage0_validate_main.c +13 -0
- maxxab_agent_runner-0.1.0rc7/automation/operation_journal.py +214 -0
- maxxab_agent_runner-0.1.0rc7/automation/selection.py +175 -0
- maxxab_agent_runner-0.1.0rc7/automation/sqlite_support.py +40 -0
- maxxab_agent_runner-0.1.0rc7/automation/supervised_inputs.py +193 -0
- maxxab_agent_runner-0.1.0rc7/automation/supervised_observer.py +147 -0
- maxxab_agent_runner-0.1.0rc7/automation/supervised_run.py +287 -0
- maxxab_agent_runner-0.1.0rc7/automation/supervised_state.py +542 -0
- maxxab_agent_runner-0.1.0rc7/automation/usage_journal.py +110 -0
- maxxab_agent_runner-0.1.0rc7/pyproject.toml +28 -0
- maxxab_agent_runner-0.1.0rc7/tools/__init__.py +1 -0
- maxxab_agent_runner-0.1.0rc7/tools/runner_container_preflight.py +624 -0
- maxxab_agent_runner-0.1.0rc7/tools/runner_idle_notifications.py +33 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
<!-- Generated by development-standards. Do not edit manually. -->
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- **runner:** add stateless owner-selected issue work ([3833f0f82201](https://github.com/maxxab/agent_runner/commit/3833f0f8220116001ec7a4b5e9a56e28673177e6))
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **native:** preserve keeper timing and validate held admission descriptors ([9fac1e4fb6de](https://github.com/maxxab/agent_runner/commit/9fac1e4fb6de9cef38ea9e0f73368e3fb874355e))
|
|
12
|
+
- **native:** decode project-bound installation data ([fdbff7009fa7](https://github.com/maxxab/agent_runner/commit/fdbff7009fa734353ee837b8bd4d0d7831209553))
|
|
13
|
+
- **native:** decode bounded canonical launch declarations ([bc58f30b7d3b](https://github.com/maxxab/agent_runner/commit/bc58f30b7d3b82b29ccfbe23130aefd02b77bcab))
|
|
14
|
+
- **native:** supervise held-input admission without workload release ([e8a94016181f](https://github.com/maxxab/agent_runner/commit/e8a94016181f5dacbacd4be5f66cc0cbc87b2811))
|
|
15
|
+
- **native:** prepare durable admission latch and claim without release ([5c423e7aaf4f](https://github.com/maxxab/agent_runner/commit/5c423e7aaf4f8d8a7a8c66c6c0cce0ee3b97fb13))
|
|
16
|
+
- **native:** decode bounded admission policy records ([173c80f705dc](https://github.com/maxxab/agent_runner/commit/173c80f705dced901e9d5d4b0c9ce4984e7a61b3))
|
|
17
|
+
- **native:** preserve fenced admission verification progress ([9815ba581902](https://github.com/maxxab/agent_runner/commit/9815ba581902dc8848845385d2a0de9e7c0d0118))
|
|
18
|
+
- **runner:** add explicit supervised single-task release ([a7c507731c2e](https://github.com/maxxab/agent_runner/commit/a7c507731c2e9fd5a6e528304c85bd128846c1b2))
|
|
19
|
+
- **runner:** add stateless owner-selected issue work ([3833f0f82201](https://github.com/maxxab/agent_runner/commit/3833f0f8220116001ec7a4b5e9a56e28673177e6))
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **runtime:** require explicit finite provider retry controls ([6ce2f59d96c9](https://github.com/maxxab/agent_runner/commit/6ce2f59d96c98ef452facf271ea28a9940b82f23))
|
|
24
|
+
- **runner:** retain post-failure input clock evidence ([d9e98cfacc65](https://github.com/maxxab/agent_runner/commit/d9e98cfacc65f21212241ef88fc3dc8fdf887c55))
|
|
25
|
+
- **supervised:** pass explicit requested model settings ([5bd865c70b22](https://github.com/maxxab/agent_runner/commit/5bd865c70b2231670b4b5f793fd9144e57f0445d))
|
|
26
|
+
|
|
27
|
+
### Security
|
|
28
|
+
|
|
29
|
+
- **native:** authenticate the original admission fork packet ([35bbff3f5f50](https://github.com/maxxab/agent_runner/commit/35bbff3f5f50008ad6ce5ff3b497bbf99f5ad839))
|
|
30
|
+
- **native:** bind execution to the runtime image root ([4414afe768dc](https://github.com/maxxab/agent_runner/commit/4414afe768dc474175b3fd5b4577d2cfef1aa1f7))
|
|
31
|
+
- **native:** route private entry through supervised admission ([4af30885d656](https://github.com/maxxab/agent_runner/commit/4af30885d6562f5ab80804fe712d6225cbe50033))
|
|
32
|
+
- **runner:** guard original admission bootstrap privilege ([5b2050c77eb9](https://github.com/maxxab/agent_runner/commit/5b2050c77eb903cf1a09c25cce2b7e751696adb9))
|
|
33
|
+
|
|
34
|
+
### Refactoring
|
|
35
|
+
|
|
36
|
+
- **runner:** extract standalone package and owner workflow ([ca7692b5dbfe](https://github.com/maxxab/agent_runner/commit/ca7692b5dbfe01d1252cc67aaa6e74d483c4ee3a))
|
|
37
|
+
|
|
38
|
+
### Documentation
|
|
39
|
+
|
|
40
|
+
- **runner:** save verified extraction continuation checkpoint ([ff61aaffbd99](https://github.com/maxxab/agent_runner/commit/ff61aaffbd9946003b1d8b89a8051ae88a4dc63b))
|
|
41
|
+
- **runner:** record admission contracts and verified prerequisites ([f8024d6c7baa](https://github.com/maxxab/agent_runner/commit/f8024d6c7baa9a9ac83df2d88468804ed6bd67c4))
|
|
42
|
+
- **runner:** preserve first-release rollover and provider gap ([8ce9d922cefb](https://github.com/maxxab/agent_runner/commit/8ce9d922cefbbb8a0eca1508c0d1b265ae24e7a5))
|
|
43
|
+
- **migration:** reconcile extraction ownership and runner setup ([15cb95530384](https://github.com/maxxab/agent_runner/commit/15cb95530384f00600f394a5992687a05d624979))
|
|
44
|
+
- **release:** preserve reviewed components and remaining admission gates ([cc3f5ddffe63](https://github.com/maxxab/agent_runner/commit/cc3f5ddffe63e2fa50b0d8169231e818ba3d0fc2))
|
|
45
|
+
- **native:** specify reviewed admission transport and project policy ([122f9fad9830](https://github.com/maxxab/agent_runner/commit/122f9fad983002540f2ac0c73111aa843beaf6d3))
|
|
46
|
+
- **release:** preserve admission continuation and ownership checkpoint ([8466723edf26](https://github.com/maxxab/agent_runner/commit/8466723edf26769886a409d718b0a7cb53038b8d))
|
|
47
|
+
- **runner:** index product and operational release requirements ([25f81e951fb1](https://github.com/maxxab/agent_runner/commit/25f81e951fb12b44f05b1f96e5ab5644d5c35e04))
|
|
48
|
+
- **runner:** record dependency and regression verification ([b8f4289d2294](https://github.com/maxxab/agent_runner/commit/b8f4289d2294d9b7921e80a2bdf139d7a8f97df0))
|
|
49
|
+
- **runner:** checkpoint reviewed admission work and recovery ([754f932d3de1](https://github.com/maxxab/agent_runner/commit/754f932d3de130a053a99f95948a903742331f93))
|
|
50
|
+
- **runner:** freeze simplified coupled admission contract ([51d38b625a53](https://github.com/maxxab/agent_runner/commit/51d38b625a5344f7cb5fbbe2cb629bb187e81167))
|
|
51
|
+
- **release:** record checkpoint provenance and continuation ([74f91d20d2e5](https://github.com/maxxab/agent_runner/commit/74f91d20d2e5d35998cf6f471b97c87f780dcbd5))
|
|
52
|
+
- **architecture:** explain complete supervised lifecycle with Mermaid ([151f1f07ed82](https://github.com/maxxab/agent_runner/commit/151f1f07ed82961569d92278c68a80357bb48f89))
|
|
53
|
+
- **admission:** refine dependency inventory and record project review ([5754885b11e2](https://github.com/maxxab/agent_runner/commit/5754885b11e2a14c3a83bd85ba5e31fd5b76388a))
|
|
54
|
+
- **admission:** refine conservative inventory and buffer lifetime ([3a84323f19eb](https://github.com/maxxab/agent_runner/commit/3a84323f19ebe99e17b32d17a755572246ea8c97))
|
|
55
|
+
- **admission:** specify bounded inventory layout and preclaim sequence ([6c42cf0a4de3](https://github.com/maxxab/agent_runner/commit/6c42cf0a4de31bf05d427ca3cf947acc0092a47f))
|
|
56
|
+
- refine admission safety boundaries ([09cea549090a](https://github.com/maxxab/agent_runner/commit/09cea549090a7d8a1acb0b09fbe007c24f872a08))
|
|
57
|
+
- **admission:** clarify mount and alias evidence ([d7fb85b8b5d7](https://github.com/maxxab/agent_runner/commit/d7fb85b8b5d7b3360f422ee77b53a1c28e6a7e13))
|
|
58
|
+
- **release:** freeze supervised v0.1 implementation scope ([65725aa06b4c](https://github.com/maxxab/agent_runner/commit/65725aa06b4cebcd115c5c60c632cbd878e4a321))
|
|
59
|
+
- **release:** accept first supervised User Admin task ([bebd8d95af77](https://github.com/maxxab/agent_runner/commit/bebd8d95af77a2f18c7e0511e0e5e3fb8af2d5f9))
|
|
60
|
+
- **runner:** explain supervised use and task verification ([3372e1099b5f](https://github.com/maxxab/agent_runner/commit/3372e1099b5f435b4da430c9b047db1e34cc01a1))
|
|
61
|
+
- **release:** clarify current supervised acceptance evidence ([2fb3290dca66](https://github.com/maxxab/agent_runner/commit/2fb3290dca6607ea3e4a908e094ff7659d99ca8f))
|
|
62
|
+
- **runner:** document GitHub chat references ([2120e89c973d](https://github.com/maxxab/agent_runner/commit/2120e89c973d8ef18f4d6bb01cdeccb1124af9c1))
|
|
63
|
+
- **runner:** document verified local commits ([97bc0ad501c5](https://github.com/maxxab/agent_runner/commit/97bc0ad501c5bcd0a20780a9f4b419c6da9a3101))
|
|
64
|
+
- **runner:** clarify current architecture and operating guides ([f78119274bda](https://github.com/maxxab/agent_runner/commit/f78119274bdafbb723a8b6023b46de1b9d38c216))
|
|
65
|
+
|
|
66
|
+
### Testing
|
|
67
|
+
|
|
68
|
+
- **receiver:** allow store scheduling in malformed response check ([e1df77313fbc](https://github.com/maxxab/agent_runner/commit/e1df77313fbc59688e1ce9ec4b5a6416f138c7eb))
|
|
69
|
+
|
|
70
|
+
### Build System
|
|
71
|
+
|
|
72
|
+
- **release:** prepare verified PyPI publishing ([d6d514be6046](https://github.com/maxxab/agent_runner/commit/d6d514be60464a2dc942305a9f5c9b5b3bd2f966))
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agent Runner contributors
|
|
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,19 @@
|
|
|
1
|
+
# Source provenance and attribution
|
|
2
|
+
|
|
3
|
+
Runner-owned files were imported from maxxab/development-standards at
|
|
4
|
+
5de59c4f6c50a73b47048cd41b4a98df5866a041. The exact original paths and SHA256
|
|
5
|
+
values are in docs/migration/manifest.json. Original Git history remains in that
|
|
6
|
+
repository; no unrelated repository history is imported. Existing attribution in source and historical documents is preserved. The
|
|
7
|
+
runner-owned material is now distributed under the MIT license in LICENSE.
|
|
8
|
+
The bundled libmd files retain their original terms described below.
|
|
9
|
+
|
|
10
|
+
Modkit Events and Workers informed packaging/consumer verification conventions;
|
|
11
|
+
no modkit implementation, dependencies or functionality were copied. The optional
|
|
12
|
+
Codex SDK/runtime and host programs are separate dependencies with their own terms;
|
|
13
|
+
the SDK/runtime is not vendored or installed by this package.
|
|
14
|
+
|
|
15
|
+
The native SHA-2 implementation and headers in automation/native/libmd are from
|
|
16
|
+
libmd 1.1.0 (Aaron D. Gifford and Guillem Jover). Their copyright and BSD license
|
|
17
|
+
conditions and disclaimers are retained in that directory's source headers and
|
|
18
|
+
COPYING file. The retained upstream source and package provenance are recorded in
|
|
19
|
+
the project's protected release evidence.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: maxxab-agent-runner
|
|
3
|
+
Version: 0.1.0rc7
|
|
4
|
+
Summary: Project-owned foreground task runner with explicit operator approval
|
|
5
|
+
Project-URL: Repository, https://github.com/maxxab/agent_runner
|
|
6
|
+
Project-URL: Issues, https://github.com/maxxab/agent_runner/issues
|
|
7
|
+
License-Expression: MIT AND BSD-3-Clause
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: NOTICE.md
|
|
10
|
+
License-File: automation/native/libmd/COPYING
|
|
11
|
+
Requires-Python: >=3.12
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# agent_runner
|
|
15
|
+
|
|
16
|
+
Dedicated runner project, extracted from development-standards. Current source
|
|
17
|
+
adds fresh owner-selected GitHub work with **no runner workflow persistence**:
|
|
18
|
+
|
|
19
|
+
Start with the [owner guide](https://github.com/maxxab/agent_runner/blob/main/docs/project-owner.md) to opt in, configure and
|
|
20
|
+
install the runner in your project. Installation leaves it idle. Ask the chat
|
|
21
|
+
to read the **agent-runner** skill and resume work when you are ready.
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
RUNNER="$PROJECT/.agent-runner/venv/bin/agent-runner"
|
|
25
|
+
"$RUNNER" issues --project "$PROJECT" --from-chat
|
|
26
|
+
"$RUNNER" work --project "$PROJECT" --from-chat --issue "$ISSUE" --chat-model "$CHAT_MODEL"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The chat sets `PROJECT` to the absolute project root and uses the issue number
|
|
30
|
+
you select, or passes `--priority` in place of `--issue` when you choose priority
|
|
31
|
+
order. The chat supplies its effective model identifier unless you request a
|
|
32
|
+
different model. One ephemeral Codex child does the local work and runs relevant
|
|
33
|
+
checks. The parent chat verifies the result, commits accepted work locally when
|
|
34
|
+
required checks pass, and posts the issue follow-up within your permissions.
|
|
35
|
+
|
|
36
|
+
Once the candidate is on PyPI, install the pinned version in the opted-in
|
|
37
|
+
project's existing `.agent-runner/venv`:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
uv pip install --python "$PROJECT/.agent-runner/venv/bin/python" 'maxxab-agent-runner==0.1.0rc7'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The **0.1.0rc7** candidate adds automatic GitHub credential discovery.
|
|
44
|
+
The 0.1.0rc4 chat workflow passed the live User Admin trial.
|
|
45
|
+
See the [owner guide](docs/project-owner.md) and [release evidence](docs/releases/2026-12-01-owner-selected-stateless-source.md).
|
|
46
|
+
Automatic service startup and the original hardened runtime remain unavailable.
|
|
47
|
+
|
|
48
|
+
Use the [verification walkthrough](docs/supervised-test-walkthrough.md) to
|
|
49
|
+
check either the chat-started or optional terminal-supervised workflow.
|
|
50
|
+
|
|
51
|
+
The [architecture guide](docs/architecture.md) diagrams the current components
|
|
52
|
+
and the [sequence from issue selection to handoff](docs/architecture.md#sequence-from-issue-selection-to-handoff).
|
|
53
|
+
It also preserves the historical stateful lifecycle and recovery diagrams.
|
|
54
|
+
|
|
55
|
+
Agents changing the implementation should start with the
|
|
56
|
+
[maintainer handoff](docs/maintainer-handoff.md), including current limitations,
|
|
57
|
+
pending proposals, protected state and verification guidance.
|
|
58
|
+
|
|
59
|
+
The installed `agent-runner doctor` and `preview` commands provide read-only
|
|
60
|
+
advisory reports. Python >=3.12 and Git are required; ordinary Python runtime
|
|
61
|
+
dependencies are empty. Existing `automation` and `tools` import names and flat
|
|
62
|
+
native-source paths are retained for compatibility with reviewed source contracts.
|
|
63
|
+
|
|
64
|
+
Project owner chats must read the single canonical
|
|
65
|
+
[agent-runner skill](/home/faris/development-standards/skills/agent-runner/SKILL.md),
|
|
66
|
+
then follow [project-owner installation and recovery](docs/project-owner.md).
|
|
67
|
+
Shared policy/skills stay in development-standards; there is no runtime import from
|
|
68
|
+
that checkout and no copied skill in this repository. Other hosts must establish
|
|
69
|
+
the canonical shared skill checkout/discovery path before using that workflow.
|
|
70
|
+
|
|
71
|
+
Build/check from this checkout with `uv build` and
|
|
72
|
+
`python3 -m unittest discover -s tests -v`. Then run
|
|
73
|
+
`python3 scripts/check_installation.py dist/maxxab_agent_runner-0.1.0rc7-py3-none-any.whl`.
|
|
74
|
+
That check uses uv to install into separate disposable consumer environments and
|
|
75
|
+
builds packaged native artifacts without running them. GCC 13 on Linux x86_64 is
|
|
76
|
+
the checked native target; the installed package does not auto-build/activate them.
|
|
77
|
+
|
|
78
|
+
[Historical experiment setup](docs/experiment-setup.md),
|
|
79
|
+
[Migration/provenance](docs/migration/README.md),
|
|
80
|
+
[handoff](docs/handoffs/2026-11-19-extraction.md),
|
|
81
|
+
[accepted product plan](docs/superpowers/plans/2026-11-09-shared-ai-development-workflow.html),
|
|
82
|
+
[advisory contracts](docs/automation.md), [incident history](TROUBLESHOOTING.md).
|
|
83
|
+
The [requirements and release evidence index](docs/requirements.md) connects the
|
|
84
|
+
product acceptance IDs, current contracts, environment prerequisites and owner flow.
|
|
85
|
+
The product plan's historical placement/bootstrap instructions are superseded by
|
|
86
|
+
this migration and the owner guide; its acceptance IDs and safety contracts remain.
|
|
87
|
+
|
|
88
|
+
All five original autonomous-runtime release gates remain OPEN: actual complete runtime profile/original
|
|
89
|
+
membership; real private entry and bound session/rnr_command; whole independent
|
|
90
|
+
keeper/containment/recovery; immutable startup closure; actual integrated
|
|
91
|
+
success/failure/recovery qualification. RootEntry STORE_READY_ONLY and synthetic
|
|
92
|
+
or disabled paths are not a release. Production validation NEVER RUN.
|
|
93
|
+
The owner-approved narrower [supervised first-release design](docs/superpowers/specs/2026-11-25-supervised-first-release-design.md)
|
|
94
|
+
has separate acceptance criteria; it does not close these original gates.
|
|
95
|
+
|
|
96
|
+
No automatic installation, global service changes, enrollment, credential lookup,
|
|
97
|
+
public package publishing or cross-project activation occurs on package import.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# agent_runner
|
|
2
|
+
|
|
3
|
+
Dedicated runner project, extracted from development-standards. Current source
|
|
4
|
+
adds fresh owner-selected GitHub work with **no runner workflow persistence**:
|
|
5
|
+
|
|
6
|
+
Start with the [owner guide](https://github.com/maxxab/agent_runner/blob/main/docs/project-owner.md) to opt in, configure and
|
|
7
|
+
install the runner in your project. Installation leaves it idle. Ask the chat
|
|
8
|
+
to read the **agent-runner** skill and resume work when you are ready.
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
RUNNER="$PROJECT/.agent-runner/venv/bin/agent-runner"
|
|
12
|
+
"$RUNNER" issues --project "$PROJECT" --from-chat
|
|
13
|
+
"$RUNNER" work --project "$PROJECT" --from-chat --issue "$ISSUE" --chat-model "$CHAT_MODEL"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The chat sets `PROJECT` to the absolute project root and uses the issue number
|
|
17
|
+
you select, or passes `--priority` in place of `--issue` when you choose priority
|
|
18
|
+
order. The chat supplies its effective model identifier unless you request a
|
|
19
|
+
different model. One ephemeral Codex child does the local work and runs relevant
|
|
20
|
+
checks. The parent chat verifies the result, commits accepted work locally when
|
|
21
|
+
required checks pass, and posts the issue follow-up within your permissions.
|
|
22
|
+
|
|
23
|
+
Once the candidate is on PyPI, install the pinned version in the opted-in
|
|
24
|
+
project's existing `.agent-runner/venv`:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
uv pip install --python "$PROJECT/.agent-runner/venv/bin/python" 'maxxab-agent-runner==0.1.0rc7'
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The **0.1.0rc7** candidate adds automatic GitHub credential discovery.
|
|
31
|
+
The 0.1.0rc4 chat workflow passed the live User Admin trial.
|
|
32
|
+
See the [owner guide](docs/project-owner.md) and [release evidence](docs/releases/2026-12-01-owner-selected-stateless-source.md).
|
|
33
|
+
Automatic service startup and the original hardened runtime remain unavailable.
|
|
34
|
+
|
|
35
|
+
Use the [verification walkthrough](docs/supervised-test-walkthrough.md) to
|
|
36
|
+
check either the chat-started or optional terminal-supervised workflow.
|
|
37
|
+
|
|
38
|
+
The [architecture guide](docs/architecture.md) diagrams the current components
|
|
39
|
+
and the [sequence from issue selection to handoff](docs/architecture.md#sequence-from-issue-selection-to-handoff).
|
|
40
|
+
It also preserves the historical stateful lifecycle and recovery diagrams.
|
|
41
|
+
|
|
42
|
+
Agents changing the implementation should start with the
|
|
43
|
+
[maintainer handoff](docs/maintainer-handoff.md), including current limitations,
|
|
44
|
+
pending proposals, protected state and verification guidance.
|
|
45
|
+
|
|
46
|
+
The installed `agent-runner doctor` and `preview` commands provide read-only
|
|
47
|
+
advisory reports. Python >=3.12 and Git are required; ordinary Python runtime
|
|
48
|
+
dependencies are empty. Existing `automation` and `tools` import names and flat
|
|
49
|
+
native-source paths are retained for compatibility with reviewed source contracts.
|
|
50
|
+
|
|
51
|
+
Project owner chats must read the single canonical
|
|
52
|
+
[agent-runner skill](/home/faris/development-standards/skills/agent-runner/SKILL.md),
|
|
53
|
+
then follow [project-owner installation and recovery](docs/project-owner.md).
|
|
54
|
+
Shared policy/skills stay in development-standards; there is no runtime import from
|
|
55
|
+
that checkout and no copied skill in this repository. Other hosts must establish
|
|
56
|
+
the canonical shared skill checkout/discovery path before using that workflow.
|
|
57
|
+
|
|
58
|
+
Build/check from this checkout with `uv build` and
|
|
59
|
+
`python3 -m unittest discover -s tests -v`. Then run
|
|
60
|
+
`python3 scripts/check_installation.py dist/maxxab_agent_runner-0.1.0rc7-py3-none-any.whl`.
|
|
61
|
+
That check uses uv to install into separate disposable consumer environments and
|
|
62
|
+
builds packaged native artifacts without running them. GCC 13 on Linux x86_64 is
|
|
63
|
+
the checked native target; the installed package does not auto-build/activate them.
|
|
64
|
+
|
|
65
|
+
[Historical experiment setup](docs/experiment-setup.md),
|
|
66
|
+
[Migration/provenance](docs/migration/README.md),
|
|
67
|
+
[handoff](docs/handoffs/2026-11-19-extraction.md),
|
|
68
|
+
[accepted product plan](docs/superpowers/plans/2026-11-09-shared-ai-development-workflow.html),
|
|
69
|
+
[advisory contracts](docs/automation.md), [incident history](TROUBLESHOOTING.md).
|
|
70
|
+
The [requirements and release evidence index](docs/requirements.md) connects the
|
|
71
|
+
product acceptance IDs, current contracts, environment prerequisites and owner flow.
|
|
72
|
+
The product plan's historical placement/bootstrap instructions are superseded by
|
|
73
|
+
this migration and the owner guide; its acceptance IDs and safety contracts remain.
|
|
74
|
+
|
|
75
|
+
All five original autonomous-runtime release gates remain OPEN: actual complete runtime profile/original
|
|
76
|
+
membership; real private entry and bound session/rnr_command; whole independent
|
|
77
|
+
keeper/containment/recovery; immutable startup closure; actual integrated
|
|
78
|
+
success/failure/recovery qualification. RootEntry STORE_READY_ONLY and synthetic
|
|
79
|
+
or disabled paths are not a release. Production validation NEVER RUN.
|
|
80
|
+
The owner-approved narrower [supervised first-release design](docs/superpowers/specs/2026-11-25-supervised-first-release-design.md)
|
|
81
|
+
has separate acceptance criteria; it does not close these original gates.
|
|
82
|
+
|
|
83
|
+
No automatic installation, global service changes, enrollment, credential lookup,
|
|
84
|
+
public package publishing or cross-project activation occurs on package import.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Standard-library automation diagnostics and supervised-run components."""
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""Pure synthetic observation projection, never billing or execution authority.
|
|
2
|
+
|
|
3
|
+
There is no SDK event adapter, persistent state or coverage verifier here.
|
|
4
|
+
Input order is receipt order, not established provider ordering.
|
|
5
|
+
"""
|
|
6
|
+
import unicodedata
|
|
7
|
+
|
|
8
|
+
from .contracts import digest, fields, string, version
|
|
9
|
+
|
|
10
|
+
MAX_COUNTER = (1 << 63) - 1
|
|
11
|
+
EVENT_FIELDS = ('schema_version', 'source', 'session_id', 'turn_id', 'event_id',
|
|
12
|
+
'mode', 'scope', 'metric', 'unit', 'value', 'evidence_ref', 'evidence_sha256')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _record(value, required):
|
|
16
|
+
if type(value) is not dict or any(type(key) is not str for key in value):
|
|
17
|
+
raise ValueError('expected a normalized object with string keys')
|
|
18
|
+
fields(value, required)
|
|
19
|
+
version(value['schema_version'])
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _text(value, maximum):
|
|
23
|
+
value = string(value)
|
|
24
|
+
if len(value) > maximum or any(unicodedata.category(ch) in ('Cc', 'Cs') for ch in value):
|
|
25
|
+
raise ValueError('expected bounded control-free Unicode text')
|
|
26
|
+
return value
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _identity(value):
|
|
30
|
+
return _text(value['source'], 128), _text(value['session_id'], 128)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def summarize_cumulative_usage(events: list[dict], expected_streams: list[dict]) -> dict:
|
|
34
|
+
"""Summarize supplied observations; complete totals deliberately stay unknown.
|
|
35
|
+
|
|
36
|
+
Namespace and session attribution are caller-declared normalization inputs,
|
|
37
|
+
not proof of identity, non-overlap, coverage, authorization or actual charge.
|
|
38
|
+
"""
|
|
39
|
+
if type(events) is not list or len(events) > 10000:
|
|
40
|
+
raise ValueError('expected at most 10000 normalized events')
|
|
41
|
+
if type(expected_streams) is not list or len(expected_streams) > 1000:
|
|
42
|
+
raise ValueError('expected at most 1000 normalized streams')
|
|
43
|
+
streams = {}
|
|
44
|
+
sources = set()
|
|
45
|
+
for item in expected_streams:
|
|
46
|
+
_record(item, ('schema_version', 'source', 'session_id'))
|
|
47
|
+
key = _identity(item)
|
|
48
|
+
if key in streams:
|
|
49
|
+
raise ValueError('duplicate expected stream')
|
|
50
|
+
sources.add(key[0])
|
|
51
|
+
streams[key] = {'observed_tokens': None, 'unique_event_count': 0, 'reasons': set()}
|
|
52
|
+
if len(sources) > 1:
|
|
53
|
+
raise ValueError('version 1 supports one declared source namespace per report')
|
|
54
|
+
|
|
55
|
+
seen = {}
|
|
56
|
+
for item in events:
|
|
57
|
+
_record(item, EVENT_FIELDS)
|
|
58
|
+
key = _identity(item)
|
|
59
|
+
if key not in streams:
|
|
60
|
+
raise ValueError('event belongs to an undeclared stream')
|
|
61
|
+
identity = (*key, _text(item['turn_id'], 128), _text(item['event_id'], 128))
|
|
62
|
+
if (item['mode'], item['scope'], item['metric'], item['unit']) != (
|
|
63
|
+
'cumulative', 'session', 'total_tokens', 'tokens'):
|
|
64
|
+
raise ValueError('unsupported accounting mode, scope, metric or unit')
|
|
65
|
+
value = item['value']
|
|
66
|
+
if value is not None and (type(value) is not int or not 0 <= value <= MAX_COUNTER):
|
|
67
|
+
raise ValueError('counter must be a nonnegative bounded integer or null')
|
|
68
|
+
reference = _text(item['evidence_ref'], 1024)
|
|
69
|
+
evidence_hash = digest(item['evidence_sha256'])
|
|
70
|
+
# All other validated fields are fixed enums or part of the identity.
|
|
71
|
+
payload = value, reference, evidence_hash
|
|
72
|
+
new_identity = identity not in seen
|
|
73
|
+
state = streams[key]
|
|
74
|
+
if not new_identity:
|
|
75
|
+
if seen[identity] == payload:
|
|
76
|
+
continue
|
|
77
|
+
state['reasons'].add('conflicting_event_identity')
|
|
78
|
+
else:
|
|
79
|
+
seen[identity] = payload
|
|
80
|
+
state['unique_event_count'] += 1
|
|
81
|
+
if value is None:
|
|
82
|
+
state['reasons'].add('unknown_observation')
|
|
83
|
+
continue
|
|
84
|
+
previous = state['observed_tokens']
|
|
85
|
+
if previous is not None and new_identity and value < previous:
|
|
86
|
+
state['reasons'].add('cumulative_regression_or_reordering')
|
|
87
|
+
state['observed_tokens'] = value if previous is None else max(previous, value)
|
|
88
|
+
|
|
89
|
+
rows, reasons, known = [], {'coverage_unverified'}, []
|
|
90
|
+
if not streams:
|
|
91
|
+
reasons.add('no_expected_streams')
|
|
92
|
+
for (source, session), state in streams.items():
|
|
93
|
+
if state['unique_event_count'] == 0:
|
|
94
|
+
state['reasons'].add('missing_observations')
|
|
95
|
+
if state['observed_tokens'] is not None:
|
|
96
|
+
known.append(state['observed_tokens'])
|
|
97
|
+
reasons.update(state['reasons'])
|
|
98
|
+
rows.append({'source': source, 'session_id': session,
|
|
99
|
+
'observed_tokens': state['observed_tokens'],
|
|
100
|
+
'unique_event_count': state['unique_event_count'],
|
|
101
|
+
'reasons': sorted(state['reasons'])})
|
|
102
|
+
observed = sum(known) if known else None
|
|
103
|
+
if observed is not None and observed > MAX_COUNTER:
|
|
104
|
+
raise ValueError('aggregate observed counter exceeds limit')
|
|
105
|
+
return {'schema_version': 1, 'mode': 'source_projection', 'execution_enabled': False,
|
|
106
|
+
'streams': rows, 'observed_tokens': observed, 'total_tokens': None,
|
|
107
|
+
'complete': False, 'reasons': sorted(reasons)}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Pure refusal callback for a disabled runner, not an operational SDK adapter.
|
|
2
|
+
|
|
3
|
+
Nothing constructs or configures an SDK client here. A future authorized adapter
|
|
4
|
+
must inject this handler explicitly instead of the SDK's default acceptance.
|
|
5
|
+
The pinned SDK bypasses callbacks for non-string wire methods and normalizes
|
|
6
|
+
non-dict params to None: direct helper checks are not wire validation. Callback
|
|
7
|
+
errors/cancel responses never prove that processes or allocations were released.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class UnsupportedServerRequest(ValueError):
|
|
12
|
+
"""The disabled runner has no supported response for this direct request."""
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def reject_server_request(method: str, params: dict | None) -> dict:
|
|
16
|
+
"""Return only fixed refusals; never inspect payloads or call into a runtime."""
|
|
17
|
+
if type(method) is not str or (params is not None and type(params) is not dict):
|
|
18
|
+
raise UnsupportedServerRequest('Unsupported server request while runner execution is disabled.')
|
|
19
|
+
if method in ('item/commandExecution/requestApproval', 'item/fileChange/requestApproval'):
|
|
20
|
+
return {'decision': 'cancel'}
|
|
21
|
+
if method == 'item/tool/call':
|
|
22
|
+
return {'success': False, 'contentItems': [
|
|
23
|
+
{'type': 'inputText', 'text': 'Runner execution is disabled.'}]}
|
|
24
|
+
raise UnsupportedServerRequest('Unsupported server request while runner execution is disabled.')
|