@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.
Files changed (81) hide show
  1. package/EXECUTION.md +90 -85
  2. package/POLITIK-ARCHITECTURE.md +111 -176
  3. package/PROTOCOLS.md +120 -289
  4. package/README.md +130 -177
  5. package/RESEARCH.md +142 -436
  6. package/RUNTIME.md +253 -261
  7. package/docs/adr/0001-chamber-transport.md +2 -0
  8. package/docs/adr/0002-charter-schema.md +2 -0
  9. package/docs/adr/0003-state-json-schema.md +2 -0
  10. package/docs/adr/0004-motion-enactment.md +2 -0
  11. package/docs/adr/0005-hansard-format.md +2 -0
  12. package/docs/adr/0006-protocol-behavioral-enforcement.md +2 -0
  13. package/docs/adr/0007-protocol-mechanics.md +2 -0
  14. package/docs/adr/0008-session-storage.md +2 -0
  15. package/docs/adr/0009-match-primitive.md +2 -0
  16. package/docs/adr/0010-operator-interface.md +2 -0
  17. package/docs/adr/0011-shared-sessions.md +2 -0
  18. package/docs/adr/0012-plain-vocabulary.md +68 -0
  19. package/docs/adr/0013-rule-defined-protocols.md +89 -0
  20. package/package.json +1 -1
  21. package/protocols/CONTRIBUTING.md +47 -87
  22. package/protocols/adversarial-review.yml +19 -0
  23. package/protocols/elimination-rounds.yml +18 -0
  24. package/protocols/majority-vote.yml +18 -0
  25. package/protocols/panel-review.yml +19 -0
  26. package/protocols/single-decider.yml +18 -0
  27. package/protocols/unanimous-vote.yml +17 -0
  28. package/src/actors.ts +124 -100
  29. package/src/agents.ts +64 -23
  30. package/src/ballot.ts +747 -0
  31. package/src/canon.ts +23 -10
  32. package/src/capability.ts +16 -99
  33. package/src/charter.ts +41 -34
  34. package/src/cli.ts +541 -480
  35. package/src/{prorogation.ts → closing.ts} +43 -43
  36. package/src/conflict.ts +14 -14
  37. package/src/containment.ts +11 -11
  38. package/src/doctor.ts +1 -1
  39. package/src/election.ts +4 -4
  40. package/src/envelope.ts +3 -3
  41. package/src/escalation.ts +44 -44
  42. package/src/fault.ts +8 -8
  43. package/src/federation.ts +14 -14
  44. package/src/git.ts +21 -18
  45. package/src/heartbeat.ts +32 -32
  46. package/src/index.ts +5 -5
  47. package/src/init.ts +66 -65
  48. package/src/integrity.ts +30 -30
  49. package/src/ledger.ts +3 -3
  50. package/src/{hansard.ts → log.ts} +20 -20
  51. package/src/{crisis.ts → misconduct.ts} +70 -70
  52. package/src/operator.ts +5 -5
  53. package/src/pending.ts +9 -9
  54. package/src/projection.ts +30 -30
  55. package/src/protocol-sdk.ts +12 -121
  56. package/src/protocol.ts +8 -78
  57. package/src/providers/github.ts +12 -12
  58. package/src/quorum.ts +7 -7
  59. package/src/remote.ts +1 -1
  60. package/src/runner.ts +134 -55
  61. package/src/scm.ts +14 -14
  62. package/src/spawn.ts +4 -4
  63. package/src/standings.ts +13 -13
  64. package/src/state.ts +6 -6
  65. package/src/templates/session.ts +448 -0
  66. package/src/tournament.ts +20 -20
  67. package/src/transport.ts +4 -4
  68. package/src/tree.ts +16 -16
  69. package/protocols/adversarial-collaboration.yml +0 -28
  70. package/protocols/corporate.yml +0 -35
  71. package/protocols/elimination-tournament.yml +0 -41
  72. package/protocols/emergency-response-ics.yml +0 -27
  73. package/protocols/jury-deliberation.yml +0 -32
  74. package/protocols/monarchy.yml +0 -31
  75. package/protocols/parliamentary.yml +0 -66
  76. package/protocols/peer-review.yml +0 -44
  77. package/protocols/republic.yml +0 -36
  78. package/protocols/socialism-collective.yml +0 -31
  79. package/protocols/solo.yml +0 -32
  80. package/src/division.ts +0 -609
  81. 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
- Pluggable governance protocols. Stateless agent workers. Git as the session substrate. Immutable Hansard. Append-only LEDGER. Human constitutional authority.
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 Problem
14
+ ## The problem
13
15
 
14
16
  Multi-agent AI coordination today is:
15
17
 
