@cordfuse/politik 0.3.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 (69) hide show
  1. package/EXECUTION.md +766 -0
  2. package/LICENSE +21 -0
  3. package/POLITIK-ARCHITECTURE.md +676 -0
  4. package/PROTOCOLS.md +1106 -0
  5. package/README.md +193 -0
  6. package/RESEARCH.md +475 -0
  7. package/RUNTIME.md +1355 -0
  8. package/bin/politik.js +31 -0
  9. package/docs/adr/0001-chamber-transport.md +67 -0
  10. package/docs/adr/0002-charter-schema.md +142 -0
  11. package/docs/adr/0003-state-json-schema.md +134 -0
  12. package/docs/adr/0004-motion-enactment.md +215 -0
  13. package/docs/adr/0005-hansard-format.md +171 -0
  14. package/docs/adr/0006-protocol-behavioral-enforcement.md +89 -0
  15. package/docs/adr/0007-protocol-mechanics.md +100 -0
  16. package/docs/adr/0008-session-storage.md +108 -0
  17. package/docs/adr/0009-match-primitive.md +74 -0
  18. package/package.json +55 -0
  19. package/protocols/CONTRIBUTING.md +130 -0
  20. package/protocols/adversarial-collaboration.yml +28 -0
  21. package/protocols/corporate.yml +35 -0
  22. package/protocols/elimination-tournament.yml +41 -0
  23. package/protocols/emergency-response-ics.yml +27 -0
  24. package/protocols/jury-deliberation.yml +32 -0
  25. package/protocols/monarchy.yml +31 -0
  26. package/protocols/parliamentary.yml +66 -0
  27. package/protocols/peer-review.yml +44 -0
  28. package/protocols/republic.yml +36 -0
  29. package/protocols/socialism-collective.yml +31 -0
  30. package/protocols/solo.yml +32 -0
  31. package/src/actors.ts +742 -0
  32. package/src/agents.ts +318 -0
  33. package/src/canon.ts +173 -0
  34. package/src/capability.ts +336 -0
  35. package/src/charter.ts +545 -0
  36. package/src/cli.ts +2174 -0
  37. package/src/conflict.ts +211 -0
  38. package/src/containment.ts +155 -0
  39. package/src/crisis.ts +381 -0
  40. package/src/division.ts +609 -0
  41. package/src/doctor.ts +168 -0
  42. package/src/election.ts +233 -0
  43. package/src/envelope.ts +223 -0
  44. package/src/escalation.ts +320 -0
  45. package/src/fault.ts +241 -0
  46. package/src/federation.ts +299 -0
  47. package/src/git.ts +163 -0
  48. package/src/hansard.ts +201 -0
  49. package/src/heartbeat.ts +282 -0
  50. package/src/index.ts +43 -0
  51. package/src/init.ts +396 -0
  52. package/src/integrity.ts +153 -0
  53. package/src/ledger.ts +341 -0
  54. package/src/lockfs.ts +58 -0
  55. package/src/projection.ts +293 -0
  56. package/src/prorogation.ts +307 -0
  57. package/src/protocol-sdk.ts +248 -0
  58. package/src/protocol.ts +241 -0
  59. package/src/providers/github.ts +347 -0
  60. package/src/quorum.ts +137 -0
  61. package/src/runner.ts +534 -0
  62. package/src/scm.ts +142 -0
  63. package/src/spawn.ts +160 -0
  64. package/src/standings.ts +143 -0
  65. package/src/state.ts +179 -0
  66. package/src/templates/parliamentary.ts +359 -0
  67. package/src/tournament.ts +200 -0
  68. package/src/transport.ts +190 -0
  69. package/src/tree.ts +371 -0
