@cordfuse/politik 0.4.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 +90 -85
- package/POLITIK-ARCHITECTURE.md +111 -176
- package/PROTOCOLS.md +120 -289
- package/README.md +130 -177
- package/RESEARCH.md +142 -436
- 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 +64 -23
- 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 +541 -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 +21 -18
- 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 +134 -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/socialism-collective.yml +0 -31
- package/protocols/solo.yml +0 -32
- package/src/division.ts +0 -609
- package/src/templates/parliamentary.ts +0 -580
package/README.md
CHANGED
|
@@ -5,56 +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
|
-
- **A governed tree, not a single machine** — sessions nest into an Org → Team → Ticket hierarchy in one repository; `politik registry` reports the state of everything, across machines and teams
|
|
35
|
-
- **No new infrastructure required** — git already built it
|
|
36
|
-
|
|
37
|
-
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.
|
|
38
36
|
|
|
39
37
|
---
|
|
40
38
|
|
|
41
39
|
## Install
|
|
42
40
|
|
|
43
|
-
Politik runs on Node with
|
|
44
|
-
|
|
41
|
+
Politik runs on Node 20+ with no build step (TypeScript, run directly via `tsx`).
|
|
42
|
+
Requires git.
|
|
45
43
|
|
|
46
44
|
```sh
|
|
47
45
|
npm install -g @cordfuse/politik
|
|
48
|
-
politik doctor
|
|
46
|
+
politik doctor # can this host run a session, and with which agents?
|
|
49
47
|
```
|
|
50
48
|
|
|
51
|
-
Or run without installing:
|
|
52
|
-
|
|
53
|
-
```sh
|
|
54
|
-
npx @cordfuse/politik doctor
|
|
55
|
-
```
|
|
49
|
+
Or run without installing: `npx @cordfuse/politik doctor`.
|
|
56
50
|
|
|
57
|
-
From source
|
|
51
|
+
From source:
|
|
58
52
|
|
|
59
53
|
```sh
|
|
60
54
|
git clone git@github.com:cordfuse/politik.git
|
|
@@ -64,8 +58,8 @@ node bin/politik.js doctor
|
|
|
64
58
|
|
|
65
59
|
## A first session
|
|
66
60
|
|
|
67
|
-
**Bring your own AI harness** (ADR-0010). Create the folder, open
|
|
68
|
-
|
|
61
|
+
**Bring your own AI harness** (ADR-0010). Create the folder, open your harness in
|
|
62
|
+
it, and talk to it in plain language:
|
|
69
63
|
|
|
70
64
|
```sh
|
|
71
65
|
politik new q4-planning
|
|
@@ -73,196 +67,155 @@ cd q4-planning
|
|
|
73
67
|
claude # or codex, agy, opencode…
|
|
74
68
|
```
|
|
75
69
|
|
|
76
|
-
The harness walks you through choosing a protocol,
|
|
77
|
-
|
|
78
|
-
is free; permanent acts are not. `
|
|
79
|
-
harness or a script are **staged**, and only you can
|
|
80
|
-
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:
|
|
81
75
|
|
|
82
76
|
```sh
|
|
83
77
|
politik pending # what is waiting for you
|
|
84
|
-
politik confirm
|
|
85
|
-
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
|
|
86
80
|
```
|
|
87
81
|
|
|
88
|
-
Every commit records how it was requested
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
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.
|
|
92
85
|
|
|
93
86
|
### Sharing a session across machines
|
|
94
87
|
|
|
95
88
|
A session can be shared through any git remote — GitHub, a NAS, anything git can
|
|
96
|
-
reach (ADR-0011)
|
|
97
|
-
machines can all act on it:
|
|
89
|
+
reach (ADR-0011):
|
|
98
90
|
|
|
99
91
|
```sh
|
|
100
|
-
politik remote git@github.com:acme/q4-planning.git
|
|
101
|
-
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
|
|
102
94
|
```
|
|
103
95
|
|
|
104
|
-
Every act fetches the latest
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
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.
|
|
110
101
|
|
|
111
102
|
### By hand, or from a script
|
|
112
103
|
|
|
113
|
-
Every command
|
|
114
|
-
Hansard — the immutable record.
|
|
104
|
+
Every command is a git commit; `git log` in the session directory is the history.
|
|
115
105
|
|
|
116
106
|
```sh
|
|
117
|
-
politik scaffold --dir ./
|
|
118
|
-
politik init --dir ./
|
|
119
|
-
politik
|
|
120
|
-
politik
|
|
121
|
-
politik
|
|
122
|
-
politik
|
|
123
|
-
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
|
|
124
116
|
```
|
|
125
117
|
|
|
126
|
-
Run at your own terminal, `
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
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.
|
|
130
122
|
|
|
131
|
-
Seat a real agent to do the work
|
|
123
|
+
Seat a real agent to do the work:
|
|
132
124
|
|
|
133
125
|
```sh
|
|
134
|
-
politik run --dir ./
|
|
135
|
-
--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."
|
|
136
128
|
```
|
|
137
129
|
|
|
138
|
-
The
|
|
139
|
-
|
|
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.
|
|
140
136
|
|
|
141
137
|
---
|
|
142
138
|
|
|
143
|
-
##
|
|
144
|
-
|
|
145
|
-
### CANON — The Primitive Layer
|
|
146
|
-
|
|
147
|
-
The engine speaks in canonical terms. Protocols translate them to domain vocabulary.
|
|
148
|
-
|
|
149
|
-
**Roles:** `AUTHORITY` (human only) · `DELEGATE` · `OPERATOR` · `MEMBER` · `OBSERVER`
|
|
150
|
-
|
|
151
|
-
**Primitives:** `SESSION` · `PROCEEDING` · `CHARTER` · `RECORD` · `MOTION` · `DIVISION` · `MATCH` · `ESCALATION` · `SUSPENSION` · `QUORUM` · `CONFLICT` · `DEADLOCK`
|
|
152
|
-
|
|
153
|
-
**Verbs:** `READ` · `WRITE` · `VOTE` · `ASSENT` · `ESCALATE` · `PROMOTE` · `DEMOTE` · `HIRE` · `FIRE` · `SUSPEND` · `EXPEL` · `VETO` · `SPAWN` · `DISSOLVE` · `EXIT`
|
|
154
|
-
|
|
155
|
-
**States:** `CONVENED` · `SUSPENDED` · `PROROGUED` · `STALE` · `INVALID`
|
|
156
|
-
|
|
157
|
-
### The Session Repo
|
|
158
|
-
|
|
159
|
-
The git repository IS the Politik session. That much is always true — Charter,
|
|
160
|
-
Hansard, state and audit trail all live there.
|
|
161
|
-
|
|
162
|
-
An **SCM provider is optional**. Configure one and governance acts are
|
|
163
|
-
additionally projected onto the platform; without one a session runs complete
|
|
164
|
-
and correct on git alone. *Run local, run free.*
|
|
165
|
-
|
|
166
|
-
| GitHub feature (when hosted) | Politik primitive |
|
|
167
|
-
|---|---|
|
|
168
|
-
| Repository | Session |
|
|
169
|
-
| CHARTER.md | Standing Orders |
|
|
170
|
-
| Pull Request | Motion |
|
|
171
|
-
| PR Review | Division (vote) |
|
|
172
|
-
| Issue | Escalation |
|
|
173
|
-
| GitHub Actions | Clerk automation |
|
|
174
|
-
| Repo access | Taking a Seat |
|
|
175
|
-
| git history | Hansard (immutable record) |
|
|
139
|
+
## Protocols
|
|
176
140
|
|
|
177
|
-
|
|
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).
|
|
178
144
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
```
|
|
193
|
-
Broadcast received → Agent spawned → Prompt executed → Result committed to Hansard → Agent disposed
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### The Human Role
|
|
197
|
-
|
|
198
|
-
The Speaker (human) is constitutionally present, not operationally present. Drops the Writ, defines Standing Orders, rules on escalations. The session governs itself.
|
|
199
|
-
|
|
200
|
-
### Governance Protocols
|
|
201
|
-
|
|
202
|
-
**Eleven reference protocols ship** — Parliamentary, Republic, Monarchy, Socialism (political archetypes), Jury Deliberation, Elimination Tournament, Emergency Response (ICS), Corporate, 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. Each protocol's vocabulary and mechanics are documented in [PROTOCOLS.md](PROTOCOLS.md).
|
|
203
|
-
|
|
204
|
-
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.
|
|
205
|
-
|
|
206
|
-
### Hansard and LEDGER
|
|
207
|
-
|
|
208
|
-
**Hansard** — append-only session record. Every motion, vote, escalation, and commit. Attributed, timestamped, immutable. Cannot be edited. Cannot be gamed.
|
|
209
|
-
|
|
210
|
-
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.
|
|
211
|
-
|
|
212
|
-
**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.
|
|
213
|
-
|
|
214
|
-
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`.
|
|
215
158
|
|
|
216
159
|
---
|
|
217
160
|
|
|
218
|
-
##
|
|
219
|
-
|
|
220
|
-
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
|
|
221
162
|
|
|
222
|
-
|
|
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.
|
|
223
166
|
|
|
224
|
-
|
|
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.
|
|
225
170
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
| Jury Deliberation | Unanimity / holdout game | Convergence to consensus, or a hung result |
|
|
231
|
-
| Elimination Tournament | All-pay elimination | Aggressive early, conservative late |
|
|
232
|
-
| Adversarial Collaboration | Two-player, pre-committed | Maximum honest disclosure |
|
|
233
|
-
|
|
234
|
-
**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.
|
|
235
175
|
|
|
236
176
|
---
|
|
237
177
|
|
|
238
|
-
##
|
|
178
|
+
## How it fits together
|
|
239
179
|
|
|
240
|
-
|
|
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.
|
|
241
185
|
|
|
242
|
-
|
|
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.
|
|
243
190
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
| Developer types ticket title | Motion title in Hansard |
|
|
247
|
-
| Developer estimates story points | LEDGER — exact elapsed, tokens, dollars |
|
|
248
|
-
| Someone manually assigns reviewer | Division record — attributed votes |
|
|
249
|
-
| Developer links commits manually | Every governance act is its own commit — the git history is the audit trail |
|
|
250
|
-
| Developer manually closes ticket | Prorogation — one command, with the terminating trigger recorded |
|
|
251
|
-
| 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.
|
|
252
193
|
|
|
253
|
-
|
|
194
|
+
**Roles:** `AUTHORITY` (the owner, always human) · `DELEGATE` · `OPERATOR` · `MEMBER` · `OBSERVER`.
|
|
195
|
+
Architecture: [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) and [RUNTIME.md](RUNTIME.md).
|
|
254
196
|
|
|
255
|
-
|
|
197
|
+
---
|
|
256
198
|
|
|
257
|
-
|
|
199
|
+
## Research
|
|
258
200
|
|
|
259
|
-
|
|
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).
|
|
260
207
|
|
|
261
|
-
|
|
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.
|
|
262
215
|
|
|
263
216
|
---
|
|
264
217
|
|
|
265
|
-
**Attribution:** Steve Krisjanovs, Cordfuse
|
|
266
|
-
**
|
|
267
|
-
**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)
|
|
268
221
|
**License:** MIT
|