regent-cli 0.2.0__tar.gz → 0.5.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.
- regent_cli-0.5.0/PKG-INFO +77 -0
- regent_cli-0.5.0/README.md +61 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/pyproject.toml +1 -1
- {regent_cli-0.2.0 → regent_cli-0.5.0}/src/regent/__init__.py +1 -1
- regent_cli-0.5.0/src/regent/activity.py +567 -0
- regent_cli-0.5.0/src/regent/activity_cli.py +300 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/src/regent/cli.py +17 -7
- regent_cli-0.5.0/src/regent/conduction/__init__.py +7 -0
- regent_cli-0.5.0/src/regent/conduction/consult.py +98 -0
- regent_cli-0.5.0/src/regent/conduction/evidence.py +101 -0
- regent_cli-0.5.0/src/regent/conduction/gate.py +71 -0
- regent_cli-0.5.0/src/regent/conduction/process.py +44 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/src/regent/doctor.py +18 -0
- regent_cli-0.5.0/src/regent/initcmd.py +265 -0
- regent_cli-0.5.0/src/regent/protocol/__init__.py +37 -0
- regent_cli-0.5.0/src/regent/protocol/audit.py +63 -0
- regent_cli-0.5.0/src/regent/protocol/control.py +383 -0
- regent_cli-0.5.0/src/regent/protocol/lock.py +234 -0
- regent_cli-0.5.0/src/regent/protocol/stop.py +153 -0
- regent_cli-0.5.0/src/regent/templates/MANIFEST.json +18 -0
- regent_cli-0.5.0/src/regent/templates/skills/regent/SKILL.md +100 -0
- regent_cli-0.5.0/src/regent/templates/skills/regent-stop/SKILL.md +40 -0
- regent_cli-0.5.0/src/regent_cli.egg-info/PKG-INFO +77 -0
- regent_cli-0.5.0/src/regent_cli.egg-info/SOURCES.txt +41 -0
- regent_cli-0.5.0/tests/test_activity.py +245 -0
- regent_cli-0.5.0/tests/test_activity_cli.py +172 -0
- regent_cli-0.5.0/tests/test_choreography.py +83 -0
- regent_cli-0.5.0/tests/test_consult.py +180 -0
- regent_cli-0.5.0/tests/test_control.py +226 -0
- regent_cli-0.5.0/tests/test_gate.py +108 -0
- regent_cli-0.5.0/tests/test_init_upgrade.py +112 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/tests/test_initcmd.py +1 -0
- regent_cli-0.5.0/tests/test_lock.py +213 -0
- regent_cli-0.5.0/tests/test_protocol_facade.py +30 -0
- regent_cli-0.5.0/tests/test_skills_v1.py +164 -0
- regent_cli-0.5.0/tests/test_step06_fixes.py +289 -0
- regent_cli-0.5.0/tests/test_stop.py +108 -0
- regent_cli-0.2.0/PKG-INFO +0 -52
- regent_cli-0.2.0/README.md +0 -36
- regent_cli-0.2.0/src/regent/initcmd.py +0 -136
- regent_cli-0.2.0/src/regent/templates/skills/regent/SKILL.md +0 -119
- regent_cli-0.2.0/src/regent/templates/skills/regent-stop/SKILL.md +0 -32
- regent_cli-0.2.0/src/regent_cli.egg-info/PKG-INFO +0 -52
- regent_cli-0.2.0/src/regent_cli.egg-info/SOURCES.txt +0 -16
- {regent_cli-0.2.0 → regent_cli-0.5.0}/LICENSE +0 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/setup.cfg +0 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/src/regent_cli.egg-info/dependency_links.txt +0 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/src/regent_cli.egg-info/entry_points.txt +0 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/src/regent_cli.egg-info/top_level.txt +0 -0
- {regent_cli-0.2.0 → regent_cli-0.5.0}/tests/test_doctor.py +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: regent-cli
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Autonomous conduction and mediated adversarial deliberation between AI agents, pluggable into any project.
|
|
5
|
+
Author-email: Flavio Alvim <flavioalvim@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Repository, https://github.com/flavioalvim/regent
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# regent
|
|
18
|
+
|
|
19
|
+
Autonomous conduction and mediated adversarial deliberation between AI agents, pluggable
|
|
20
|
+
into any project.
|
|
21
|
+
|
|
22
|
+
**regent** governs turns between agents (Claude, Codex, human mediators) under a frozen
|
|
23
|
+
protocol: atomic turn mutex, CAS-versioned state, deliberation rounds with versioned
|
|
24
|
+
acceptances, and a conduction daemon that executes production batches with a confined agent,
|
|
25
|
+
test gates and evidence proof.
|
|
26
|
+
|
|
27
|
+
Extracted from the tool proven end-to-end in the ArtNFT project (IMP-003: first product
|
|
28
|
+
batch fully conducted by the daemon, deliberated, accepted and deployed to production).
|
|
29
|
+
|
|
30
|
+
- Requirements: [`docs/PRD.md`](docs/PRD.md)
|
|
31
|
+
- Extraction scope and decisions: [`docs/ESCOPO.md`](docs/ESCOPO.md) (PT-BR, pre-rename)
|
|
32
|
+
- Deliberation rounds: [`docs/brainstorm/`](docs/brainstorm/) (mediator's language, PT-BR)
|
|
33
|
+
- Status: **pre-extraction** (scope closed 2026-07-20; code not yet migrated)
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pip install <path-to-this-repo> # package: regent-cli; CLI: regent (not on PyPI yet)
|
|
39
|
+
cd <your-project>
|
|
40
|
+
regent init # seeds .regent/ + .claude/skills symlinks (atomic, idempotent)
|
|
41
|
+
regent doctor # checks executor (claude) and advisor (codex) CLIs
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Then open a Claude Code session in the project — `/regent` and `/regent-stop` are available
|
|
45
|
+
(`/regent brainstorm "<question>"` opens the first round). The v1 skills are
|
|
46
|
+
**control-backed**: activity state lives in `.regent/control.json` and is driven through
|
|
47
|
+
the JSON subcommands — `regent status` (control + lock + the executable control×files
|
|
48
|
+
matrix as `workspace.verdict`), `regent activity
|
|
49
|
+
start|resume|suspend|conclude|heartbeat|takeover`, `regent stop request|check`. Hosts
|
|
50
|
+
seeded by older versions upgrade automatically on `regent init` (known-version manifest;
|
|
51
|
+
unknown local edits are preserved as conflicts). The advisor requires the `codex` CLI. Conduction
|
|
52
|
+
phase 1 mechanizes the two most error-prone sub-steps: `regent advisor consult
|
|
53
|
+
--prompt-file … --artifact … --linkage …` (read-only sandboxed consultation with the
|
|
54
|
+
REQ-003 §5 evidence pair generated by the command, fail-closed verdict expectation) and
|
|
55
|
+
`regent gate run --command … --declared-in <plan> --artifact … --linkage …` (verbatim
|
|
56
|
+
provenance check, process-group-killing timeout, integral output preserved).
|
|
57
|
+
|
|
58
|
+
Development: `PYTHONPATH=src python3 -m unittest discover -s tests`; packaging gate:
|
|
59
|
+
`bash scripts/gate-package.sh`. Canonical skill content lives in `src/regent/templates/`
|
|
60
|
+
(ships inside the wheel); the repo's own `.regent/skills/` symlinks into it (dogfood
|
|
61
|
+
without duplication).
|
|
62
|
+
|
|
63
|
+
## Protocol layer
|
|
64
|
+
|
|
65
|
+
`regent.protocol` (PLAN-001) is the transactional foundation the conduction daemon will
|
|
66
|
+
drive: `ControlStore` (control.json with a real CAS — every mutation runs inside a
|
|
67
|
+
kernel-flock critical section, atomic AND durable publication with file+directory fsync),
|
|
68
|
+
`TurnLock` (executor-only turn ownership by uuid4 token; the whole lifecycle —
|
|
69
|
+
acquire/heartbeat/release/takeover — is serialized under a flock; takeover is graced,
|
|
70
|
+
audited, and rotates the control turn token BEFORE the new lock exists, aborting on
|
|
71
|
+
divergence), stop-request representation (`record_stop_request` /
|
|
72
|
+
`read_valid_stop_request` / `suspend_activity`, with activity/epoch/turn-token staleness
|
|
73
|
+
fencing) and `AuditLog` (flock-serialized, fsynced JSONL under
|
|
74
|
+
`.regent/protocol/audit.jsonl`). Dormant until the conduction phase wires it to the
|
|
75
|
+
skills; the v0 skills remain file-driven.
|
|
76
|
+
|
|
77
|
+
MIT License © 2026 Flavio Alvim.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# regent
|
|
2
|
+
|
|
3
|
+
Autonomous conduction and mediated adversarial deliberation between AI agents, pluggable
|
|
4
|
+
into any project.
|
|
5
|
+
|
|
6
|
+
**regent** governs turns between agents (Claude, Codex, human mediators) under a frozen
|
|
7
|
+
protocol: atomic turn mutex, CAS-versioned state, deliberation rounds with versioned
|
|
8
|
+
acceptances, and a conduction daemon that executes production batches with a confined agent,
|
|
9
|
+
test gates and evidence proof.
|
|
10
|
+
|
|
11
|
+
Extracted from the tool proven end-to-end in the ArtNFT project (IMP-003: first product
|
|
12
|
+
batch fully conducted by the daemon, deliberated, accepted and deployed to production).
|
|
13
|
+
|
|
14
|
+
- Requirements: [`docs/PRD.md`](docs/PRD.md)
|
|
15
|
+
- Extraction scope and decisions: [`docs/ESCOPO.md`](docs/ESCOPO.md) (PT-BR, pre-rename)
|
|
16
|
+
- Deliberation rounds: [`docs/brainstorm/`](docs/brainstorm/) (mediator's language, PT-BR)
|
|
17
|
+
- Status: **pre-extraction** (scope closed 2026-07-20; code not yet migrated)
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install <path-to-this-repo> # package: regent-cli; CLI: regent (not on PyPI yet)
|
|
23
|
+
cd <your-project>
|
|
24
|
+
regent init # seeds .regent/ + .claude/skills symlinks (atomic, idempotent)
|
|
25
|
+
regent doctor # checks executor (claude) and advisor (codex) CLIs
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Then open a Claude Code session in the project — `/regent` and `/regent-stop` are available
|
|
29
|
+
(`/regent brainstorm "<question>"` opens the first round). The v1 skills are
|
|
30
|
+
**control-backed**: activity state lives in `.regent/control.json` and is driven through
|
|
31
|
+
the JSON subcommands — `regent status` (control + lock + the executable control×files
|
|
32
|
+
matrix as `workspace.verdict`), `regent activity
|
|
33
|
+
start|resume|suspend|conclude|heartbeat|takeover`, `regent stop request|check`. Hosts
|
|
34
|
+
seeded by older versions upgrade automatically on `regent init` (known-version manifest;
|
|
35
|
+
unknown local edits are preserved as conflicts). The advisor requires the `codex` CLI. Conduction
|
|
36
|
+
phase 1 mechanizes the two most error-prone sub-steps: `regent advisor consult
|
|
37
|
+
--prompt-file … --artifact … --linkage …` (read-only sandboxed consultation with the
|
|
38
|
+
REQ-003 §5 evidence pair generated by the command, fail-closed verdict expectation) and
|
|
39
|
+
`regent gate run --command … --declared-in <plan> --artifact … --linkage …` (verbatim
|
|
40
|
+
provenance check, process-group-killing timeout, integral output preserved).
|
|
41
|
+
|
|
42
|
+
Development: `PYTHONPATH=src python3 -m unittest discover -s tests`; packaging gate:
|
|
43
|
+
`bash scripts/gate-package.sh`. Canonical skill content lives in `src/regent/templates/`
|
|
44
|
+
(ships inside the wheel); the repo's own `.regent/skills/` symlinks into it (dogfood
|
|
45
|
+
without duplication).
|
|
46
|
+
|
|
47
|
+
## Protocol layer
|
|
48
|
+
|
|
49
|
+
`regent.protocol` (PLAN-001) is the transactional foundation the conduction daemon will
|
|
50
|
+
drive: `ControlStore` (control.json with a real CAS — every mutation runs inside a
|
|
51
|
+
kernel-flock critical section, atomic AND durable publication with file+directory fsync),
|
|
52
|
+
`TurnLock` (executor-only turn ownership by uuid4 token; the whole lifecycle —
|
|
53
|
+
acquire/heartbeat/release/takeover — is serialized under a flock; takeover is graced,
|
|
54
|
+
audited, and rotates the control turn token BEFORE the new lock exists, aborting on
|
|
55
|
+
divergence), stop-request representation (`record_stop_request` /
|
|
56
|
+
`read_valid_stop_request` / `suspend_activity`, with activity/epoch/turn-token staleness
|
|
57
|
+
fencing) and `AuditLog` (flock-serialized, fsynced JSONL under
|
|
58
|
+
`.regent/protocol/audit.jsonl`). Dormant until the conduction phase wires it to the
|
|
59
|
+
skills; the v0 skills remain file-driven.
|
|
60
|
+
|
|
61
|
+
MIT License © 2026 Flavio Alvim.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "regent-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.5.0"
|
|
8
8
|
description = "Autonomous conduction and mediated adversarial deliberation between AI agents, pluggable into any project."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|