16
- - **Ungoverned** — agents act without rules, quorum, or accountability
17
- - **Unrecorded** — no immutable audit trail of who decided what and why
18
- - **Uncosted** — no per-decision attribution of time, tokens, or dollars
19
- - **Single-machine** — no framework for agents across machines, orgs, or human teams
20
- - **Human-absent** — humans monitor, not govern
21
-
22
- The result: agents that produce outputs nobody can fully trust, audit, or reproduce.
23
-
24
- ---
25
-
26
- ## What Politik Solves
27
-
28
- Politik is a **governed multi-agent operating system** where:
29
-
30
- - A **human** is the constitutional authority — present but not operational
31
- - **Agents** are stateless CLI workers that spawn, do work, and dispose
32
- - A **git repository IS the session** — charter, record, state, and invite in one
33
- - **Pluggable governance protocols** translate the framework to any industry vocabulary
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 **no build step** — the source is TypeScript, executed
44
- directly via `tsx`. Requires Node 20+ and git.
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 # probe this host: can it run a session, with which agents?
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, if you want to hack on it:
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 whichever harness
68
- you already use there, and talk to it in plain language:
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, writing the Charter and
77
- convening the session, then turns your requests into `politik` commands. Reading
78
- is free; permanent acts are not. `assent`, `rule` and `prorogue` requested by a
79
- harness or a script are **staged**, and only you can enact them, in your own
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 assent-3f9a2c # shows the act, asks you to type its id, then records it
85
- politik reject assent-3f9a2c # or discard it
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 (`Politik-Requested-Via: claude-code_…`)
89
- and, for a confirmed act, that the Speaker confirmed it. The session's instruction
90
- files are sealed at Writ Drop: if an agent rewrites them, governance stops until
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). Several people, each with their own harness, and agents on other
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 # the Speaker shares it
101
- politik join git@github.com:acme/q4-planning.git q4 --as ada # someone else joins
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 record first and pushes after; if someone else acted
105
- in between, Politik recomputes the act on top of theirs, so the Hansard never needs a
106
- manual merge. Offline, governance refuses and reads still work. Acts staged for the
107
- Speaker are shared too, and only the seat an act names can confirm it. For proof
108
- rather than names, set `signed_confirmations: required` in the Charter and each
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 below is a git commit. `git log` in the session directory is the
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 ./session --quorum 2 # write a Charter to edit
118
- politik init --dir ./session --charter ./session/CHARTER.md --speaker you
119
- politik division call --dir ./session --motion adopt-standard --actor you --role AUTHORITY
120
- politik division vote --dir ./session --motion adopt-standard --actor ada --role MEMBER --vote AYE
121
- politik division vote --dir ./session --motion adopt-standard --actor bo --role MEMBER --vote AYE
122
- politik division tally --dir ./session --motion adopt-standard # → Motion CARRIED
123
- politik assent --dir ./session --motion adopt-standard --actor you --role AUTHORITY
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, `assent` asks you to type `assent` to confirm. For a
127
- fully scripted session (CI, tests), scaffold with `--speaker-confirmation off` —
128
- the setting lives in the Charter, which is sealed at Writ Drop, so it cannot be
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 instead of a human vote:
123
+ Seat a real agent to do the work:
132
124
 
133
125
  ```sh
134
- politik run --dir ./session --agent claude-code --actor ada --role OPERATOR \
135
- --task "Draft and commit a Motion to adopt trunk-based development."
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 agent's turn is captured, its cost measured, and the result recorded — see
139
- `politik ledger --dir ./session`.
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
- ## Technical
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
- ### The Politik Tree
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
- A session is either a standalone repository or a **node in a tree** — an
180
- organisation's Org → Team → Sprint → Ticket hierarchy as nested directories in
181
- one repository, each node inheriting its parent's Charter. Federation is **local
182
- traversal over that one working tree**, not cross-repository orchestration: no new
183
- service, no registry server. `politik registry` walks the tree and reports every
184
- session's state and cost with a roll-up; `politik cascade` flags a fault repeating
185
- across sibling sessions. `politik init --standalone` opts a node out into its own
186
- repository when it needs per-session pull requests or a hard permission boundary.
187
-
188
- ### Agent Model
189
-
190
- Agents are stateless. No persistent processes. State lives in git.
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
- ## Game Theory
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
- > Game theory is to Politik what physics is to the universe. Physics doesn't run the universe — it describes it. Game theory doesn't run Politik sessions — it describes the equilibria that emerge from them.
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
- Every protocol in Politik instantiates a formal game structure:
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
- | Protocol | Game Structure | Nash Equilibrium Prediction |
227
- |---|---|---|
228
- | Parliamentary | Cooperative with veto players | Stable coalition at quorum threshold |
229
- | Emergency Response (ICS) | Stackelberg leader-follower | Full compliance, zero deviation |
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
- ## Business Disruption
178
+ ## How it fits together
239
179
 
240
- ### Jira is a database humans are required to keep updated. Hansard is a database that is impossible to not keep updated.
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
- That is not a feature comparison. It is a category difference.
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
- | Jira | Politik |
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
- Politik produces a superior project record as a **zero-overhead side effect** of running governed sessions. Nobody updates it. Nobody logs time. It is all there because it cannot be otherwise.
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
- ### GitHub Alignment
197
+ ---
256
198
 
257
- A session is a git repository, so Politik runs anywhere git does. Point it at a GitHub repo and governance acts additionally project onto the platform — a Motion becomes a pull request, a Division a review request, an Escalation an issue, Assent a merge — and a shipped Actions workflow emails the Speaker when an escalation is filed. Agents run in GitHub Actions like any other CLI. The projection is optional; without it a session is complete and correct on git alone.
199
+ ## Research
258
200
 
259
- ### Open Source
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
- MIT licensed. The entire framework — CANON, protocol library, session engine, Hansard substrate, CLI tooling, reference implementation — is open source.
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
- **Architecture:** [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) · [PROTOCOLS.md](PROTOCOLS.md) · [RUNTIME.md](RUNTIME.md) · [RESEARCH.md](RESEARCH.md) · [EXECUTION.md](EXECUTION.md)
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