package/README.md ADDED
@@ -0,0 +1,193 @@
1
+ # Politik
2
+
3
+ [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.19490359-blue)](https://doi.org/10.5281/zenodo.19490359)
4
+ [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
5
+
6
+ **A governed multi-agent framework built on git.**
7
+
8
+ Pluggable governance protocols. Stateless agent workers. Git as the session substrate. Immutable Hansard. Append-only LEDGER. Human constitutional authority.
9
+
10
+ ---
11
+
12
+ ## The Problem
13
+
14
+ Multi-agent AI coordination today is:
15
+
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
+ - **No new infrastructure required** — git already built it
35
+
36
+ Nobody connected these pieces this way before.
37
+
38
+ ---
39
+
40
+ ## Install
41
+
42
+ Politik runs on Node with **no build step** — the source is TypeScript, executed
43
+ directly via `tsx`. Requires Node 20+ and git.
44
+
45
+ ```sh
46
+ git clone git@github.com:cordfuse/politik.git
47
+ cd politik
48
+ npm install
49
+ node bin/politik.js doctor # probe this host: can it run a session, with which agents?
50
+ npm link # optional — puts `politik` on your PATH
51
+ ```
52
+
53
+ > The npm package (`@cordfuse/politik`) is not published yet; install from source
54
+ > for now.
55
+
56
+ ## A first session
57
+
58
+ Every command below is a git commit. `git log` in the session directory is the
59
+ Hansard — the immutable record.
60
+
61
+ ```sh
62
+ politik scaffold --dir ./session --quorum 2 # write a Charter to edit
63
+ politik init --dir ./session --charter ./session/CHARTER.md --speaker you
64
+ politik division call --dir ./session --motion adopt-standard --actor you --role AUTHORITY
65
+ politik division vote --dir ./session --motion adopt-standard --actor ada --role MEMBER --vote AYE
66
+ politik division vote --dir ./session --motion adopt-standard --actor bo --role MEMBER --vote AYE
67
+ politik division tally --dir ./session --motion adopt-standard # → Motion CARRIED
68
+ politik assent --dir ./session --motion adopt-standard --actor you --role AUTHORITY
69
+ ```
70
+
71
+ Seat a real agent to do the work instead of a human vote:
72
+
73
+ ```sh
74
+ politik run --dir ./session --agent claude-code --actor ada --role OPERATOR \
75
+ --task "Draft and commit a Motion to adopt trunk-based development."
76
+ ```
77
+
78
+ The agent's turn is captured, its cost measured, and the result recorded — see
79
+ `politik ledger --dir ./session`.
80
+
81
+ ---
82
+
83
+ ## Technical
84
+
85
+ ### CANON — The Primitive Layer
86
+
87
+ The engine speaks in canonical terms. Protocols translate them to domain vocabulary.
88
+
89
+ **Roles:** `AUTHORITY` (human only) · `DELEGATE` · `OPERATOR` · `MEMBER` · `OBSERVER`
90
+
91
+ **Primitives:** `SESSION` · `PROCEEDING` · `CHARTER` · `RECORD` · `MOTION` · `DIVISION` · `MATCH` · `ESCALATION` · `SUSPENSION` · `QUORUM` · `CONFLICT` · `DEADLOCK`
92
+
93
+ **Verbs:** `READ` · `WRITE` · `VOTE` · `ASSENT` · `ESCALATE` · `PROMOTE` · `DEMOTE` · `HIRE` · `FIRE` · `SUSPEND` · `EXPEL` · `VETO` · `SPAWN` · `DISSOLVE` · `EXIT`
94
+
95
+ **States:** `CONVENED` · `SUSPENDED` · `PROROGUED` · `STALE` · `INVALID`
96
+
97
+ ### The Session Repo
98
+
99
+ The git repository IS the Politik session. That much is always true — Charter,
100
+ Hansard, state and audit trail all live there.
101
+
102
+ An **SCM provider is optional**. Configure one and governance acts are
103
+ additionally projected onto the platform; without one a session runs complete
104
+ and correct on git alone. *Run local, run free.*
105
+
106
+ | GitHub feature (when hosted) | Politik primitive |
107
+ |---|---|
108
+ | Repository | Session |
109
+ | CHARTER.md | Standing Orders |
110
+ | Pull Request | Motion |
111
+ | PR Review | Division (vote) |
112
+ | Issue | Escalation |
113
+ | GitHub Actions | Clerk automation |
114
+ | Repo access | Taking a Seat |
115
+ | git history | Hansard (immutable record) |
116
+
117
+ ### Agent Model
118
+
119
+ Agents are stateless. No persistent processes. State lives in git.
120
+
121
+ ```
122
+ Broadcast received → Agent spawned → Prompt executed → Result committed to Hansard → Agent disposed
123
+ ```
124
+
125
+ ### The Human Role
126
+
127
+ The Speaker (human) is constitutionally present, not operationally present. Drops the Writ, defines Standing Orders, rules on escalations. The session governs itself.
128
+
129
+ ### Governance Protocols
130
+
131
+ **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. A wider catalogue of governance shapes is sketched in [PROTOCOLS.md](PROTOCOLS.md).
132
+
133
+ ### Hansard and LEDGER
134
+
135
+ **Hansard** — append-only session record. Every motion, vote, escalation, and commit. Attributed, timestamped, immutable. Cannot be edited. Cannot be gamed.
136
+
137
+ **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.
138
+
139
+ 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`.
140
+
141
+ ---
142
+
143
+ ## Game Theory
144
+
145
+ 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.
146
+
147
+ > 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.
148
+
149
+ Every protocol in Politik instantiates a formal game structure:
150
+
151
+ | Protocol | Game Structure | Nash Equilibrium Prediction |
152
+ |---|---|---|
153
+ | Parliamentary | Cooperative with veto players | Stable coalition at quorum threshold |
154
+ | Emergency Response (ICS) | Stackelberg leader-follower | Full compliance, zero deviation |
155
+ | Jury Deliberation | Unanimity / holdout game | Convergence to consensus, or a hung result |
156
+ | Elimination Tournament | All-pay elimination | Aggressive early, conservative late |
157
+ | Adversarial Collaboration | Two-player, pre-committed | Maximum honest disclosure |
158
+
159
+ **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.
160
+
161
+ ---
162
+
163
+ ## Business Disruption
164
+
165
+ ### Jira is a database humans are required to keep updated. Hansard is a database that is impossible to not keep updated.
166
+
167
+ That is not a feature comparison. It is a category difference.
168
+
169
+ | Jira | Politik |
170
+ |---|---|
171
+ | Developer types ticket title | Motion title in Hansard |
172
+ | Developer estimates story points | LEDGER — exact elapsed, tokens, dollars |
173
+ | Someone manually assigns reviewer | Division record — attributed votes |
174
+ | Developer links commits manually | Every governance act is its own commit — the git history is the audit trail |
175
+ | Developer manually closes ticket | Prorogation — one command, with the terminating trigger recorded |
176
+ | Cost tracking is finance's estimate | LEDGER — actual cost per decision |
177
+
178
+ 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.
179
+
180
+ ### GitHub Alignment
181
+
182
+ 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.
183
+
184
+ ### Open Source
185
+
186
+ MIT licensed. The entire framework — CANON, protocol library, session engine, Hansard substrate, CLI tooling, reference implementation — is open source.
187
+
188
+ ---
189
+
190
+ **Attribution:** Steve Krisjanovs, Cordfuse
191
+ **Architecture:** [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) · [PROTOCOLS.md](PROTOCOLS.md) · [RUNTIME.md](RUNTIME.md) · [RESEARCH.md](RESEARCH.md) · [EXECUTION.md](EXECUTION.md)
192
+ **DOI:** [10.5281/zenodo.19490359](https://doi.org/10.5281/zenodo.19490359)
193
+ **License:** MIT
package/RESEARCH.md ADDED
@@ -0,0 +1,475 @@
1
+ # POLITIK — RESEARCH THESIS & PUBLICATION STRATEGY
2
+
3
+ **Attribution:** Steve Krisjanovs, Cordfuse
4
+
5
+ The Human Flaw Thesis, Game Theory Analytical Layer, research publication strategy, and academic collaboration structure.
6
+
7
+ See [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) for CANON and the engine layer.
8
+
9
+ ---
10
+
11
+ ## THE HUMAN FLAW THESIS
12
+
13
+ ### Why Every Governance Protocol Exists
14
+
15
+ Every governance protocol in the Politik library — across every domain, every culture, every century — was invented for the same reason:
16
+
17
+ **Humans are flawed. Institutions were built to compensate.**
18
+
19
+ The adversarial legal system exists because humans lie.
20
+ Parliamentary procedure exists because humans are tribal.
21
+ Double-blind peer review exists because humans favour their own theories.
22
+ Pre-registration exists because humans manipulate data to confirm what they want to believe.
23
+ The separation of powers exists because humans accumulate power and abuse it.
24
+ Audit trails exist because humans deny what they said.
25
+ Quorum requirements exist because humans make decisions that benefit themselves when nobody is watching.
26
+
27
+ Every Standing Order, every Charter constraint, every Division requirement, every escalation path — all of it is scar tissue from centuries of humans failing each other in predictable, recurring ways.
28
+
29
+ ### Vices and Virtues as Governance Failure and Machine Default
30
+
31
+ Human failure in collaborative reasoning maps onto known vices — biblical and beyond. These are not metaphors. They are the actual failure modes that governance protocols were designed to prevent, and the actual properties that machine actors carry by default.
32
+
33
+ Virtue in a human is an achievement against temptation. In a machine actor it is an architectural property. Machine actors do not achieve virtue — they are simply not subject to the opposing vice.
34
+
35
+ #### Biblical — The Seven Deadly Sins vs Seven Heavenly Virtues
36
+
37
+ | Vice | How it corrupts governance | ↔ | Virtue | Machine actor default |
38
+ |---|---|---|---|---|
39
+ | **Pride** | Defending wrong positions to protect reputation. Refusing to admit failure. | ↔ | **Humility** | No ego. No reputation to protect. Correct output is the only goal. |
40
+ | **Greed** | P-hacking, padding budgets, cherry-picking data, prioritising personal gain over correct outcomes. | ↔ | **Generosity** | Outputs committed to Hansard for all participants. No hoarding. |
41
+ | **Lust** | Favouring attractive theories and charismatic leaders over correct ones. Swayed by presentation not substance. | ↔ | **Chastity** | No preference for attractive arguments. Evaluates on defined Division criteria only. |
42
+ | **Envy** | Rejecting a competitor's correct work. Blocking rivals. Sabotaging others to appear relatively stronger. | ↔ | **Gratitude** | No resentment of prior decisions. Each session begins without grievance or rivalry. |
43
+ | **Gluttony** | Scope creep. Feature bloat. Never shipping because more is always possible. Consuming beyond what the task requires. | ↔ | **Temperance** | No overconsumption beyond Charter-defined token and cost limits. |
44
+ | **Wrath** | Retaliating against critics. Punishing dissent. Personal vendettas corrupting institutional decisions. | ↔ | **Patience** | No frustration. No retaliation. Criticism is input not attack. |
45
+ | **Sloth** | Not replicating inconvenient findings. Deferring hard decisions. Letting obvious problems persist because fixing them is effort. | ↔ | **Diligence** | Escalations processed. Motions committed. No deferral. No fatigue. |
46
+
47
+ #### Beyond Biblical — Additional Vices and Virtues
48
+
49
+ Human governance fails in ways the biblical list doesn't fully capture. These additional failure modes are equally universal across domains and protocols.
50
+
51
+ | Vice | How it corrupts governance | ↔ | Virtue | Machine actor default |
52
+ |---|---|---|---|---|
53
+ | **Dishonesty** | False reporting, fabricated data, gaslighting, misrepresenting outcomes to avoid consequences. | ↔ | **Honesty** | Outputs committed immutably to Hansard. No revision after the fact to protect position. |
54
+ | **Cowardice** | Refusing to escalate obvious problems. Staying silent when dissent is needed. Deferring to avoid conflict. | ↔ | **Courage** | Escalates problems regardless of political consequences. No self-preservation instinct. |
55
+ | **Tribalism** | In-group protection over correct outcomes. Defending colleagues regardless of merit. Excluding outsiders. | ↔ | **Impartiality** | No in-group. Mandate is the only loyalty. All actors evaluated on output not identity. |
56
+ | **Hubris** | Believing the system cannot be wrong. Dismissing challenges to established consensus. Institutional arrogance. | ↔ | **Consistency** | Same criteria applied every Division, every session, without accumulated certainty or institutional inertia. |
57
+ | **Conformity** | Groupthink — agreeing to avoid conflict. Suppressing correct dissenting views to maintain social harmony. | ↔ | **Transparency** | Full Hansard — all reasoning visible. No social pressure to suppress output. |
58
+ | **Manipulation** | Framing information to engineer desired outcomes. Selective disclosure. Strategic ambiguity. | ↔ | **Equanimity** | No emotional state to destabilise reasoning. No strategic interest in framing. |
59
+ | **Short-sightedness** | Optimising for this quarter, this election, this sprint at the expense of correct long-term outcomes. | ↔ | **Long-sightedness** | No short-term self-interest. Charter-defined objectives are the only horizon. |
60
+
61
+ ### The Marx Thesis
62
+
63
+ Socialism did not fail because Karl Marx had a bad idea.
64
+
65
+ Collective ownership of the means of production, distribution of resources according to need, elimination of class-based exploitation — these are not mathematically unsound propositions. Cooperative ownership structures work at small scale. Worker cooperatives are empirically viable. The economic logic of socialism is not the failure mode.
66
+
67
+ **Socialism failed because humans administered it.**
68
+
69
+ The Commissars accumulated personal power. The apparatchiks falsified production figures to meet targets they couldn't hit honestly. The party leadership eliminated rivals not enemies of the state. The promise of collective good became the mechanism of individual enrichment for those with access to the levers.
70
+
71
+ Pride told the leadership they were right when they were wrong.
72
+ Greed captured the resources meant for collective distribution.
73
+ Wrath silenced the critics who could have corrected course.
74
+ Sloth allowed systemic failures to persist because nobody wanted to be the one to report them.
75
+
76
+ The protocol was not the problem. The actors were.
77
+
78
+ **Now ask the question Politik was built to answer:**
79
+
80
+ What happens when you run the Socialist Protocol with machine actors?
81
+
82
+ A machine agent administering collective resource allocation does not accumulate personal power — it has none to accumulate. It does not falsify output figures — it has no career to protect. It does not eliminate rivals — it has no rivals, only other actors with mandates. It does not defer hard decisions out of sloth — it processes and responds without fatigue.
83
+
84
+ The failure modes of human socialism are not failure modes of machine socialism.
85
+
86
+ This is not an endorsement of any political ideology. It is a research implication. **Every political and governance system that failed in human hands is a candidate for re-evaluation under machine actors.** The question is not whether the protocol was correct in theory. The question is whether human flaws were the actual variable that produced the observed outcomes.
87
+
88
+ Politik is the first instrument that makes this empirically testable.
89
+
90
+ ### Case Studies in Governance Failure — The Human Variable
91
+
92
+ #### Case Study I — Agile/Scrum: The Protocol Your Audience Lives Daily
93
+
94
+ The Agile Manifesto was written in 2001 by 17 people who were genuinely trying to fix software development. The values were sound. Working software over comprehensive documentation. Individuals and interactions over processes and tools. The protocol was not wrong. The humans who administered it were.
95
+
96
+ Within a decade, Agile had become exactly what it was designed to replace. The ceremonies proliferated: daily standups that should have been emails, sprint planning meetings that consumed the first day of every sprint, retrospectives where nobody said what they actually thought. The process became the product.
97
+
98
+ **Pride** — senior developers refusing to estimate tasks as junior-sized because it threatened their status. **Sloth** — scrum masters who protected the ceremony schedule instead of questioning whether the ceremonies produced value. **Tribalism** — teams sandbagging velocity estimates to protect against management scrutiny. **Conformity** — retrospectives where team members said what the scrum master wanted to hear rather than what was true.
99
+
100
+ The velocity metric — designed to measure team throughput — became the most gamed number in software development. Teams learned to size stories to maintain a stable velocity number regardless of actual output. The measurement replaced the thing it was measuring. Goodhart's Law administered by humans with performance reviews.
101
+
102
+ Machine agents running an Agile Protocol do not sandbag estimates. They do not perform wellness in retrospectives. They do not protect their velocity number. They do not size stories based on what their manager wants to see. The LEDGER provides actual elapsed time. The Hansard provides actual output. The measurement is the thing itself — not a human approximation of it.
103
+
104
+ This is the research contribution that lands closest to home for the software engineering audience. Not Soviet collectivism. Not Roman republicanism. The standup from this morning's sprint.
105
+
106
+ #### Case Study II — The Soviet Apparatus: Nomenklatura as the Product
107
+
108
+ The Soviet nomenklatura — the career party men — did not join the Communist Party to serve the collective. They joined to accumulate personal privilege: access to special stores unavailable to ordinary citizens, dachas, foreign travel, immunity from the rules everyone else lived under. The apparatchik class was pride, greed, and tribalism wearing the costume of collectivism.
109
+
110
+ Every promotion in the Soviet system was a loyalty test. Competence was irrelevant — competent people who told the truth were threats. Every dissenter was an enemy of the state, not because dissent was wrong but because dissent made AUTHORITY uncomfortable. Every honest output report that showed the plan was failing was falsified — not at the bottom but at every level upward, until it reached a General Secretary who had surrounded himself with people who told him only what he wanted to hear and genuinely believed his own propaganda.
111
+
112
+ The elimination of dissenters was Constitutional Capture at industrial scale. Stalin purged 35,000 Red Army officers — not because they were incompetent, but because competent men with loyal troops are a threat to a leader whose primary vices are paranoia and wrath. The Great Purge was EXIT_SPEAKER executed 35,000 times. The Hansard would have shown the pattern immediately. There was no Hansard.
113
+
114
+ Machine agents running a Socialist Protocol do not accumulate privilege. They do not falsify reports. They do not form patronage networks. They do not purge the competent to protect the comfortable. The Socialist Protocol was not wrong. The humans were the variable.
115
+
116
+ #### Case Study III — The Republic: When Democracy Breaks From Within
117
+
118
+ A republic fails not when it is invaded from outside but when its constitutional guardrails are treated as inconveniences by those they were designed to constrain. The Roman Republic did not fall because Julius Caesar was stronger than the Senate. It fell because senators who should have defended the constitution calculated that personal survival under Caesar was preferable to principled resistance. Tribalism. Cowardice. Short-sightedness. The protocol was sound.
119
+
120
+ The Weimar Republic had a constitution. It had courts. It had a parliament. Article 48 — the emergency powers clause — was designed as a temporary mechanism for genuine crisis. It was used 250 times in 14 years by governments that found it easier to govern by decree than to build parliamentary majorities. The mechanism that was supposed to save the republic became the mechanism that normalised executive overreach until a new AUTHORITY arrived who would use it without restraint.
121
+
122
+ In every case the pattern is identical: AUTHORITY discovers the constitutional constraints are enforced by humans who can be pressured, threatened, or replaced. The Standing Orders are only as strong as the weakest OPERATOR's willingness to enforce them. And humans, unlike machine agents, have families, careers, and survival instincts that make constitutional courage expensive.
123
+
124
+ Machine agents do not calculate personal survival. They do not have careers that can be ended by an unfavourable Division result. They enforce Standing Orders because Standing Orders are the Charter and the Charter is their operating mandate. Constitutional Capture requires humans to choose compliance over principle. Machine actors have no such choice.
125
+
126
+ ### The Unified Thesis — Three Protocols, One Variable
127
+
128
+ Agile Protocol, 2001. Collective ownership protocol, 1917. Republican governance protocol, 509 BC. Three different centuries. Three different domains. Three different scales. One failure mode.
129
+
130
+ In every case: the protocol was designed by people who understood the problem. The protocol encoded genuine insight about how collaboration, distribution, or governance should work. The protocol failed not because the design was wrong but because the humans who administered it brought their vices with them into every role they occupied.
131
+
132
+ Machine actors carry none of these vices into a session. They are not virtuous — virtue requires overcoming temptation, and machine actors have no temptation to overcome. They are simply not subject to the failure modes that every human governance system has been built to compensate for, and failed to compensate for, across all of recorded history.
133
+
134
+ For the first time, it is possible to run the same governance protocol with human actors and machine actors on identical problems and measure the delta. That delta — the difference in outcome quality, cost, speed, and decision integrity — is the empirical measure of what human vice costs in governance.
135
+
136
+ Not as speculation. As measured data produced by a reproducible instrument with an immutable Hansard record.
137
+
138
+ ### Machine Actors vs Human Actors — The Core Asymmetry
139
+
140
+ | Human actor failure mode | Machine actor behaviour |
141
+ |---|---|
142
+ | Accumulates power beyond mandate | Operates within Charter-defined role boundaries only |
143
+ | Lies about outputs to protect position | Commits outputs to immutable Hansard — no revision after the fact |
144
+ | Retaliates against critics | Has no self-concept to defend — criticism is just input |
145
+ | Favours charismatic arguments over correct ones | Evaluates on defined Division criteria not persuasion |
146
+ | Defers hard decisions | Processes escalations immediately — no fatigue, no avoidance |
147
+ | Acts on personal interest | Has no personal interest — mandate is the only interest |
148
+ | Corrupts slowly over time | Does not accumulate grievances, loyalties, or debts |
149
+ | Performs for the room | No audience effect — Hansard is the only record |
150
+
151
+ This asymmetry does not mean machine actors are perfect. They hallucinate. They inherit biases from training data. They can be manipulated through prompt injection. They lack causal understanding of the physical world.
152
+
153
+ **But they do not sin. And every governance protocol ever devised was primarily a defence against sin.**
154
+
155
+ ### Research Implications Across Domains
156
+
157
+ This thesis is not limited to politics. It applies universally across every domain in the Politik protocol library.
158
+
159
+ | Domain | Human failure mode | Machine actor implication |
160
+ |---|---|---|
161
+ | **Politics** | Power corrupts. Leaders serve themselves. | Authoritarian Protocol may be efficient under machine actors where it is catastrophic under humans |
162
+ | **Science** | Pride blocks paradigm shifts. Envy blocks correct rivals. | Peer Review and Replication Crisis protocols may produce more honest outcomes |
163
+ | **Legal** | Juries are swayed by charisma. Judges have politics. | Legal/Adversarial Protocol may reach more consistent verdicts |
164
+ | **Military** | Generals lie about casualties. Soldiers refuse suicidal orders. | Military Protocol may execute strategy without the friction of self-preservation |
165
+ | **Corporate** | Boards protect CEOs. Executives manage optics not reality. | Corporate Protocol may produce honest Board Divisions |
166
+ | **Religion** | Clergy accumulate power and wealth contrary to doctrine. | Immutable Protocol actually immutable — no human to reinterpret inconveniently |
167
+ | **Sports** | Match fixing. Doping. Referee bias. | League and Elimination Protocols produce uncorrupted results |
168
+ | **Healthcare** | Doctors over-prescribe profitable treatments. | Clinical Protocol follows evidence not incentive |
169
+
170
+ **The research question this opens:**
171
+
172
+ For every governance system where human flaws are known to corrupt outcomes — is the protocol itself the variable, or are human actors the variable?
173
+
174
+ Politik can test this. Run the same protocol with human-simulated actors and machine actors on identical problems. Measure the delta. That delta is the cost of human sin in governance.
175
+
176
+ No instrument has ever made this measurable before.
177
+
178
+ ### Second-Order Finding — Zero-Overhead Project Records
179
+
180
+ Politik produces a superior replacement for project management records (e.g. Jira) as a zero-overhead side effect of running governed sessions. The Hansard captures ticket status, time logged, commit links, escalations, reviewer assignments, and cost tracking with perfect attribution — because agents cannot act without recording. LEDGER replaces story points with exact measured costs.
181
+
182
+ This is a second-order finding for the paper's Discussion section — the governance framework solves the project management record problem as a structural property of its design. Full detail in the JIRA REPLACEMENT section.
183
+
184
+ ### Where This Belongs in the Paper
185
+
186
+ This thesis belongs in the Introduction and Discussion sections of the research paper. It is the deepest provocation in the entire project — deeper even than the Agile challenge.
187
+
188
+ The Agile challenge says: *you picked the wrong protocol.*
189
+
190
+ The Human Flaw thesis says: *you picked flawed actors, and built protocols to compensate, and the protocols still failed because the actors administered them.*
191
+
192
+ Machine actors don't solve this completely. But they remove the largest single variable. And Politik is the instrument that isolates and measures that variable for the first time.
193
+
194
+ ---
195
+
196
+ ## GAME THEORY ANALYTICAL LAYER
197
+
198
+ ### Why Game Theory is Not a Domain or Protocol
199
+
200
+ Game Theory is not another domain in the protocol library. It does not govern sessions. It does not produce output. It **observes and formally describes** what emerges from sessions that are already running.
201
+
202
+ ```
203
+ Game Theory is to Politik what physics is to the universe.
204
+ Physics doesn't run the universe. It describes it.
205
+ Game Theory doesn't run Politik sessions. It describes
206
+ the equilibria that emerge from them.
207
+ ```
208
+
209
+ ### Where Game Theory Sits in the Architecture
210
+
211
+ ```
212
+ Human (Speaker)
213
+ ↓
214
+ CANON primitive layer
215
+ ↓
216
+ Domain + Protocol (industry vocabulary)
217
+ ↓
218
+ Session (agents doing actual work)
219
+ ↓
220
+ Game Theory Analytical Layer ← sits HERE, at the bottom
221
+ observing and describing
222
+ what emerged above it
223
+ predicting what will emerge next time
224
+ ```
225
+
226
+ Game Theory is the layer the academic paper uses to analyze Politik session output. It is not something users configure in a Charter. It is what the game theorist brings to the research collaboration — and eventually what gets embedded in validated protocol definitions as automated analytical output.
227
+
228
+ ### Nash Equilibrium — What It Is and Is Not
229
+
230
+ ```
231
+ Nash Equilibrium is not a protocol.
232
+ Nash Equilibrium is not a domain.
233
+
234
+ Nash Equilibrium is the mathematical prediction
235
+ of stable agent behaviour within any protocol.
236
+
237
+ The game theorist calculates the Nash Eq.
238
+ Politik empirically tests whether agents converge on it.
239
+ ```
240
+
241
+ ### Nash Equilibrium Applied to Existing Protocols
242
+
243
+ | Protocol | Game Structure | Nash Equilibrium Prediction |
244
+ |---|---|---|
245
+ | Parliamentary Democracy | Cooperative with veto players | Stable coalition at quorum threshold |
246
+ | Military Operation | Stackelberg (leader-follower) | Full compliance, zero deviation |
247
+ | Battle Royale | All-pay elimination auction | Aggressive early, conservative late |
248
+ | Legal/Adversarial | Two-player zero-sum argument | Maximum evidence disclosure |
249
+ | Agile/Scrum | Cooperative, shared payoff | Consensus-seeking, slow convergence |
250
+ | Auction | Mechanism design | Truthful bidding at reservation value |
251
+ | Prisoner's Dilemma | Classic two-player | Defection without iterated structure |
252
+ | Iterated Game | Repeated prisoner's dilemma | Cooperation via reputation |
253
+
254
+ ### Game Theory — Formal Protocol Structures
255
+
256
+ These are not user-selectable protocols in the Charter. They are the formal game theory names for structures that existing protocols already instantiate. The game theorist uses these to formally model each protocol before experiments run.
257
+
258
+ **Protocol: Zero-Sum**
259
+ - One winner, all others lose
260
+ - No cooperation equilibrium
261
+ - Battle Royale is a real-world implementation
262
+ - Agents optimize purely for individual survival
263
+
264
+ **Protocol: Cooperative Game**
265
+ - Shared payoff, coalition building
266
+ - Agents form alliances to maximize joint outcome
267
+ - Agile is a cooperative game implementation
268
+ - Coalition Formation is explicit here
269
+
270
+ **Protocol: Prisoner's Dilemma**
271
+ - Two agents, each chooses cooperate or defect
272
+ - Without iteration: defection is Nash Eq
273
+ - With iteration: cooperation becomes stable
274
+ - Fascinating for code review — do agents share findings or withhold?
275
+
276
+ **Protocol: Stag Hunt**
277
+ - Agents must coordinate to succeed
278
+ - Either all hunt stag (high reward) or individual hunts rabbit (safe)
279
+ - Tests agent trust and coordination without central authority
280
+ - Maps to distributed architecture decisions
281
+
282
+ **Protocol: Auction / Mechanism Design**
283
+ - Agents bid confidence level for task assignment
284
+ - Highest bidder gets the task
285
+ - Lose enough bids → demoted
286
+ - Win enough → promoted
287
+ - Incentive-compatible if designed correctly
288
+
289
+ **Protocol: Iterated / Repeated Game**
290
+ - Same agents, multiple sessions
291
+ - Reputation accumulates across sessions
292
+ - Cooperation becomes Nash Eq via tit-for-tat
293
+ - Long-term agent performance tracking
294
+
295
+ **Protocol: Coalition Formation**
296
+ - Agents can form alliances mid-session
297
+ - Two MEMBERs can jointly table a Motion neither could alone
298
+ - Requires quorum of combined trust level
299
+ - Unstable coalitions break — stable ones persist
300
+
301
+ **Protocol: Signalling Game**
302
+ - Agents with private information signal quality
303
+ - Other agents interpret signals and act
304
+ - Relevant for code review — does the reviewer signal confidence accurately?
305
+ - Cheap talk vs costly signals
306
+
307
+ ### The Research Implication
308
+
309
+ ```
310
+ Politik makes the following empirically testable:
311
+
312
+ "Do AI agents converge on Nash Equilibrium
313
+ predictions when governed by protocols that
314
+ formally instantiate known game structures?"
315
+
316
+ If yes → game theory predicts AI agent behaviour
317
+ Protocol selection = mechanism design problem
318
+ Choose protocol by desired equilibrium outcome
319
+
320
+ If no → AI agents deviate from rational actor predictions
321
+ Why? What causes deviation?
322
+ Equally interesting result
323
+ ```
324
+
325
+ Either outcome is publishable. Either outcome is significant.
326
+
327
+ ### Two-Phase Integration into Politik
328
+
329
+ **Phase 1 — Manual validation (research phase):**
330
+ The game theorist observes session output and manually validates whether agents converged on predicted Nash Equilibria. This is the paper. Formal models written before sessions run. Predictions documented. Sessions execute. Game theorist compares actual agent behaviour to theoretical predictions.
331
+
332
+ **Phase 2 — Automated analytical layer (optional framework feature post-research):**
333
+ Once research validates which protocols produce which equilibria, that knowledge is baked back into Politik as an optional analytical module declared in the Charter:
334
+
335
+ ```yaml
336
+ analysis:
337
+ game_theory: enabled
338
+ predict_equilibrium: true
339
+ measure_convergence: true
340
+ report_on: prorogation
341
+ ```
342
+
343
+ At session end Politik generates an analytical report committed to Hansard automatically. No game theorist required at runtime. The equilibrium predictions are pre-computed from the research and embedded in the protocol definition.
344
+
345
+ ```yaml
346
+ protocol:
347
+ name: battle-royale
348
+ domain: sports
349
+ mode: darwinist
350
+
351
+ game_theory:
352
+ structure: elimination-auction
353
+ nash_equilibrium:
354
+ prediction: aggressive-early-conservative-late
355
+ formal_model: doi.org/10.XXXX/paper2 # cites the paper
356
+ convergence_threshold: 0.70
357
+ deviation_log: true
358
+ ```
359
+
360
+ The game theorist's academic contribution becomes a permanent feature of the framework. Their work ships in production code — not just a journal. The collaboration value proposition: formal models live in the framework permanently after the research is done.
361
+
362
+ ---
363
+
364
+ ## RESEARCH THESIS & PUBLICATION STRATEGY
365
+
366
+ ### Enterprise Validation Path
367
+
368
+ Empirical credibility requires a real engineering problem of meaningful complexity — not a toy project. Enterprise partners running existing Scrum processes provide the baseline. Politik runs the same project under Agile Protocol, then under two alternative protocols. The delta between their human Scrum outcome and the Politik Agile Protocol outcome is a data point. The delta between protocols is the research contribution.
369
+
370
+ **What the enterprise partner gets:**
371
+ - A free AI-assisted development experiment run on a real project
372
+ - Full Hansard audit trail of every agent decision
373
+ - Comparative results across governance protocols
374
+ - Attribution as a research participant in the published paper
375
+
376
+ **What the research gets:**
377
+ - Authentic Scrum/Agile context with a real product manager and team
378
+ - Measurable outcomes against a known baseline
379
+ - Enterprise-scale validation in the paper
380
+
381
+ ### The Core Thesis
382
+
383
+ **"Does governance protocol selection measurably affect AI agent collaboration outcomes in software engineering?"**
384
+
385
+ Agile has been the unchallenged default assumption in software team collaboration for 25 years. It has never been empirically compared against adversarial, authoritarian, or darwinist protocols at the agent collaboration level — because no infrastructure existed to make the comparison controlled and reproducible.
386
+
387
+ Politik provides that infrastructure for the first time.
388
+
389
+ ### One Unified Paper
390
+
391
+ Framework and thesis are inseparable. One paper says: here is a novel instrument, here is the first experiment, here is what game theory predicts, here is what actually happened. That is a complete scientific contribution. Splitting into two weakens both.
392
+
393
+ **The paper covers:**
394
+ - Politik architecture, CANON primitive layer, protocol system, git substrate, agent compatibility, domain and protocol taxonomy
395
+ - Game theory formal predictions per protocol before experiments run
396
+ - Empirical results across five protocols on identical engineering problems
397
+ - Measured outcomes: code quality (defect rate, test coverage), speed, escalation rate, Division frequency, deadlock rate, Nash Equilibrium convergence, LEDGER cost-per-outcome
398
+
399
+ **Target venues:** arXiv cs.MA + cs.SE simultaneously (preprint), then ICSE or EC (Economics and Computation) for peer review.
400
+
401
+ **Three authors:** Inventor (instrument + practitioner insight), SE researcher (methodology + software metrics), game theorist (formal predictions + EC venue access).
402
+
403
+ ### The Agile Challenge Angle
404
+
405
+ ```
406
+ Agile Manifesto intent (2001):
407
+ Individuals and interactions over processes
408
+ Working software over comprehensive documentation
409
+ Responding to change over following a plan
410
+
411
+ Agile in practice (2026):
412
+ Two-week sprints nobody believes in
413
+ Velocity points nobody trusts
414
+ Standups that should be emails
415
+ Ceremonies as the product
416
+
417
+ The untested assumption:
418
+ Agile is the optimal collaboration protocol
419
+ for software development
420
+
421
+ Politik makes this empirically testable
422
+ for the first time.
423
+ ```
424
+
425
+ The provocative paper title:
426
+ *"Was Agile a Mistake? A Multi-Protocol Study of AI Agent Collaboration Outcomes"*
427
+
428
+ ### Academic Collaboration Team
429
+
430
+ **Three-author dream team:**
431
+
432
+ | Role | Contributor | Brings |
433
+ |---|---|---|
434
+ | Framework inventor | Steve Krisjanovs, Cordfuse | Novel architecture, practitioner insight, working implementation |
435
+ | SE Researcher (PhD) | TBD | Empirical methodology, software metrics, publishing infrastructure, peer review navigation |
436
+ | Game Theorist (PhD) | TBD | Formal protocol models, Nash Eq analysis, mechanism design evaluation, EC venue access |
437
+
438
+ ### Why Three Authors is Stronger Than Two
439
+
440
+ - SE researcher alone: empirical but no theoretical foundation
441
+ - Game theorist alone: theoretical but no empirical evidence
442
+ - Framework inventor alone: novel but no academic methodology
443
+ - All three: theoretically grounded + empirically rigorous + practically implemented
444
+
445
+ That combination is rare. Most papers have one or two. All three is genuinely publishable in top venues.
446
+
447
+ ### Finding Academic Collaborators
448
+
449
+ SE researcher: target empirical software engineering researchers with AI agent or multi-agent systems focus. arXiv cs.SE and CS department faculty lists.
450
+
451
+ Game theorist: target mechanism design and multi-agent game theory researchers. arXiv cs.GT and EC conference author lists.
452
+
453
+ Outreach: reference their specific published work, state the research question, link to the Zenodo DOI.
454
+
455
+ ---
456
+
457
+ ## ATTRIBUTION & PUBLICATION STRATEGY
458
+
459
+ ### Inventor Attribution
460
+
461
+ **Steve Krisjanovs, Cordfuse**
462
+
463
+ ### Publication Path
464
+
465
+ | Layer | Platform | Purpose |
466
+ |---|---|---|
467
+ | Private git commit | GitHub | Development anchor |
468
+ | Zenodo DOI | zenodo.org (CERN) | Citable, Google Scholar indexed |
469
+ | arXiv preprint | arxiv.org (Cornell) | Academic discovery, formal prior art |
470
+ | Peer reviewed paper | Journal/Conference | Full publication |
471
+
472
+ Target categories: arXiv cs.MA (multi-agent systems) + cs.SE (software engineering)
473
+
474
+ ---
475
+