@cordfuse/politik 0.5.0 → 0.6.0
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.
- package/EXECUTION.md +86 -83
- package/POLITIK-ARCHITECTURE.md +111 -176
- package/PROTOCOLS.md +120 -325
- package/README.md +130 -188
- package/RESEARCH.md +142 -438
- package/RUNTIME.md +253 -261
- package/docs/adr/0001-chamber-transport.md +2 -0
- package/docs/adr/0002-charter-schema.md +2 -0
- package/docs/adr/0003-state-json-schema.md +2 -0
- package/docs/adr/0004-motion-enactment.md +2 -0
- package/docs/adr/0005-hansard-format.md +2 -0
- package/docs/adr/0006-protocol-behavioral-enforcement.md +2 -0
- package/docs/adr/0007-protocol-mechanics.md +2 -0
- package/docs/adr/0008-session-storage.md +2 -0
- package/docs/adr/0009-match-primitive.md +2 -0
- package/docs/adr/0010-operator-interface.md +2 -0
- package/docs/adr/0011-shared-sessions.md +2 -0
- package/docs/adr/0012-plain-vocabulary.md +68 -0
- package/docs/adr/0013-rule-defined-protocols.md +89 -0
- package/package.json +1 -1
- package/protocols/CONTRIBUTING.md +47 -87
- package/protocols/adversarial-review.yml +19 -0
- package/protocols/elimination-rounds.yml +18 -0
- package/protocols/majority-vote.yml +18 -0
- package/protocols/panel-review.yml +19 -0
- package/protocols/single-decider.yml +18 -0
- package/protocols/unanimous-vote.yml +17 -0
- package/src/actors.ts +124 -100
- package/src/agents.ts +31 -22
- package/src/ballot.ts +747 -0
- package/src/canon.ts +23 -10
- package/src/capability.ts +16 -99
- package/src/charter.ts +41 -34
- package/src/cli.ts +535 -480
- package/src/{prorogation.ts → closing.ts} +43 -43
- package/src/conflict.ts +14 -14
- package/src/containment.ts +11 -11
- package/src/doctor.ts +1 -1
- package/src/election.ts +4 -4
- package/src/envelope.ts +3 -3
- package/src/escalation.ts +44 -44
- package/src/fault.ts +8 -8
- package/src/federation.ts +14 -14
- package/src/git.ts +17 -17
- package/src/heartbeat.ts +32 -32
- package/src/index.ts +5 -5
- package/src/init.ts +66 -65
- package/src/integrity.ts +30 -30
- package/src/ledger.ts +3 -3
- package/src/{hansard.ts → log.ts} +20 -20
- package/src/{crisis.ts → misconduct.ts} +70 -70
- package/src/operator.ts +5 -5
- package/src/pending.ts +9 -9
- package/src/projection.ts +30 -30
- package/src/protocol-sdk.ts +12 -121
- package/src/protocol.ts +8 -78
- package/src/providers/github.ts +12 -12
- package/src/quorum.ts +7 -7
- package/src/remote.ts +1 -1
- package/src/runner.ts +71 -55
- package/src/scm.ts +14 -14
- package/src/spawn.ts +4 -4
- package/src/standings.ts +13 -13
- package/src/state.ts +6 -6
- package/src/templates/session.ts +448 -0
- package/src/tournament.ts +20 -20
- package/src/transport.ts +4 -4
- package/src/tree.ts +16 -16
- package/protocols/adversarial-collaboration.yml +0 -28
- package/protocols/corporate.yml +0 -35
- package/protocols/elimination-tournament.yml +0 -41
- package/protocols/emergency-response-ics.yml +0 -27
- package/protocols/jury-deliberation.yml +0 -32
- package/protocols/monarchy.yml +0 -31
- package/protocols/parliamentary.yml +0 -66
- package/protocols/peer-review.yml +0 -44
- package/protocols/republic.yml +0 -36
- package/protocols/scrum.yml +0 -87
- package/protocols/socialism-collective.yml +0 -31
- package/protocols/solo.yml +0 -32
- package/src/division.ts +0 -609
- package/src/templates/parliamentary.ts +0 -581
package/README.md
CHANGED
|
@@ -5,58 +5,50 @@
|
|
|
5
5
|
|
|
6
6
|
**A governed multi-agent framework built on git.**
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Teams of AI agents — and the people working with them — make decisions under a
|
|
9
|
+
written rulebook. Every decision is recorded, attributed and costed. A human owner
|
|
10
|
+
has the final say. The git repository is the session.
|
|
9
11
|
|
|
10
12
|
---
|
|
11
13
|
|
|
12
|
-
## The
|
|
14
|
+
## The problem
|
|
13
15
|
|
|
14
16
|
Multi-agent AI coordination today is:
|
|
15
17
|
|
|
16
|
-
- **Ungoverned** — agents act without rules, quorum
|
|
17
|
-
- **Unrecorded** — no
|
|
18
|
-
- **Uncosted** — no per-decision
|
|
19
|
-
- **Single-machine** — no
|
|
20
|
-
- **Human-absent** — humans
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- A **
|
|
31
|
-
-
|
|
32
|
-
- **
|
|
33
|
-
-
|
|
34
|
-
- **Pluggable governance protocols** translate the framework to any industry vocabulary
|
|
35
|
-
- **A governed tree** — sessions nest into an Org → Team → Ticket hierarchy in one repository; `politik registry` reports the state of every node
|
|
36
|
-
- **Not a single machine** — a session is shared through any git remote; people and agents on different machines act on it, every act syncs, and the Hansard never needs a manual merge
|
|
37
|
-
- **No new infrastructure required** — git already built it
|
|
38
|
-
|
|
39
|
-
Nobody connected these pieces this way before.
|
|
18
|
+
- **Ungoverned** — agents act without rules, quorum or accountability
|
|
19
|
+
- **Unrecorded** — no permanent record of who decided what, and why
|
|
20
|
+
- **Uncosted** — no per-decision account of time, tokens or dollars
|
|
21
|
+
- **Single-machine** — no way for agents and people on different machines to share a session
|
|
22
|
+
- **Human-absent** — humans watch; they do not decide
|
|
23
|
+
|
|
24
|
+
## What Politik does
|
|
25
|
+
|
|
26
|
+
- A **human owner** sets the rules and makes the final calls, working through
|
|
27
|
+
whichever AI harness they already use — Claude Code, Codex, agy, opencode — and
|
|
28
|
+
confirming every permanent act themselves.
|
|
29
|
+
- **Agents** are stateless CLI workers: seated for one turn, then disposed.
|
|
30
|
+
- A **git repository is the session** — rules, log, state and history in one.
|
|
31
|
+
- **Six protocols**, each a different decision rule the engine enforces (below).
|
|
32
|
+
- **A permanent log** of every act, and a **ledger** of what each act cost.
|
|
33
|
+
- **Shared sessions** through any git remote, with no manual merging.
|
|
34
|
+
- **Nested sessions** — an Org → Team → Ticket tree in one repository.
|
|
35
|
+
- **No new infrastructure** — git already built it.
|
|
40
36
|
|
|
41
37
|
---
|
|
42
38
|
|
|
43
39
|
## Install
|
|
44
40
|
|
|
45
|
-
Politik runs on Node with
|
|
46
|
-
|
|
41
|
+
Politik runs on Node 20+ with no build step (TypeScript, run directly via `tsx`).
|
|
42
|
+
Requires git.
|
|
47
43
|
|
|
48
44
|
```sh
|
|
49
45
|
npm install -g @cordfuse/politik
|
|
50
|
-
politik doctor
|
|
46
|
+
politik doctor # can this host run a session, and with which agents?
|
|
51
47
|
```
|
|
52
48
|
|
|
53
|
-
Or run without installing:
|
|
49
|
+
Or run without installing: `npx @cordfuse/politik doctor`.
|
|
54
50
|
|
|
55
|
-
|
|
56
|
-
npx @cordfuse/politik doctor
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
From source, if you want to hack on it:
|
|
51
|
+
From source:
|
|
60
52
|
|
|
61
53
|
```sh
|
|
62
54
|
git clone git@github.com:cordfuse/politik.git
|
|
@@ -66,8 +58,8 @@ node bin/politik.js doctor
|
|
|
66
58
|
|
|
67
59
|
## A first session
|
|
68
60
|
|
|
69
|
-
**Bring your own AI harness** (ADR-0010). Create the folder, open
|
|
70
|
-
|
|
61
|
+
**Bring your own AI harness** (ADR-0010). Create the folder, open your harness in
|
|
62
|
+
it, and talk to it in plain language:
|
|
71
63
|
|
|
72
64
|
```sh
|
|
73
65
|
politik new q4-planning
|
|
@@ -75,205 +67,155 @@ cd q4-planning
|
|
|
75
67
|
claude # or codex, agy, opencode…
|
|
76
68
|
```
|
|
77
69
|
|
|
78
|
-
The harness walks you through choosing a protocol,
|
|
79
|
-
|
|
80
|
-
is free; permanent acts are not. `
|
|
81
|
-
harness or a script are **staged**, and only you can
|
|
82
|
-
terminal:
|
|
70
|
+
The harness walks you through choosing a protocol, editing the Charter (the
|
|
71
|
+
session's rules) and opening the session, then turns your requests into `politik`
|
|
72
|
+
commands. Reading is free; permanent acts are not. `enact`, `rule` and `close`
|
|
73
|
+
requested by a harness or a script are **staged**, and only you can carry them
|
|
74
|
+
out, in your own terminal:
|
|
83
75
|
|
|
84
76
|
```sh
|
|
85
77
|
politik pending # what is waiting for you
|
|
86
|
-
politik confirm
|
|
87
|
-
politik reject
|
|
78
|
+
politik confirm enact-3f9a2c # shows the act, asks you to type its id, then records it
|
|
79
|
+
politik reject enact-3f9a2c # or discard it
|
|
88
80
|
```
|
|
89
81
|
|
|
90
|
-
Every commit records how it was requested
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
they are restored.
|
|
82
|
+
Every commit records how it was requested, and for a confirmed act, that the owner
|
|
83
|
+
confirmed it. The session's instruction files are sealed when it opens: if an agent
|
|
84
|
+
rewrites them, governance stops until they are restored.
|
|
94
85
|
|
|
95
86
|
### Sharing a session across machines
|
|
96
87
|
|
|
97
88
|
A session can be shared through any git remote — GitHub, a NAS, anything git can
|
|
98
|
-
reach (ADR-0011)
|
|
99
|
-
machines can all act on it:
|
|
89
|
+
reach (ADR-0011):
|
|
100
90
|
|
|
101
91
|
```sh
|
|
102
|
-
politik remote git@github.com:acme/q4-planning.git
|
|
103
|
-
politik join git@github.com:acme/q4-planning.git q4 --as ada
|
|
92
|
+
politik remote git@github.com:acme/q4-planning.git # the owner shares it
|
|
93
|
+
politik join git@github.com:acme/q4-planning.git q4 --as ada # someone else joins
|
|
104
94
|
```
|
|
105
95
|
|
|
106
|
-
Every act fetches the latest
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
confirmed act is signed with the confirming person's git key.
|
|
96
|
+
Every act fetches the latest log first and pushes after; if someone else acted in
|
|
97
|
+
between, Politik replays the act on top of theirs, so the log never needs a manual
|
|
98
|
+
merge. Offline, governance refuses and reads still work. Staged acts are shared
|
|
99
|
+
too, and only the seat an act names can confirm it. For proof rather than names,
|
|
100
|
+
set `signed_confirmations: required` in the Charter.
|
|
112
101
|
|
|
113
102
|
### By hand, or from a script
|
|
114
103
|
|
|
115
|
-
Every command
|
|
116
|
-
Hansard — the immutable record.
|
|
104
|
+
Every command is a git commit; `git log` in the session directory is the history.
|
|
117
105
|
|
|
118
106
|
```sh
|
|
119
|
-
politik scaffold --dir ./
|
|
120
|
-
politik init --dir ./
|
|
121
|
-
politik
|
|
122
|
-
politik
|
|
123
|
-
politik
|
|
124
|
-
politik
|
|
125
|
-
politik
|
|
107
|
+
politik scaffold --dir ./s --quorum 2 # write a Charter to edit
|
|
108
|
+
politik init --dir ./s --charter ./s/CHARTER.md --owner you
|
|
109
|
+
politik vote open --dir ./s --motion adopt-standard --actor you --role AUTHORITY
|
|
110
|
+
politik vote cast --dir ./s --motion adopt-standard --actor ada --role MEMBER --vote YES
|
|
111
|
+
politik vote cast --dir ./s --motion adopt-standard --actor bo --role MEMBER --vote YES
|
|
112
|
+
politik vote tally --dir ./s --motion adopt-standard # → Motion CARRIED
|
|
113
|
+
politik enact --dir ./s --motion adopt-standard --actor you --role AUTHORITY
|
|
114
|
+
politik log --dir ./s # every act so far
|
|
115
|
+
politik close --dir ./s --actor you --role AUTHORITY
|
|
126
116
|
```
|
|
127
117
|
|
|
128
|
-
Run at your own terminal, `
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
switched off later.
|
|
118
|
+
Run at your own terminal, `enact` asks you to type `enact` to confirm. For a fully
|
|
119
|
+
scripted session (CI, tests), scaffold with `--owner-confirmation off` — the
|
|
120
|
+
setting lives in the Charter, which is sealed when the session opens, so it cannot
|
|
121
|
+
be switched off later.
|
|
132
122
|
|
|
133
|
-
Seat a real agent to do the work
|
|
123
|
+
Seat a real agent to do the work:
|
|
134
124
|
|
|
135
125
|
```sh
|
|
136
|
-
politik run --dir ./
|
|
137
|
-
--task "Draft and commit a
|
|
126
|
+
politik run --dir ./s --agent claude-code --actor ada --role OPERATOR \
|
|
127
|
+
--task "Draft and commit a motion to adopt trunk-based development."
|
|
138
128
|
```
|
|
139
129
|
|
|
140
|
-
The
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
access to the session's `.git` and read access to the `politik` CLI — nothing else.
|
|
130
|
+
The turn is captured, its cost measured and the result recorded (`politik ledger`).
|
|
131
|
+
An agent acts through the CLI during its turn — casting a vote, vetoing, raising an
|
|
132
|
+
escalation — and is told exactly which verbs its role holds. Editing `LOG.md` or
|
|
133
|
+
`STATE.json` by hand is not acting: it is recorded as a Charter violation and the
|
|
134
|
+
log is restored. Harnesses that sandbox their own shell (agy, Codex) are granted,
|
|
135
|
+
for that turn only, write access to the session's `.git` — nothing else.
|
|
147
136
|
|
|
148
137
|
---
|
|
149
138
|
|
|
150
|
-
##
|
|
151
|
-
|
|
152
|
-
### CANON — The Primitive Layer
|
|
153
|
-
|
|
154
|
-
The engine speaks in canonical terms. Protocols translate them to domain vocabulary.
|
|
155
|
-
|
|
156
|
-
**Roles:** `AUTHORITY` (human only) · `DELEGATE` · `OPERATOR` · `MEMBER` · `OBSERVER`
|
|
157
|
-
|
|
158
|
-
**Primitives:** `SESSION` · `PROCEEDING` · `CHARTER` · `RECORD` · `MOTION` · `DIVISION` · `MATCH` · `ESCALATION` · `SUSPENSION` · `QUORUM` · `CONFLICT` · `DEADLOCK`
|
|
159
|
-
|
|
160
|
-
**Verbs:** `READ` · `WRITE` · `VOTE` · `ASSENT` · `ESCALATE` · `PROMOTE` · `DEMOTE` · `HIRE` · `FIRE` · `SUSPEND` · `EXPEL` · `VETO` · `SPAWN` · `DISSOLVE` · `EXIT`
|
|
161
|
-
|
|
162
|
-
**States:** `CONVENED` · `SUSPENDED` · `PROROGUED` · `STALE` · `INVALID`
|
|
163
|
-
|
|
164
|
-
### The Session Repo
|
|
165
|
-
|
|
166
|
-
The git repository IS the Politik session. That much is always true — Charter,
|
|
167
|
-
Hansard, state and audit trail all live there.
|
|
168
|
-
|
|
169
|
-
An **SCM provider is optional**. Configure one and governance acts are
|
|
170
|
-
additionally projected onto the platform; without one a session runs complete
|
|
171
|
-
and correct on git alone. *Run local, run free.*
|
|
172
|
-
|
|
173
|
-
| GitHub feature (when hosted) | Politik primitive |
|
|
174
|
-
|---|---|
|
|
175
|
-
| Repository | Session |
|
|
176
|
-
| CHARTER.md | Standing Orders |
|
|
177
|
-
| Pull Request | Motion |
|
|
178
|
-
| PR Review | Division (vote) |
|
|
179
|
-
| Issue | Escalation |
|
|
180
|
-
| GitHub Actions | Clerk automation |
|
|
181
|
-
| Repo access | Taking a Seat (`politik join --as <handle>`) |
|
|
182
|
-
| git history | Hansard (immutable record) |
|
|
183
|
-
|
|
184
|
-
### The Politik Tree
|
|
139
|
+
## Protocols
|
|
185
140
|
|
|
186
|
-
A
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
traversal over that one working tree**, not cross-repository orchestration: no new
|
|
190
|
-
service, no registry server. `politik registry` walks the tree and reports every
|
|
191
|
-
session's state and cost with a roll-up; `politik cascade` flags a fault repeating
|
|
192
|
-
across sibling sessions. `politik init --standalone` opts a node out into its own
|
|
193
|
-
repository when it needs per-session pull requests or a hard permission boundary.
|
|
141
|
+
A protocol is a set of rules: how a vote decides, who can remove an actor, and when
|
|
142
|
+
the session ends. Every protocol uses the same plain words (ADR-0012), so the rules
|
|
143
|
+
are the only difference between them (ADR-0013).
|
|
194
144
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
### Governance Protocols
|
|
210
|
-
|
|
211
|
-
**Twelve reference protocols ship** — Parliamentary, Republic, Monarchy, Socialism (political archetypes), Jury Deliberation, Elimination Tournament, Emergency Response (ICS), Corporate, Scrum / Agile, Peer Review, Adversarial Collaboration, and Solo (single-lead) — spanning constitutional, authoritarian and darwinist modes. Each is a vocabulary translation **plus** a composition of behavioral mechanics — how a decision resolves (majority · supermajority · unanimity), how an actor exits (voted out · elimination · none), and when a session ends (objective · last-standing · verdict) — on top of CANON. You compose your own for anything else; the framework is the product, these are exemplars. Parliamentary is protocol #1, not a privileged mode, and stays the default. **Scrum / Agile** ships as the baseline the others are measured against — the process most software teams already run, available with `--protocol scrum`: the Product Owner accepts, Developers table work and review it in a Sprint Review, and the Working Agreement is fixed for the Sprint. Each protocol's vocabulary and mechanics are documented in [PROTOCOLS.md](PROTOCOLS.md).
|
|
212
|
-
|
|
213
|
-
Competitive protocols run on the `MATCH` primitive — a real 1v1 contest that a Motion-and-vote Division cannot model. `politik pair` generates a round (Swiss, round-robin, or single-elimination), `politik match report` settles a result, and `politik standings` scores the field from the record.
|
|
214
|
-
|
|
215
|
-
### Hansard and LEDGER
|
|
216
|
-
|
|
217
|
-
**Hansard** — append-only session record. Every motion, vote, escalation, and commit. Attributed, timestamped, immutable. Cannot be edited. Cannot be gamed.
|
|
218
|
-
|
|
219
|
-
Because the record is the defence against bad faith, `politik integrity` reads the Hansard for the signatures of coercion — a coerced exit, a serial "voluntold" — and surfaces them to the Speaker. Detect and report; it never auto-punishes. The record catches what a naive log would hide.
|
|
220
|
-
|
|
221
|
-
**LEDGER** — cost accounting per act: elapsed time, token count, dollar cost, model. Every governance act writes a row; agent turns carry measured spend, and the human-driven acts (division, assent, escalation, ruling) carry `unmeasured` cost, so the ledger is a complete account of a session. No story points.
|
|
222
|
-
|
|
223
|
-
Measured, never estimated — and the distinction is enforced. An agent that reports usage produces exact figures; one that does not is recorded as `unmeasured`, never as `$0.00`, and totals report unmeasured rows separately rather than folding them in. Five CLI agents report usage today — Claude Code, Codex, Gemini, OpenCode and Qwen; the rest record elapsed time and mark cost `unmeasured`.
|
|
145
|
+
| Protocol | How it decides | Real-world equivalents |
|
|
146
|
+
|---|---|---|
|
|
147
|
+
| `majority-vote` (default) | A simple majority carries; members are removed only by vote | Committees, boards, open-source maintainers merging what the team approves |
|
|
148
|
+
| `unanimous-vote` | Everyone must agree; nobody can be removed; the session ends at its verdict | Criminal juries, consensus decision-making |
|
|
149
|
+
| `single-decider` | No vote: the owner decides and removes people alone; no appeals | Scrum's Product Owner, a "benevolent dictator" maintainer, an incident commander |
|
|
150
|
+
| `elimination-rounds` | The losing side of each vote is knocked out; last one standing; rules locked; no appeals | Single-elimination tournaments, exhaustive ballots |
|
|
151
|
+
| `panel-review` | Panel majority; panel members hold a veto; members can be voted off; ends at its verdict | Peer review, grant panels, required code reviewers |
|
|
152
|
+
| `adversarial-review` | Proposing (OPERATOR) and opposing (DELEGATE) sides must each accept; rules locked | Adversarial collaboration in science, bilateral negotiation |
|
|
153
|
+
|
|
154
|
+
A test runs the same scenario under every protocol and fails if any two behave
|
|
155
|
+
alike. Details: [PROTOCOLS.md](PROTOCOLS.md). Competitive sessions can also use
|
|
156
|
+
1v1 matches: `politik pair` (Swiss, round-robin, single-elimination),
|
|
157
|
+
`politik match report`, `politik standings`.
|
|
224
158
|
|
|
225
159
|
---
|
|
226
160
|
|
|
227
|
-
##
|
|
228
|
-
|
|
229
|
-
Game theory is not a protocol in Politik. It is the analytical layer that **observes and describes** what emerges from sessions that are already running.
|
|
161
|
+
## The log and the ledger
|
|
230
162
|
|
|
231
|
-
|
|
163
|
+
**The log** (`LOG.md`) is the append-only record of the session: every motion,
|
|
164
|
+
vote, escalation and ruling, attributed and timestamped. Nobody edits it — every
|
|
165
|
+
entry is written by a `politik` command and committed.
|
|
232
166
|
|
|
233
|
-
|
|
167
|
+
Because the log is the defence against bad faith, `politik integrity` reads it for
|
|
168
|
+
signs of coercion — a coerced exit, a member pushed out again and again — and
|
|
169
|
+
reports them to the owner. It reports; it never punishes.
|
|
234
170
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
| Jury Deliberation | Unanimity / holdout game | Convergence to consensus, or a hung result |
|
|
240
|
-
| Elimination Tournament | All-pay elimination | Aggressive early, conservative late |
|
|
241
|
-
| Peer Review | Multi-player review, information asymmetry | Honest assessment when anonymity is credible |
|
|
242
|
-
| Adversarial Collaboration | Two-player, pre-committed | Maximum honest disclosure |
|
|
243
|
-
| Scrum / Agile | Cooperative, shared payoff, single acceptor | Consensus-seeking, slow convergence |
|
|
244
|
-
|
|
245
|
-
**The research question** (not yet a built feature — see [RESEARCH.md](RESEARCH.md)): do AI agents converge on Nash Equilibrium predictions when governed by protocols that formally instantiate known game structures? If yes — protocol selection becomes a mechanism design problem. If no — why do agents deviate? Either result is publishable.
|
|
171
|
+
**The ledger** (`LEDGER.md`) records what each act cost: elapsed time, tokens,
|
|
172
|
+
dollars, model. Measured, never estimated: an agent that reports usage gives exact
|
|
173
|
+
figures; one that does not is recorded as `unmeasured`, never as `$0.00`. Claude
|
|
174
|
+
Code, Codex, Gemini, OpenCode and Qwen report usage today.
|
|
246
175
|
|
|
247
176
|
---
|
|
248
177
|
|
|
249
|
-
##
|
|
178
|
+
## How it fits together
|
|
250
179
|
|
|
251
|
-
|
|
180
|
+
**The session repository.** The git repository is the session: Charter, log, state
|
|
181
|
+
and history. An SCM provider is optional — point Politik at a GitHub repository
|
|
182
|
+
and acts are also projected onto it (a motion becomes a pull request, a vote a
|
|
183
|
+
review request, an escalation an issue, enactment a merge). Without one, a session
|
|
184
|
+
is complete and correct on git alone.
|
|
252
185
|
|
|
253
|
-
|
|
186
|
+
**The tree.** A session is a standalone repository or a node in a tree — an Org →
|
|
187
|
+
Team → Ticket hierarchy as nested directories in one repository, each inheriting
|
|
188
|
+
its parent's Charter. `politik registry` reports every session's state and cost;
|
|
189
|
+
`politik cascade` flags a fault repeating across sibling sessions.
|
|
254
190
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
| Developer types ticket title | Motion title in Hansard |
|
|
258
|
-
| Developer estimates story points | LEDGER — exact elapsed, tokens, dollars |
|
|
259
|
-
| Someone manually assigns reviewer | Division record — attributed votes |
|
|
260
|
-
| Developer links commits manually | Every governance act is its own commit — the git history is the audit trail |
|
|
261
|
-
| Developer manually closes ticket | Prorogation — one command, with the terminating trigger recorded |
|
|
262
|
-
| Cost tracking is finance's estimate | LEDGER — actual cost per decision |
|
|
191
|
+
**Agents** are stateless: spawned for a turn, given the Charter and the recent log,
|
|
192
|
+
recorded, disposed. State lives in git.
|
|
263
193
|
|
|
264
|
-
|
|
194
|
+
**Roles:** `AUTHORITY` (the owner, always human) · `DELEGATE` · `OPERATOR` · `MEMBER` · `OBSERVER`.
|
|
195
|
+
Architecture: [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) and [RUNTIME.md](RUNTIME.md).
|
|
265
196
|
|
|
266
|
-
|
|
197
|
+
---
|
|
267
198
|
|
|
268
|
-
|
|
199
|
+
## Research
|
|
269
200
|
|
|
270
|
-
|
|
201
|
+
Politik is also a research instrument. The question: **does the decision rule a
|
|
202
|
+
team of AI agents works under change how well it does?** — tested as specific
|
|
203
|
+
hypotheses, led by one from social choice theory: Condorcet's jury theorem says a
|
|
204
|
+
majority gets more accurate as voters are added, *if* they vote independently. AI
|
|
205
|
+
agents on the same model share training and blind spots. Does adding agents still
|
|
206
|
+
help, and does mixing vendors restore the gain? See [RESEARCH.md](RESEARCH.md).
|
|
271
207
|
|
|
272
|
-
|
|
208
|
+
**The thesis changed in v0.6.0.** Earlier versions argued that machine actors are
|
|
209
|
+
free of human vices (the "Human Flaw" thesis), compared twelve protocols with their
|
|
210
|
+
own vocabularies, and framed the analysis around Nash equilibria. That framing was
|
|
211
|
+
dropped: it assumed what should be tested, the protocols mostly behaved alike, and
|
|
212
|
+
agents with no payoffs have no equilibria to find. Earlier versions remain archived
|
|
213
|
+
under their own Zenodo version DOIs (v0.4.0, v0.5.0); they are not the current
|
|
214
|
+
thesis. The concept DOI below always resolves to the latest version.
|
|
273
215
|
|
|
274
216
|
---
|
|
275
217
|
|
|
276
|
-
**Attribution:** Steve Krisjanovs, Cordfuse
|
|
277
|
-
**
|
|
278
|
-
**DOI:** [10.5281/zenodo.19490358](https://doi.org/10.5281/zenodo.19490358) (concept DOI — always resolves to the latest version)
|
|
218
|
+
**Attribution:** Steve Krisjanovs, Cordfuse
|
|
219
|
+
**Docs:** [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) · [PROTOCOLS.md](PROTOCOLS.md) · [RUNTIME.md](RUNTIME.md) · [RESEARCH.md](RESEARCH.md) · [EXECUTION.md](EXECUTION.md) · [docs/adr/](docs/adr/)
|
|
220
|
+
**DOI:** [10.5281/zenodo.19490358](https://doi.org/10.5281/zenodo.19490358) (concept DOI — always resolves to the latest version)
|
|
279
221
|
**License:** MIT
|