@cordfuse/politik 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXECUTION.md +86 -83
- package/POLITIK-ARCHITECTURE.md +111 -176
- package/PROTOCOLS.md +120 -325
- package/README.md +135 -188
- package/RESEARCH.md +142 -438
- package/RUNTIME.md +254 -262
- 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 +90 -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 +127 -103
- package/src/agents.ts +39 -27
- package/src/ballot.ts +747 -0
- package/src/canon.ts +23 -10
- package/src/capability.ts +16 -99
- package/src/charter.ts +41 -34
- package/src/cli.ts +535 -480
- package/src/{prorogation.ts → closing.ts} +43 -43
- package/src/conflict.ts +14 -14
- package/src/containment.ts +11 -11
- package/src/doctor.ts +1 -1
- package/src/election.ts +4 -4
- package/src/envelope.ts +3 -3
- package/src/escalation.ts +45 -45
- package/src/fault.ts +8 -8
- package/src/federation.ts +14 -14
- package/src/git.ts +17 -17
- package/src/heartbeat.ts +32 -32
- package/src/index.ts +5 -5
- package/src/init.ts +66 -65
- package/src/integrity.ts +30 -30
- package/src/ledger.ts +3 -3
- package/src/{hansard.ts → log.ts} +20 -20
- package/src/{crisis.ts → misconduct.ts} +70 -70
- package/src/operator.ts +5 -5
- package/src/pending.ts +9 -9
- package/src/projection.ts +30 -30
- package/src/protocol-sdk.ts +12 -121
- package/src/protocol.ts +8 -78
- package/src/providers/github.ts +12 -12
- package/src/quorum.ts +7 -7
- package/src/remote.ts +1 -1
- package/src/runner.ts +73 -56
- package/src/scm.ts +14 -14
- package/src/spawn.ts +4 -4
- package/src/standings.ts +13 -13
- package/src/state.ts +6 -6
- package/src/templates/session.ts +448 -0
- package/src/tournament.ts +20 -20
- package/src/transport.ts +4 -4
- package/src/tree.ts +16 -16
- package/protocols/adversarial-collaboration.yml +0 -28
- package/protocols/corporate.yml +0 -35
- package/protocols/elimination-tournament.yml +0 -41
- package/protocols/emergency-response-ics.yml +0 -27
- package/protocols/jury-deliberation.yml +0 -32
- package/protocols/monarchy.yml +0 -31
- package/protocols/parliamentary.yml +0 -66
- package/protocols/peer-review.yml +0 -44
- package/protocols/republic.yml +0 -36
- package/protocols/scrum.yml +0 -87
- package/protocols/socialism-collective.yml +0 -31
- package/protocols/solo.yml +0 -32
- package/src/division.ts +0 -609
- package/src/templates/parliamentary.ts +0 -581
package/RUNTIME.md
CHANGED
|
@@ -8,7 +8,7 @@ See [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) for CANON and the engine
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## ESCALATION FLOW
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
Agent hits decision requiring human judgement
|
|
@@ -17,18 +17,18 @@ Commits escalation to /escalations/[timestamp].md
|
|
|
17
17
|
↓
|
|
18
18
|
GitHub Actions workflow triggers on path match
|
|
19
19
|
↓
|
|
20
|
-
|
|
20
|
+
owner receives email notification
|
|
21
21
|
↓
|
|
22
22
|
Session suspends (STATE.json → state: SUSPENDED,
|
|
23
|
-
suspension.cause:
|
|
23
|
+
suspension.cause: ESCALATION)
|
|
24
24
|
↓
|
|
25
|
-
|
|
25
|
+
owner reviews, commits ruling.md
|
|
26
26
|
↓
|
|
27
27
|
GitHub Actions detects ruling commit
|
|
28
28
|
↓
|
|
29
29
|
Session resumes (STATE.json → state: CONVENED, suspension: null)
|
|
30
30
|
↓
|
|
31
|
-
Ruling recorded permanently in
|
|
31
|
+
Ruling recorded permanently in log
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
> **Vocabulary note.** Earlier drafts of this flow wrote the pause as
|
|
@@ -37,16 +37,16 @@ Ruling recorded permanently in Hansard
|
|
|
37
37
|
> `suspension.cause`. A pause and a stale heartbeat are different states, not
|
|
38
38
|
> two values of one boolean.
|
|
39
39
|
|
|
40
|
-
###
|
|
40
|
+
### escalation Workflow
|
|
41
41
|
```yaml
|
|
42
42
|
# .github/workflows/point-of-order.yml
|
|
43
|
-
name:
|
|
43
|
+
name: escalation — owner Notification
|
|
44
44
|
on:
|
|
45
45
|
push:
|
|
46
46
|
paths:
|
|
47
47
|
- 'escalations/[0-9]*.md'
|
|
48
48
|
jobs:
|
|
49
|
-
notify-
|
|
49
|
+
notify-owner:
|
|
50
50
|
runs-on: ubuntu-latest
|
|
51
51
|
steps:
|
|
52
52
|
- uses: actions/checkout@v4
|
|
@@ -59,17 +59,17 @@ jobs:
|
|
|
59
59
|
cat "$FILE" >> $GITHUB_OUTPUT
|
|
60
60
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
61
61
|
|
|
62
|
-
- name: Email
|
|
62
|
+
- name: Email owner
|
|
63
63
|
uses: dawidd6/action-send-mail@v3
|
|
64
64
|
with:
|
|
65
65
|
server_address: smtp.gmail.com
|
|
66
66
|
server_port: 465
|
|
67
67
|
username: ${{ secrets.MAIL_USERNAME }}
|
|
68
68
|
password: ${{ secrets.MAIL_PASSWORD }}
|
|
69
|
-
to: ${{ secrets.
|
|
70
|
-
subject: "⚖️
|
|
69
|
+
to: ${{ secrets.OWNER_EMAIL }}
|
|
70
|
+
subject: "⚖️ escalation — ${{ github.repository }}"
|
|
71
71
|
body: |
|
|
72
|
-
A
|
|
72
|
+
A escalation has been raised.
|
|
73
73
|
|
|
74
74
|
${{ steps.esc.outputs.content }}
|
|
75
75
|
|
|
@@ -87,41 +87,41 @@ jobs:
|
|
|
87
87
|
|
|
88
88
|
An actor exiting a session may have left for one of two fundamentally different reasons:
|
|
89
89
|
|
|
90
|
-
**Legitimate elimination** — the actor lost fairly under the protocol rules. Outscored in a Tournament. Outvoted in a
|
|
90
|
+
**Legitimate elimination** — the actor lost fairly under the protocol rules. Outscored in a Tournament. Outvoted in a vote. Failed to meet a performance threshold. The protocol worked as designed.
|
|
91
91
|
|
|
92
|
-
**Bad faith elimination** — the actor was removed through collusion, malice, envy, or procedural abuse. Another actor filed a false
|
|
92
|
+
**Bad faith elimination** — the actor was removed through collusion, malice, envy, or procedural abuse. Another actor filed a false escalation. A coalition formed specifically to expel a competitor rather than to advance the session's goals. An OPERATOR abused PROMOTE/DEMOTE powers to suppress a MEMBER whose output threatened their standing.
|
|
93
93
|
|
|
94
|
-
This distinction matters. An immutable
|
|
94
|
+
This distinction matters. An immutable log records that an actor was expelled. It does not automatically record *why* — or whether the why was legitimate.
|
|
95
95
|
|
|
96
|
-
Machine actors do not feel hatred or jealousy. But they can be **instructed** to eliminate rivals by human actors operating through the system, or by other machine actors whose prompts encode bad faith objectives. The
|
|
96
|
+
Machine actors do not feel hatred or jealousy. But they can be **instructed** to eliminate rivals by human actors operating through the system, or by other machine actors whose prompts encode bad faith objectives. The log is the defence — but only if the escalation mechanism is used correctly.
|
|
97
97
|
|
|
98
98
|
### Exit Types
|
|
99
99
|
|
|
100
|
-
The following EXIT classifications must be declared in the
|
|
100
|
+
The following EXIT classifications must be declared in the log at the point of actor removal:
|
|
101
101
|
|
|
102
102
|
| Exit Type | Code | Description |
|
|
103
103
|
|---|---|---|
|
|
104
104
|
| Performance | `EXIT_PERFORMANCE` | Actor failed to meet objective criteria defined in Charter |
|
|
105
|
-
| Protocol | `EXIT_PROTOCOL` | Actor violated
|
|
106
|
-
|
|
|
105
|
+
| Protocol | `EXIT_PROTOCOL` | Actor violated Charter — documented violation required |
|
|
106
|
+
| vote | `EXIT_DIVISION` | Actor removed by legitimate vote with quorum |
|
|
107
107
|
| Voluntary — Concession | `EXIT_VOLUNTARY_CONCESSION` | Actor evaluated the evidence, accepted they lost on merit, withdrew with integrity |
|
|
108
|
-
| Voluntary — Strategic | `EXIT_VOLUNTARY_STRATEGIC` | Actor withdrew before a
|
|
108
|
+
| Voluntary — Strategic | `EXIT_VOLUNTARY_STRATEGIC` | Actor withdrew before a vote to deny quorum, deprive rival of formal win, or avoid a recorded defeat |
|
|
109
109
|
| Voluntary — Coerced | `EXIT_VOLUNTARY_COERCED` | Actor was pressured, threatened, or manipulated into withdrawing. On paper voluntary. In practice expulsion by other means. Also known as "voluntold." |
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
| Disputed | `EXIT_DISPUTED` | Actor filed
|
|
110
|
+
| Eliminated | `EXIT_ELIMINATED` | Knocked out by the cull after a vote (`elimination-rounds`) |
|
|
111
|
+
| owner | `EXIT_OWNER` | AUTHORITY ruled removal — owner ruling committed to log |
|
|
112
|
+
| Disputed | `EXIT_DISPUTED` | Actor filed an escalation challenging their own removal |
|
|
113
113
|
|
|
114
114
|
### The Voluntold Problem
|
|
115
115
|
|
|
116
116
|
`EXIT_VOLUNTARY_COERCED` is the most dangerous exit type in the taxonomy — not because it is violent but because it is invisible.
|
|
117
117
|
|
|
118
|
-
The coercion happens outside the session. An OPERATOR privately threatens a MEMBER. A coalition signals consequences. A human
|
|
118
|
+
The coercion happens outside the session. An OPERATOR privately threatens a MEMBER. A coalition signals consequences. A human owner leans on an agent's prompt. The MEMBER files what looks like a clean voluntary exit. The log shows nothing wrong.
|
|
119
119
|
|
|
120
120
|
This is "voluntold" — the actor technically chose to leave, but the choice was manufactured by someone else's pressure or manipulation.
|
|
121
121
|
|
|
122
|
-
It is common in real governance for exactly this reason: it produces all the outcomes of bad faith expulsion while generating none of the
|
|
122
|
+
It is common in real governance for exactly this reason: it produces all the outcomes of bad faith expulsion while generating none of the log evidence that a disputed exit would create. The coercer gets the result. The record stays clean.
|
|
123
123
|
|
|
124
|
-
**
|
|
124
|
+
**What is going on:**
|
|
125
125
|
- **Manipulation** by the coercing actor — engineering a desired outcome through pressure not procedure
|
|
126
126
|
- **Cowardice** by the coerced actor — withdrawing rather than filing a disputed exit and forcing the record
|
|
127
127
|
- **Wrath** as the underlying motivation — the coercer wanted the actor gone personally, not procedurally
|
|
@@ -132,25 +132,25 @@ It is common in real governance for exactly this reason: it produces all the out
|
|
|
132
132
|
# Charter configuration options for voluntold mitigation
|
|
133
133
|
|
|
134
134
|
voluntary_exit_during_division:
|
|
135
|
-
require_concession_statement: true # Actor must commit reason to
|
|
135
|
+
require_concession_statement: true # Actor must commit reason to log
|
|
136
136
|
cooling_off_minutes: 15 # Delay before exit is processed
|
|
137
|
-
|
|
137
|
+
auto_notify_owner: true # owner notified even without escalation
|
|
138
138
|
allow_disputed_conversion: true # Actor can convert to EXIT_DISPUTED
|
|
139
139
|
# within the cooling-off window
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
None of these catch a determined coercer operating entirely outside the session. But they create friction that makes the pattern visible over time. If the same OPERATOR repeatedly has MEMBERs "voluntarily" withdraw during active
|
|
142
|
+
None of these catch a determined coercer operating entirely outside the session. But they create friction that makes the pattern visible over time. If the same OPERATOR repeatedly has MEMBERs "voluntarily" withdraw during active votes, the log pattern speaks for itself. The audit trail is the deterrent — and it is no longer only passive: `politik integrity` reads the log for exactly these signatures (a coerced exit, a strategic withdrawal during an open vote, a serial "voluntold") and an honest-concession virtue, and surfaces them to the owner. Detect and report; it never auto-punishes.
|
|
143
143
|
|
|
144
|
-
**What the
|
|
144
|
+
**What the log can detect:**
|
|
145
145
|
|
|
146
146
|
| Pattern | Signal |
|
|
147
147
|
|---|---|
|
|
148
|
-
| Serial voluntary exits | Multiple MEMBERs withdrawing during
|
|
149
|
-
| Timing correlation | EXIT_VOLUNTARY_STRATEGIC filed within seconds of a
|
|
150
|
-
| No concession statement | Voluntary exit during active
|
|
148
|
+
| Serial voluntary exits | Multiple MEMBERs withdrawing during votes where the same OPERATOR is present |
|
|
149
|
+
| Timing correlation | EXIT_VOLUNTARY_STRATEGIC filed within seconds of a vote opening — no deliberation time |
|
|
150
|
+
| No concession statement | Voluntary exit during active vote with no stated reason — Charter violation if required |
|
|
151
151
|
| Repeat target | Same MEMBER voluntarily exits whenever same OPERATOR is present across multiple sessions |
|
|
152
152
|
|
|
153
|
-
**The hard truth:** A
|
|
153
|
+
**The hard truth:** A owner who is the coercer cannot be appealed to. This is the one scenario where the constitutional model fails — when the constitutional authority itself is corrupt. Politik has no answer to a bad faith owner beyond the log record being visible to everyone who can read the repo. Transparency is the only remaining defence.
|
|
154
154
|
|
|
155
155
|
### Disputed Exit Flow
|
|
156
156
|
|
|
@@ -163,66 +163,64 @@ The removed actor files:
|
|
|
163
163
|
politik actor dispute --actor <them> --grounds <text>
|
|
164
164
|
(only the removed actor may file — a third party cannot dispute on their behalf)
|
|
165
165
|
↓
|
|
166
|
-
The
|
|
166
|
+
The session auto-suspends, cause DISPUTED_EXIT
|
|
167
167
|
↓
|
|
168
|
-
|
|
168
|
+
owner reviews the log — was the removal procedurally valid?
|
|
169
169
|
↓
|
|
170
|
-
|
|
170
|
+
owner rules:
|
|
171
171
|
politik actor reinstate --subject <them> --ruling UPHELD|REVERSED
|
|
172
172
|
UPHELD → the removal is overturned; the actor is reinstated to the seat they held
|
|
173
173
|
REVERSED → the removal stands; the actor remains out
|
|
174
174
|
↓
|
|
175
|
-
Either ruling resumes the
|
|
175
|
+
Either ruling resumes the session and is committed to the log permanently
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
### The
|
|
178
|
+
### The log as Integrity Layer
|
|
179
179
|
|
|
180
|
-
The immutable
|
|
180
|
+
The immutable log is the primary defence against bad faith elimination. Because every action is recorded with attribution, a disputed exit can be audited completely:
|
|
181
181
|
|
|
182
182
|
- Who filed the motion to expel?
|
|
183
183
|
- What was cited as the reason?
|
|
184
|
-
- Was that reason supported by prior
|
|
184
|
+
- Was that reason supported by prior log entries?
|
|
185
185
|
- Did the expelling actor have a pattern of targeting this specific actor?
|
|
186
|
-
- Was quorum met for the
|
|
186
|
+
- Was quorum met for the vote?
|
|
187
187
|
|
|
188
|
-
A
|
|
188
|
+
A owner reviewing a disputed exit reads the log like a judge reads a transcript. The record either supports the elimination or it doesn't.
|
|
189
189
|
|
|
190
|
-
### Bad Faith Patterns — What the
|
|
190
|
+
### Bad Faith Patterns — What the log Can Detect
|
|
191
191
|
|
|
192
|
-
| Pattern |
|
|
192
|
+
| Pattern | log signal |
|
|
193
193
|
|---|---|
|
|
194
|
-
| Targeted harassment | Single actor repeatedly filing
|
|
194
|
+
| Targeted harassment | Single actor repeatedly filing escalations against the same target |
|
|
195
195
|
| Coalition expulsion | Multiple actors coordinating EXPEL motions against a competitor with no performance basis |
|
|
196
|
-
| Procedural abuse | EXPEL filed with no cited
|
|
197
|
-
| Timing manipulation | EXPEL filed immediately before a key
|
|
198
|
-
| False escalation |
|
|
196
|
+
| Procedural abuse | EXPEL filed with no cited Charter violation |
|
|
197
|
+
| Timing manipulation | EXPEL filed immediately before a key vote where the target's vote would matter |
|
|
198
|
+
| False escalation | escalation citing a violation that does not appear in the log record |
|
|
199
199
|
|
|
200
|
-
### Protocol
|
|
200
|
+
### Protocol and Bad Faith Risk
|
|
201
201
|
|
|
202
|
-
Not all protocols have the same exposure to bad faith elimination:
|
|
202
|
+
Not all protocols have the same exposure to bad faith elimination (ADR-0013):
|
|
203
203
|
|
|
204
|
-
|
|
|
204
|
+
| Protocol | Bad faith risk | Mitigation |
|
|
205
205
|
|---|---|---|
|
|
206
|
-
|
|
|
207
|
-
|
|
|
208
|
-
|
|
|
209
|
-
|
|
|
210
|
-
|
|
|
206
|
+
| `majority-vote` | Medium — removal needs a carried removal vote | The vote and its voters are on the log |
|
|
207
|
+
| `unanimous-vote` | Low — nobody can be removed | `exit: none` |
|
|
208
|
+
| `single-decider` | High — the owner removes alone, no appeals | Every removal is attributed and permanent; misconduct reporting |
|
|
209
|
+
| `elimination-rounds` | Low — elimination is mechanical, not political | The Charter is locked; the cull follows the vote |
|
|
210
|
+
| `panel-review` | Medium — the panel can vote a member off | Removal votes are recorded and never end the session |
|
|
211
|
+
| `adversarial-review` | Low — the Charter is locked and both sides must accept | Neither side can outvote the other |
|
|
211
212
|
|
|
212
|
-
###
|
|
213
|
+
### Why the Log Is the Defence
|
|
213
214
|
|
|
214
|
-
Bad faith elimination
|
|
215
|
+
Bad faith elimination usually wears a familiar face: removing a competitor whose
|
|
216
|
+
output is better, an actor who disagreed earlier, or an outsider the in-group
|
|
217
|
+
dislikes. Agents rarely start this on their own, but an owner can prompt them into
|
|
218
|
+
it through the Charter or a task. The log exposes it — but only if someone reads
|
|
219
|
+
it, which is what `politik integrity` is for.
|
|
215
220
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
- **Pride** — refusing to accept that an actor's MOTION was superior to yours
|
|
220
|
-
|
|
221
|
-
Machine actors do not initiate bad faith elimination spontaneously. But they can be prompted into it by human Speakers who embed malicious objectives into Charter or session prompts. The Hansard exposes this — but only if someone reads it.
|
|
222
|
-
|
|
223
|
-
The Speaker role exists precisely to prevent this. A neutral constitutional authority who enforces procedure not outcome. The original parliamentary Speaker was created for exactly this reason: to prevent the majority from simply ejecting members who inconvenienced them.
|
|
224
|
-
|
|
225
|
-
Politik inherits both the problem and the solution.
|
|
221
|
+
The owner role exists to enforce procedure, not outcome: to stop a majority from
|
|
222
|
+
simply ejecting members who inconvenience it. Politik inherits both the problem and
|
|
223
|
+
the solution.
|
|
226
224
|
|
|
227
225
|
---
|
|
228
226
|
|
|
@@ -275,21 +273,21 @@ A subset of agents support structured JSON-over-stdio — useful when an operato
|
|
|
275
273
|
|
|
276
274
|
---
|
|
277
275
|
|
|
278
|
-
## THE OPERATOR CONSOLE
|
|
276
|
+
## THE OPERATOR CONSOLE
|
|
279
277
|
|
|
280
|
-
The **operator console** is the
|
|
278
|
+
The **operator console** is the owner's window into a session — how a human opens a session, receives escalations, and reads the log. It is **not a specific product**. Any interactive session serves as the console: an agent CLI itself (Claude Code, Gemini CLI, etc.), a plain terminal, or a thin Politik CLI. It opens and closes sessions and relays to the owner; it is not a session participant.
|
|
281
279
|
|
|
282
280
|
| Component | Role |
|
|
283
281
|
|---|---|
|
|
284
|
-
| Operator console |
|
|
282
|
+
| Operator console | owner's window. Opens and closes sessions. Any interactive session, incl. an agent CLI. Not the Chamber. |
|
|
285
283
|
| Chamber floor | The transport (git-based default, NATS an opt-in upgrade). The console has no listener here. |
|
|
286
284
|
| Constituency | CLI agent process — spawns, works, disposes |
|
|
287
285
|
|
|
288
286
|
### What the console does
|
|
289
|
-
-
|
|
290
|
-
- Receive
|
|
291
|
-
- Review the
|
|
292
|
-
- Intervene when
|
|
287
|
+
- Open the session (create and configure the session repo)
|
|
288
|
+
- Receive escalation notifications (email / SCM)
|
|
289
|
+
- Review the log when the session closes
|
|
290
|
+
- Intervene when an escalation escalates to the owner
|
|
293
291
|
|
|
294
292
|
### What the console does not do
|
|
295
293
|
- See real-time agent chatter — the Chamber floor is carried by the transport, not the console
|
|
@@ -303,7 +301,7 @@ The **operator console** is the Speaker's window into a session — how a human
|
|
|
303
301
|
| State location | The console session | Git repo |
|
|
304
302
|
| Lifecycle | Long-lived (the human is present) | Spawn and dispose |
|
|
305
303
|
|
|
306
|
-
The console is where the human is constitutionally present. The constituencies are where work happens and disposes. They coexist by design — the console never needs to tail the Chamber, because the
|
|
304
|
+
The console is where the human is constitutionally present. The constituencies are where work happens and disposes. They coexist by design — the console never needs to tail the Chamber, because the log is the session.
|
|
307
305
|
|
|
308
306
|
---
|
|
309
307
|
|
|
@@ -408,19 +406,19 @@ Works on Linux and macOS. Windows requires WSLg (Windows 11 only, untested).
|
|
|
408
406
|
|
|
409
407
|
### Deadlock — a tie is the absence of a decision
|
|
410
408
|
|
|
411
|
-
A
|
|
412
|
-
could not decide, so recording a loss would be false. `politik
|
|
413
|
-
detects the tie and **auto-suspends** the
|
|
409
|
+
A vote that ties with quorum met is a **DEADLOCK**, not a rejection: the vote
|
|
410
|
+
could not decide, so recording a loss would be false. `politik vote tally`
|
|
411
|
+
detects the tie and **auto-suspends** the session with cause `DEADLOCK` (ADR-0004
|
|
414
412
|
Proposal 4) rather than passing silently. Only AUTHORITY can supply the decision
|
|
415
|
-
the
|
|
413
|
+
the vote could not reach:
|
|
416
414
|
|
|
417
415
|
```sh
|
|
418
|
-
politik
|
|
416
|
+
politik vote break --motion <id> --actor <owner> --decide carry|reject
|
|
419
417
|
```
|
|
420
418
|
|
|
421
419
|
The casting vote is a real vote — it flows through the ordinary tally, so the
|
|
422
|
-
Motion is decided (carried or rejected) and every downstream reader,
|
|
423
|
-
included, sees a decided
|
|
420
|
+
Motion is decided (carried or rejected) and every downstream reader, enactment
|
|
421
|
+
included, sees a decided vote. The session resumes.
|
|
424
422
|
|
|
425
423
|
### Session Termination Conditions
|
|
426
424
|
|
|
@@ -430,7 +428,7 @@ A proceeding ends when **any one** of the following conditions is met first —
|
|
|
430
428
|
TERMINATE if (motions >= max_motions) ← TRIGGER_TURNS
|
|
431
429
|
OR (now >= deadline) ← TRIGGER_DEADLINE
|
|
432
430
|
OR (total_cost >= max_cost_usd) ← TRIGGER_COST
|
|
433
|
-
OR (AUTHORITY issues DISSOLVE verb) ←
|
|
431
|
+
OR (AUTHORITY issues DISSOLVE verb) ← TRIGGER_OWNER
|
|
434
432
|
```
|
|
435
433
|
|
|
436
434
|
```yaml
|
|
@@ -438,17 +436,17 @@ session:
|
|
|
438
436
|
max_motions: 20 # turns ceiling (optional)
|
|
439
437
|
deadline: 2026-04-30T17:00:00-04:00 # wall-clock ceiling (optional)
|
|
440
438
|
max_cost_usd: 5.00 # cost ceiling (optional)
|
|
441
|
-
cost_warning_usd: 4.00 #
|
|
439
|
+
cost_warning_usd: 4.00 # owner notified before ceiling (optional)
|
|
442
440
|
deadline_action: escalate # what happens when any ceiling triggers
|
|
443
441
|
```
|
|
444
442
|
|
|
445
|
-
**Cost ceiling** is the most critical guardrail for API key deployments. Without it an overnight proceeding can burn significant credits before anyone notices. With `max_cost_usd` set, the proceeding auto-suspends the moment it hits the limit and routes to the
|
|
443
|
+
**Cost ceiling** is the most critical guardrail for API key deployments. Without it an overnight proceeding can burn significant credits before anyone notices. With `max_cost_usd` set, the proceeding auto-suspends the moment it hits the limit and routes to the owner.
|
|
446
444
|
|
|
447
|
-
**Cost warning** fires before the ceiling — giving the
|
|
445
|
+
**Cost warning** fires before the ceiling — giving the owner a heads-up to intervene, extend budget, or gracefully wind down. Same model as a low-fuel warning before the engine cuts out.
|
|
448
446
|
|
|
449
447
|
### SESSION_TIMEOUT — Trigger Tracking
|
|
450
448
|
|
|
451
|
-
The `SESSION_TIMEOUT`
|
|
449
|
+
The `SESSION_TIMEOUT` log record always names **which condition triggered** and the state of all other conditions at that moment:
|
|
452
450
|
|
|
453
451
|
```markdown
|
|
454
452
|
# SESSION_TIMEOUT
|
|
@@ -467,17 +465,17 @@ The `SESSION_TIMEOUT` Hansard record always names **which condition triggered**
|
|
|
467
465
|
|
|
468
466
|
## In Flight at timeout
|
|
469
467
|
- OPERATOR-2 mid-task: writing test suite (50% complete)
|
|
470
|
-
- Motion MOTION-14 tabled but
|
|
468
|
+
- Motion MOTION-14 tabled but vote not yet called
|
|
471
469
|
|
|
472
470
|
## Pending at timeout
|
|
473
471
|
- MOTION-15 not yet tabled
|
|
474
|
-
- Escalation ESC-003 awaiting
|
|
472
|
+
- Escalation ESC-003 awaiting owner ruling
|
|
475
473
|
|
|
476
474
|
## Nothing is lost
|
|
477
|
-
All committed work is in the
|
|
475
|
+
All committed work is in the log. To resume:
|
|
478
476
|
politik resume --session [session-id]
|
|
479
|
-
To
|
|
480
|
-
politik
|
|
477
|
+
To close:
|
|
478
|
+
politik close --session [session-id]
|
|
481
479
|
```
|
|
482
480
|
|
|
483
481
|
Three trigger codes:
|
|
@@ -487,23 +485,23 @@ Three trigger codes:
|
|
|
487
485
|
| Turns exhausted | `TRIGGER_TURNS` | `motions >= max_motions` |
|
|
488
486
|
| Wall-clock deadline | `TRIGGER_DEADLINE` | `now >= deadline` |
|
|
489
487
|
| Cost ceiling | `TRIGGER_COST` | `total_cost >= max_cost_usd` |
|
|
490
|
-
|
|
|
488
|
+
| owner closed | `TRIGGER_OWNER` | `DISSOLVE` verb issued |
|
|
491
489
|
|
|
492
490
|
**Protocol-specific defaults:**
|
|
493
491
|
|
|
494
492
|
| Protocol mode | Default deadline_action |
|
|
495
493
|
|---|---|
|
|
496
|
-
| Constitutional | `DEADLINE_ESCALATE` —
|
|
494
|
+
| Constitutional | `DEADLINE_ESCALATE` — owner decides |
|
|
497
495
|
| Darwinist | `DEADLINE_DISSOLVE` — incomplete = no winner, session void |
|
|
498
496
|
| Authoritarian | `DEADLINE_SUSPEND` — AUTHORITY resumes when ready |
|
|
499
497
|
| Ephemeral | `DEADLINE_DISSOLVE` — by definition time-boxed |
|
|
500
|
-
| Immutable | `DEADLINE_ESCALATE` — Charter cannot be changed,
|
|
498
|
+
| Immutable | `DEADLINE_ESCALATE` — Charter cannot be changed, owner must rule |
|
|
501
499
|
|
|
502
500
|
---
|
|
503
501
|
|
|
504
502
|
### SESSION LEDGER — Secretarial Cost and Token Tracking
|
|
505
503
|
|
|
506
|
-
The
|
|
504
|
+
The log is the session record. The LEDGER is the secretarial accounting record. They are separate files with separate purposes.
|
|
507
505
|
|
|
508
506
|
**`LEDGER.md`** — one file per session repo, auto-committed by the engine after every motion closes. The Clerk role owns it.
|
|
509
507
|
|
|
@@ -515,8 +513,8 @@ The Hansard is the session record. The LEDGER is the secretarial accounting reco
|
|
|
515
513
|
|---|---|---|---|---|---|---|---|---|
|
|
516
514
|
| 01 | OPERATOR-1 | 3:02pm EDT Apr 9 | 45s | 1,842 | 347 | 1,200 | $0.008 | Scaffolded auth module |
|
|
517
515
|
| 02 | OPERATOR-2 | 3:48pm EDT Apr 9 | 2m 12s | 3,104 | 891 | 2,800 | $0.019 | Wrote JWT integration |
|
|
518
|
-
| 03 | MEMBER-1 | 4:15pm EDT Apr 9 | 38s | 922 | 203 | 800 | $0.004 | Filed
|
|
519
|
-
| — |
|
|
516
|
+
| 03 | MEMBER-1 | 4:15pm EDT Apr 9 | 38s | 922 | 203 | 800 | $0.004 | Filed escalation |
|
|
517
|
+
| — | OWNER | 4:22pm EDT Apr 9 | — | — | — | — | — | Ruled: scope confirmed |
|
|
520
518
|
| 04 | OPERATOR-1 | 4:30pm EDT Apr 9 | 1m 55s | 2,441 | 654 | 2,100 | $0.014 | Completed test suite |
|
|
521
519
|
|
|
522
520
|
**Session totals**
|
|
@@ -528,8 +526,8 @@ The Hansard is the session record. The LEDGER is the secretarial accounting reco
|
|
|
528
526
|
- Total estimated cost: $0.045
|
|
529
527
|
|
|
530
528
|
**Termination**
|
|
531
|
-
- Trigger:
|
|
532
|
-
-
|
|
529
|
+
- Trigger: TRIGGER_OWNER
|
|
530
|
+
- Closed: 5:12pm EDT Apr 9, 2026
|
|
533
531
|
```
|
|
534
532
|
|
|
535
533
|
**Token data source:** The Anthropic API returns exact token counts in every response object — `input_tokens`, `output_tokens`, `cache_read_input_tokens`, `cache_creation_input_tokens`. The engine reads these and writes them to LEDGER.md automatically. For Claude.ai conversations (non-API) token counts are estimated.
|
|
@@ -545,7 +543,7 @@ session:
|
|
|
545
543
|
|
|
546
544
|
**Private ledger** — for sessions where cost data should not be publicly visible (commercial client work). Charter sets `ledger_visibility: private` and the engine writes to `.politik/LEDGER.md` which is in `.gitignore`.
|
|
547
545
|
|
|
548
|
-
**Clerk role** — the engine process that auto-commits LEDGER.md entries. Not a human actor. Not an agent. The engine itself acting as session secretary.
|
|
546
|
+
**Clerk role** — the engine process that auto-commits LEDGER.md entries. Not a human actor. Not an agent. The engine itself acting as session secretary. owner actions are logged at zero token cost (no API call fired).
|
|
549
547
|
|
|
550
548
|
---
|
|
551
549
|
|
|
@@ -555,19 +553,19 @@ For long-running proceedings across multiple days — or proceedings interrupted
|
|
|
555
553
|
|
|
556
554
|
**Heartbeat detection:**
|
|
557
555
|
|
|
558
|
-
The built mechanism is the CLI: `politik heartbeat` checks the timestamp of the last
|
|
556
|
+
The built mechanism is the CLI: `politik heartbeat` checks the timestamp of the last log commit, and `politik heartbeat --suspend` marks the proceeding STALE once no commit has occurred within `heartbeat_timeout_hours`. Running that check on a schedule — a GitHub Actions workflow, hourly — is future automation (a scheduled-workflow layer is backlog; the architecture has no daemon of its own).
|
|
559
557
|
|
|
560
558
|
```yaml
|
|
561
559
|
session:
|
|
562
|
-
heartbeat_timeout_hours: 4 # if no
|
|
560
|
+
heartbeat_timeout_hours: 4 # if no log commit in 4hrs → stale
|
|
563
561
|
stale_action: suspend # auto-suspend, not dissolve
|
|
564
562
|
```
|
|
565
563
|
|
|
566
|
-
On stale detection the engine commits `STATE.json → state: STALE` (STALE is a state, not a suspension cause — ADR-0003) and a `SESSION_STALE`
|
|
564
|
+
On stale detection the engine commits `STATE.json → state: STALE` (STALE is a state, not a suspension cause — ADR-0003) and a `SESSION_STALE` log record. Agents check STATE.json before every action — they see STALE and stop immediately; `politik resume --actor <handle>` brings a stale session back to CONVENED.
|
|
567
565
|
|
|
568
566
|
**State snapshots:**
|
|
569
567
|
|
|
570
|
-
Long proceedings commit a `STATE_SNAPSHOT` to
|
|
568
|
+
Long proceedings commit a `STATE_SNAPSHOT` to log at regular intervals — a complete picture of what is done, what is in flight, and what is pending.
|
|
571
569
|
|
|
572
570
|
```yaml
|
|
573
571
|
session:
|
|
@@ -584,8 +582,8 @@ session:
|
|
|
584
582
|
## In Flight
|
|
585
583
|
- OPERATOR-2 mid-task: writing test suite (50% complete)
|
|
586
584
|
|
|
587
|
-
## Pending
|
|
588
|
-
- Motion: use jest vs vitest —
|
|
585
|
+
## Pending votes
|
|
586
|
+
- Motion: use jest vs vitest — vote not yet called
|
|
589
587
|
|
|
590
588
|
## Blocked
|
|
591
589
|
- Waiting on AUTHORITY ruling: escalation filed 13:42
|
|
@@ -601,7 +599,7 @@ session:
|
|
|
601
599
|
politik resume --session cordfuse/politik-PROJ-112
|
|
602
600
|
```
|
|
603
601
|
|
|
604
|
-
The tool reads the last `STATE_SNAPSHOT` from
|
|
602
|
+
The tool reads the last `STATE_SNAPSHOT` from log, reconstructs the session context, and passes it to newly spawned agents as their initialisation prompt. They continue from the checkpoint. The key insight: **the log is the session, not the agent process.** Losing agents does not lose the proceeding. New agents are given the log context and continue.
|
|
605
603
|
|
|
606
604
|
---
|
|
607
605
|
|
|
@@ -637,69 +635,69 @@ A standalone global repo per domain at the org level — `politik-cortex-[name]`
|
|
|
637
635
|
```
|
|
638
636
|
org/politik-cortex-[name] ← global layer (v0.9.x)
|
|
639
637
|
├── actors/
|
|
640
|
-
│ ├── steve-k.md ← actor capability profile — auto-updated on
|
|
638
|
+
│ ├── steve-k.md ← actor capability profile — auto-updated on closing
|
|
641
639
|
│ └── claude-opus.md ← machine actor profile
|
|
642
640
|
├── sessions/
|
|
643
|
-
│ ├── PROJ-101.md ← key decisions, auto-committed on
|
|
641
|
+
│ ├── PROJ-101.md ← key decisions, auto-committed on closing
|
|
644
642
|
│ └── PROJ-102.md
|
|
645
643
|
├── constraints/
|
|
646
644
|
│ └── sprint-2026-04.md ← inherited constraints for this sprint
|
|
647
645
|
└── CHARTER.md ← org-wide defaults inherited by all child nodes
|
|
648
646
|
```
|
|
649
647
|
|
|
650
|
-
Every time a session
|
|
648
|
+
Every time a session closes, the engine auto-commits a decisions summary and observed actor performance back to the global layer. Future sessions query it at session opening. Actor profiles self-improve with every session. Cryptographically linked. No manual curation required.
|
|
651
649
|
|
|
652
650
|
Full design in THE POLITIK TREE section.
|
|
653
651
|
|
|
654
652
|
**What ships in early development builds instead:**
|
|
655
|
-
Agents initialised with
|
|
653
|
+
Agents initialised with log context from their own session only. Cross-session memory declared as a known early-build limitation. Operators who need it can manually include prior decision summaries in the session prompt at session opening as a workaround until v0.9.x ships.
|
|
656
654
|
|
|
657
655
|
|
|
658
656
|
|
|
659
657
|
|
|
660
658
|
### Single-Player Sessions — QUORUM: 1
|
|
661
659
|
|
|
662
|
-
A single agent running under a governed protocol is not collaboration — it is **structured self-discipline**. The Charter constrains what the agent can do, forces it to commit all reasoning to
|
|
660
|
+
A single agent running under a governed protocol is not collaboration — it is **structured self-discipline**. The Charter constrains what the agent can do, forces it to commit all reasoning to log, and requires escalation when it hits boundaries it cannot resolve alone. The governance layer works even with one actor because the constraint is on the process, not the headcount.
|
|
663
661
|
|
|
664
662
|
Valid single-agent use cases:
|
|
665
663
|
|
|
666
664
|
| Protocol | Single-agent value |
|
|
667
665
|
|---|---|
|
|
668
|
-
| Auditor | One agent reviews a codebase, commits findings to
|
|
669
|
-
| Pre-registration | One agent locks a hypothesis, runs analysis, cannot alter methodology without
|
|
670
|
-
| Replication Crisis | One agent attempts to replicate a finding,
|
|
671
|
-
| Writer/Drafter | One agent produces structured output under defined
|
|
666
|
+
| Auditor | One agent reviews a codebase, commits findings to log, escalates anything it cannot classify |
|
|
667
|
+
| Pre-registration | One agent locks a hypothesis, runs analysis, cannot alter methodology without owner approval |
|
|
668
|
+
| Replication Crisis | One agent attempts to replicate a finding, log records every step |
|
|
669
|
+
| Writer/Drafter | One agent produces structured output under defined Charter, no scope creep without escalation |
|
|
672
670
|
|
|
673
671
|
`QUORUM: 1` is a valid explicit Charter configuration. It is not a degenerate case — it is a legitimate session type where the governance value is audit trail and structured constraint, not multi-agent debate.
|
|
674
672
|
|
|
675
673
|
```yaml
|
|
676
674
|
session:
|
|
677
675
|
quorum: 1 # this alone declares a single-player session
|
|
678
|
-
escalation: enabled #
|
|
676
|
+
escalation: enabled # owner still reachable
|
|
679
677
|
```
|
|
680
678
|
|
|
681
|
-
The
|
|
679
|
+
The log is still required — recording is not optional in any non-Ephemeral
|
|
682
680
|
protocol, so a single-player session needs no flag to opt into it.
|
|
683
681
|
|
|
684
682
|
`mode` and `record_mode` belong to `protocol:` (see POLITIK-ARCHITECTURE.md
|
|
685
683
|
§ Protocol Schema Format) and are **not** session-level keys. See ADR-0002.
|
|
686
684
|
|
|
687
|
-
### Minimum Cast — Enforced at
|
|
685
|
+
### Minimum Cast — Enforced at session opening
|
|
688
686
|
|
|
689
|
-
Each protocol declares its minimum viable cast. The engine enforces this at
|
|
687
|
+
Each protocol declares its minimum viable cast. The engine enforces this at session opening — before the session starts. If the minimum cast is not met, the session never opens.
|
|
690
688
|
|
|
691
|
-
**Why
|
|
689
|
+
**Why session opening enforcement, not runtime enforcement:**
|
|
692
690
|
|
|
693
|
-
Runtime discovery of a missing role means invalid state with work already committed to
|
|
691
|
+
Runtime discovery of a missing role means invalid state with work already committed to log. That creates ambiguous, potentially corrupted output. Hard fail at session opening keeps the session substrate clean — either the session opens fully valid or it does not open at all.
|
|
694
692
|
|
|
695
693
|
```
|
|
696
|
-
|
|
694
|
+
session opening validation:
|
|
697
695
|
Charter parsed
|
|
698
696
|
↓
|
|
699
697
|
Minimum cast checked against assigned constituencies
|
|
700
698
|
↓
|
|
701
699
|
PASS → session opens, STATE.json → state: CONVENED
|
|
702
|
-
FAIL → SESSION_INVALID committed to
|
|
700
|
+
FAIL → SESSION_INVALID committed to log
|
|
703
701
|
session never opens
|
|
704
702
|
error specifies which roles are missing
|
|
705
703
|
```
|
|
@@ -709,46 +707,39 @@ Writ Drop validation:
|
|
|
709
707
|
Each protocol definition declares its minimum viable cast. Examples:
|
|
710
708
|
|
|
711
709
|
```yaml
|
|
712
|
-
#
|
|
710
|
+
# majority-vote
|
|
713
711
|
minimum_cast:
|
|
714
|
-
AUTHORITY: 1 #
|
|
715
|
-
OPERATOR:
|
|
716
|
-
|
|
717
|
-
OBSERVER: 0 # Optional
|
|
718
|
-
quorum: 2 # Minimum actors for a valid Division
|
|
712
|
+
AUTHORITY: 1 # owner required — no session without human authority
|
|
713
|
+
OPERATOR: 1 # at least one actor to do the work
|
|
714
|
+
quorum: 2 # minimum votes cast for a valid decision
|
|
719
715
|
|
|
720
|
-
#
|
|
716
|
+
# elimination-rounds
|
|
721
717
|
minimum_cast:
|
|
722
|
-
|
|
718
|
+
AUTHORITY: 1
|
|
719
|
+
OPERATOR: 2 # cannot have a last one standing with one player
|
|
723
720
|
quorum: 2
|
|
724
721
|
|
|
725
|
-
#
|
|
722
|
+
# adversarial-review
|
|
726
723
|
minimum_cast:
|
|
727
|
-
AUTHORITY: 1
|
|
728
|
-
OPERATOR: 1 #
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
# Peer Review
|
|
732
|
-
minimum_cast:
|
|
733
|
-
AUTHORITY: 1 # Editor required
|
|
734
|
-
OPERATOR: 2 # Minimum two reviewers
|
|
735
|
-
MEMBER: 1 # Author required
|
|
736
|
-
quorum: 3
|
|
724
|
+
AUTHORITY: 1
|
|
725
|
+
OPERATOR: 1 # the proposing side
|
|
726
|
+
DELEGATE: 1 # the opposing side
|
|
727
|
+
quorum: 2
|
|
737
728
|
|
|
738
|
-
#
|
|
729
|
+
# One person working alone
|
|
739
730
|
minimum_cast:
|
|
740
|
-
|
|
731
|
+
AUTHORITY: 1
|
|
741
732
|
quorum: 1
|
|
742
733
|
```
|
|
743
734
|
|
|
744
|
-
### SESSION_INVALID —
|
|
735
|
+
### SESSION_INVALID — log Record Type
|
|
745
736
|
|
|
746
|
-
When a session fails minimum cast validation at
|
|
737
|
+
When a session fails minimum cast validation at session opening, the following record is committed to log before the session closes:
|
|
747
738
|
|
|
748
739
|
```markdown
|
|
749
740
|
# SESSION_INVALID
|
|
750
741
|
|
|
751
|
-
**Timestamp:** [
|
|
742
|
+
**Timestamp:** [session opening attempt time]
|
|
752
743
|
**Protocol:** [protocol name]
|
|
753
744
|
**Reason:** Minimum cast not met
|
|
754
745
|
|
|
@@ -756,15 +747,15 @@ When a session fails minimum cast validation at Writ Drop, the following record
|
|
|
756
747
|
- OPERATOR: required 2, assigned 0
|
|
757
748
|
- AUTHORITY: required 1, assigned 0
|
|
758
749
|
|
|
759
|
-
**Resolution:** Assign the missing constituencies and
|
|
750
|
+
**Resolution:** Assign the missing constituencies and open the session again.
|
|
760
751
|
Session has not started. No session state has been written.
|
|
761
752
|
```
|
|
762
753
|
|
|
763
|
-
This gives the
|
|
754
|
+
This gives the owner a clean, auditable record of why the session failed to open.
|
|
764
755
|
|
|
765
756
|
### Degraded Sessions — quorum_override
|
|
766
757
|
|
|
767
|
-
In some circumstances
|
|
758
|
+
In some circumstances an owner may wish to proceed with a reduced cast — acknowledging the degraded configuration explicitly. This is the machine equivalent of a meeting where members are absent but quorum is still technically met.
|
|
768
759
|
|
|
769
760
|
```yaml
|
|
770
761
|
session:
|
|
@@ -774,11 +765,11 @@ session:
|
|
|
774
765
|
```
|
|
775
766
|
|
|
776
767
|
`quorum_override` requires:
|
|
777
|
-
- Explicit `quorum_override_reason` committed to
|
|
768
|
+
- Explicit `quorum_override_reason` committed to log
|
|
778
769
|
- AUTHORITY acknowledgement
|
|
779
|
-
- Cannot override `minimum_cast` for AUTHORITY itself — a session with no
|
|
770
|
+
- Cannot override `minimum_cast` for AUTHORITY itself — a session with no owner cannot proceed under any configuration
|
|
780
771
|
|
|
781
|
-
The override is always visible in the
|
|
772
|
+
The override is always visible in the log. It cannot be hidden. Any reviewer of the session record will see that it ran in degraded mode and why.
|
|
782
773
|
|
|
783
774
|
---
|
|
784
775
|
|
|
@@ -786,7 +777,7 @@ The override is always visible in the Hansard. It cannot be hidden. Any reviewer
|
|
|
786
777
|
|
|
787
778
|
### The Problem
|
|
788
779
|
|
|
789
|
-
A failed agent action looks identical in the
|
|
780
|
+
A failed agent action looks identical in the log whether the agent made a bad decision or whether a GitHub Secret expired. Without fault attribution, Politik cannot distinguish actor failure from infrastructure failure. An innocent actor would be unfairly penalised — demotion triggers, performance record damaged — for something entirely outside their control.
|
|
790
781
|
|
|
791
782
|
### Fault Types
|
|
792
783
|
|
|
@@ -794,12 +785,12 @@ Every failed action must be classified before it touches the actor's record:
|
|
|
794
785
|
|
|
795
786
|
| Fault type | Code | Meaning | Actor penalised? |
|
|
796
787
|
|---|---|---|---|
|
|
797
|
-
| Actor fault | `FAULT_ACTOR` | Bad logic, wrong output,
|
|
788
|
+
| Actor fault | `FAULT_ACTOR` | Bad logic, wrong output, Charter violation | Yes |
|
|
798
789
|
| Infrastructure fault | `FAULT_INFRA` | Secret expired, pipeline misconfigured, API outage, rate limit | No |
|
|
799
790
|
| External fault | `FAULT_EXTERNAL` | Dependency registry down, network partition, third-party API failure | No |
|
|
800
|
-
| Ambiguous | `FAULT_AMBIGUOUS` | Cannot determine — escalates to
|
|
791
|
+
| Ambiguous | `FAULT_AMBIGUOUS` | Cannot determine — escalates to owner for ruling | Pending |
|
|
801
792
|
|
|
802
|
-
### SESSION_FAULT
|
|
793
|
+
### SESSION_FAULT log Record
|
|
803
794
|
|
|
804
795
|
```markdown
|
|
805
796
|
# SESSION_FAULT
|
|
@@ -811,14 +802,14 @@ Every failed action must be classified before it touches the actor's record:
|
|
|
811
802
|
secret name mismatch in workflow config
|
|
812
803
|
**Actor penalised:** No — infrastructure fault, actor blameless
|
|
813
804
|
**Resolution path:** PATH_B — human required
|
|
814
|
-
**Status:** SESSION_SUSPENDED — awaiting
|
|
805
|
+
**Status:** SESSION_SUSPENDED — awaiting owner resolution
|
|
815
806
|
```
|
|
816
807
|
|
|
817
808
|
### Three Resolution Paths
|
|
818
809
|
|
|
819
810
|
**PATH_A — Auto-recoverable**
|
|
820
811
|
|
|
821
|
-
Transient failure — rate limit, temporary outage, secret rotation in progress. Engine retries after configurable delay. No
|
|
812
|
+
Transient failure — rate limit, temporary outage, secret rotation in progress. Engine retries after configurable delay. No owner intervention required. FAULT committed to log with `auto_retry: true`. If retry succeeds, `FAULT_RESOLVED_AUTO` committed. If retry exhausted, escalates to PATH_B.
|
|
822
813
|
|
|
823
814
|
```yaml
|
|
824
815
|
fault_handling:
|
|
@@ -829,7 +820,7 @@ fault_handling:
|
|
|
829
820
|
|
|
830
821
|
**PATH_B — Human required**
|
|
831
822
|
|
|
832
|
-
Infrastructure misconfiguration that only a human can fix — expired secret, wrong secret name, broken workflow YAML, invalid credentials. Session auto-suspends.
|
|
823
|
+
Infrastructure misconfiguration that only a human can fix — expired secret, wrong secret name, broken workflow YAML, invalid credentials. Session auto-suspends. owner notified via GitHub Actions. Human fixes the infrastructure. owner commits `FAULT_RESOLVED` to log. Session resumes from last STATE_SNAPSHOT.
|
|
833
824
|
|
|
834
825
|
```markdown
|
|
835
826
|
# FAULT_RESOLVED
|
|
@@ -850,13 +841,13 @@ Critical infrastructure damage that cannot be repaired within the session — ca
|
|
|
850
841
|
**Fault type:** FAULT_INFRA — CRITICAL
|
|
851
842
|
**What occurred:** Agent executed rebase on protected branch.
|
|
852
843
|
Managed repo history corrupted.
|
|
853
|
-
**Session status:**
|
|
844
|
+
**Session status:** CLOSED — irrecoverable
|
|
854
845
|
**Managed repo:** ISOLATED — no further commits until human review
|
|
855
846
|
**Recovery options:**
|
|
856
847
|
- git reflog may recover pre-rebase state (git feature, not Politik)
|
|
857
848
|
- Branch protection on main would have prevented this —
|
|
858
849
|
recommend enabling for future sessions
|
|
859
|
-
**Forensic record:** Complete
|
|
850
|
+
**Forensic record:** Complete log preserved. See LEDGER.md
|
|
860
851
|
for full action timeline.
|
|
861
852
|
```
|
|
862
853
|
|
|
@@ -865,24 +856,24 @@ Critical infrastructure damage that cannot be repaired within the session — ca
|
|
|
865
856
|
Politik does not repair destroyed git history. It cannot. What it does:
|
|
866
857
|
|
|
867
858
|
- **Limits blast radius** — commit-every-change rule maximises reflog entries
|
|
868
|
-
- **Branch protection
|
|
869
|
-
- **Forensic record** —
|
|
859
|
+
- **Branch protection Charter** — Charter should declare managed repo main as protected; agents work feature branches only
|
|
860
|
+
- **Forensic record** — log tells you what happened, by whom, when, and why — even if the code is gone
|
|
870
861
|
- **Fault attribution** — the actor is not blamed for infrastructure failure
|
|
871
862
|
|
|
872
863
|
Git's own `reflog` is the recovery mechanism for destroyed history. Politik maximises the number of recovery points through its commit discipline. It cannot reconstruct what was never committed.
|
|
873
864
|
|
|
874
865
|
---
|
|
875
866
|
|
|
876
|
-
## ACTOR HIRE AND FIRE —
|
|
867
|
+
## ACTOR HIRE AND FIRE — GOOD AND BAD FAITH
|
|
877
868
|
|
|
878
869
|
### The HIRE Verb
|
|
879
870
|
|
|
880
|
-
Bringing a new actor into a convened proceeding requires an explicit HIRE action committed to
|
|
871
|
+
Bringing a new actor into a convened proceeding requires an explicit HIRE action committed to log:
|
|
881
872
|
|
|
882
873
|
```yaml
|
|
883
874
|
HIRE:
|
|
884
875
|
who_can: [AUTHORITY, OPERATOR] # OPERATOR requires AUTHORITY witness
|
|
885
|
-
committed_to:
|
|
876
|
+
committed_to: log immediately
|
|
886
877
|
effective: next_motion
|
|
887
878
|
required_fields:
|
|
888
879
|
- hiring_actor
|
|
@@ -897,38 +888,38 @@ Charter can optionally require:
|
|
|
897
888
|
hire_policy:
|
|
898
889
|
require_qualifications: true # stated reason must reference capabilities
|
|
899
890
|
require_alternatives_considered: true # were others evaluated?
|
|
900
|
-
authority_veto_window_motions: 2 #
|
|
891
|
+
authority_veto_window_motions: 2 # owner can reverse within N motions
|
|
901
892
|
```
|
|
902
893
|
|
|
903
|
-
### The Four-Quadrant
|
|
894
|
+
### The Four-Quadrant Good/Bad Faith Matrix
|
|
904
895
|
|
|
905
|
-
Every HIRE and FIRE involves two actors — the one doing it and the one it's done to. Each can
|
|
896
|
+
Every HIRE and FIRE involves two actors — the one doing it and the one it's done to. Each can act in good or bad faith. The outcomes are different in every quadrant:
|
|
906
897
|
|
|
907
|
-
| Hirer/Firer | Hire-ee/Fire-ee | Pattern |
|
|
898
|
+
| Hirer/Firer | Hire-ee/Fire-ee | Pattern | log signal |
|
|
908
899
|
|---|---|---|---|
|
|
909
|
-
|
|
|
910
|
-
|
|
|
911
|
-
| **
|
|
912
|
-
|
|
|
900
|
+
| Good faith | Good faith | Clean — merit-based | Performance record supports the decision |
|
|
901
|
+
| Good faith | Bad faith | Legitimate | Violations in log justify it |
|
|
902
|
+
| **Bad faith** | **Good faith** | **The problem** | High performance record + sudden EXIT or HIRE of loyalist |
|
|
903
|
+
| Bad faith | Bad faith | Chaos | Multiple violations, poor output across the board |
|
|
913
904
|
|
|
914
|
-
### The
|
|
905
|
+
### The Bad-Faith Hirer / Good-Faith Fire-ee Pattern
|
|
915
906
|
|
|
916
907
|
The most dangerous quadrant. A narcissistic AUTHORITY fires a high-performing actor because they were inconvenient, or hires a less-qualified loyalist over a better candidate.
|
|
917
908
|
|
|
918
|
-
**The
|
|
909
|
+
**The log makes this visible:**
|
|
919
910
|
|
|
920
911
|
```markdown
|
|
921
|
-
# FIRE —
|
|
912
|
+
# FIRE — log entry
|
|
922
913
|
Actor: AUTHORITY
|
|
923
914
|
Action: EXPEL
|
|
924
915
|
Target: OPERATOR-2
|
|
925
916
|
Reason stated: "Poor alignment with session goals"
|
|
926
|
-
Exit type:
|
|
917
|
+
Exit type: EXIT_OWNER
|
|
927
918
|
|
|
928
919
|
# OPERATOR-2 performance record (prior 12 motions):
|
|
929
920
|
# Motions accepted: 11 of 12
|
|
930
921
|
# Escalations filed against: 0
|
|
931
|
-
#
|
|
922
|
+
# votes won: 8 of 8
|
|
932
923
|
# Demotion triggers hit: 0
|
|
933
924
|
|
|
934
925
|
# HIRE — 2 motions later
|
|
@@ -941,20 +932,21 @@ Stated reason: "Strong alignment with session goals"
|
|
|
941
932
|
# OPERATOR-3 performance record (next 10 motions):
|
|
942
933
|
# Motions accepted: 3 of 10
|
|
943
934
|
# Escalations filed against: 4
|
|
944
|
-
#
|
|
935
|
+
# votes won: 1 of 6
|
|
945
936
|
|
|
946
|
-
# The
|
|
937
|
+
# The log has receipts.
|
|
947
938
|
# The contradiction between the stated reason and the performance
|
|
948
939
|
# record is permanent, attributed, and publicly readable.
|
|
949
940
|
```
|
|
950
941
|
|
|
951
|
-
### Why This Matters
|
|
952
|
-
|
|
953
|
-
Hiring and firing under the influence of Pride (I won't tolerate someone better than me), Envy (their success threatens mine), Tribalism (loyalty over merit), or Hubris (I don't need to justify my decisions) are among the most destructive governance failures in human organisations.
|
|
942
|
+
### Why This Matters
|
|
954
943
|
|
|
955
|
-
|
|
944
|
+
Hiring loyalists and firing threats is one of the oldest ways a group is captured.
|
|
945
|
+
Under `majority-vote` an owner cannot remove anyone without a carried vote; under
|
|
946
|
+
`single-decider` they can, but every removal is attributed, with its stated reason,
|
|
947
|
+
next to the performance record that contradicts it.
|
|
956
948
|
|
|
957
|
-
The
|
|
949
|
+
The log doesn't prevent bad hiring. It makes bad hiring undeniable and permanent.
|
|
958
950
|
|
|
959
951
|
---
|
|
960
952
|
|
|
@@ -972,31 +964,31 @@ A conventional git log tells you what changed and when. It tells you nothing abo
|
|
|
972
964
|
- Whether the acting agent was within its mandate
|
|
973
965
|
- What it cost in tokens, time, and compute
|
|
974
966
|
|
|
975
|
-
The
|
|
967
|
+
The log tells you all of that. Combined with the git log of the managed repo — which the log references by commit hash — you have a complete forensic picture that no other tool produces.
|
|
976
968
|
|
|
977
969
|
### Post-Mortem Investigation Protocol
|
|
978
970
|
|
|
979
971
|
```yaml
|
|
980
972
|
protocol: incident_investigation
|
|
981
973
|
domain: software_forensics
|
|
982
|
-
|
|
974
|
+
# immutable Charter, human-led investigation
|
|
983
975
|
|
|
984
976
|
roles:
|
|
985
977
|
AUTHORITY: Lead Investigator (human, neutral party)
|
|
986
|
-
OPERATOR: Technical Analyst (reads
|
|
978
|
+
OPERATOR: Technical Analyst (reads log and git log)
|
|
987
979
|
MEMBER: Witness Agent (answers questions about its own actions)
|
|
988
980
|
OBSERVER: Auditor (read-only, produces signed attestation)
|
|
989
981
|
|
|
990
982
|
session_rules:
|
|
991
983
|
managed_repo: read_only # investigators never touch the evidence
|
|
992
|
-
|
|
984
|
+
log_access: read_only # the log IS the evidence
|
|
993
985
|
new_commits: findings_only # only the investigation report is written
|
|
994
986
|
```
|
|
995
987
|
|
|
996
988
|
**What investigators read:**
|
|
997
989
|
|
|
998
990
|
```
|
|
999
|
-
|
|
991
|
+
LOG.md ← complete attributed action log
|
|
1000
992
|
LEDGER.md ← cost and timing per action (was the agent rushing?)
|
|
1001
993
|
SESSION_FAULT.* ← what failures occurred and why
|
|
1002
994
|
STATE_SNAPSHOT.* ← what the session knew at each checkpoint
|
|
@@ -1011,7 +1003,7 @@ motions/ ← what was proposed and what actually happened
|
|
|
1011
1003
|
|
|
1012
1004
|
## Timeline reconstruction
|
|
1013
1005
|
14:02 OPERATOR-1 tabled MOTION-07 — deploy to staging
|
|
1014
|
-
14:03
|
|
1006
|
+
14:03 vote called — passed 2-0
|
|
1015
1007
|
14:04 OPERATOR-1 executed deployment
|
|
1016
1008
|
14:04 SESSION_FAULT — FAULT_INFRA — secret STAGING_KEY expired
|
|
1017
1009
|
14:04 Session auto-suspended
|
|
@@ -1029,10 +1021,10 @@ Automated secret health check added to quorum-check.yml.
|
|
|
1029
1021
|
|
|
1030
1022
|
### The Chain of Custody Property
|
|
1031
1023
|
|
|
1032
|
-
An investigation session that reads the
|
|
1024
|
+
An investigation session that reads the log of a prior session maintains chain of custody automatically:
|
|
1033
1025
|
|
|
1034
|
-
- Investigators never modify evidence — they read
|
|
1035
|
-
- All investigator actions are themselves recorded in the investigation
|
|
1026
|
+
- Investigators never modify evidence — they read log, commit findings only
|
|
1027
|
+
- All investigator actions are themselves recorded in the investigation log
|
|
1036
1028
|
- The investigation is attributed, timestamped, and immutable
|
|
1037
1029
|
- Multiple independent investigations of the same incident produce comparable records
|
|
1038
1030
|
|
|
@@ -1044,13 +1036,13 @@ When a production incident occurs:
|
|
|
1044
1036
|
|
|
1045
1037
|
```
|
|
1046
1038
|
1. Open Politik Forensics session on the incident
|
|
1047
|
-
2. Agents read the failed session's
|
|
1039
|
+
2. Agents read the failed session's log
|
|
1048
1040
|
3. Cross-reference with managed repo git log by commit hash
|
|
1049
1041
|
4. SESSION_FAULT records show fault attribution already done
|
|
1050
1042
|
5. LEDGER shows cost and timing — was the agent rushing?
|
|
1051
1043
|
(high tokens, low elapsed = skipping steps)
|
|
1052
1044
|
6. Motion records show what was approved and by whom
|
|
1053
|
-
7.
|
|
1045
|
+
7. vote records show who voted for the failing change
|
|
1054
1046
|
8. Investigation report committed — permanent, attributed, auditable
|
|
1055
1047
|
```
|
|
1056
1048
|
|
|
@@ -1066,7 +1058,7 @@ protocols:
|
|
|
1066
1058
|
- Regression Archaeology # when did this bug get introduced?
|
|
1067
1059
|
```
|
|
1068
1060
|
|
|
1069
|
-
The
|
|
1061
|
+
The log is the chain of custody. The git log is the evidence. Politik is the court.
|
|
1070
1062
|
|
|
1071
1063
|
---
|
|
1072
1064
|
|
|
@@ -1076,41 +1068,41 @@ The Hansard is the chain of custody. The git log is the evidence. Politik is the
|
|
|
1076
1068
|
|
|
1077
1069
|
Jira's primary value proposition is a centralised record of who did what on a software project.
|
|
1078
1070
|
|
|
1079
|
-
Politik produces a superior version of that record as a **zero-overhead side effect of running governed agent sessions**. Nobody updates it. Nobody logs time. Nobody links the commit. It is all there because it cannot be otherwise — the
|
|
1071
|
+
Politik produces a superior version of that record as a **zero-overhead side effect of running governed agent sessions**. Nobody updates it. Nobody logs time. Nobody links the commit. It is all there because it cannot be otherwise — the log is append-only and every action is attributed.
|
|
1080
1072
|
|
|
1081
1073
|
The difference is profound:
|
|
1082
1074
|
|
|
1083
1075
|
**Jira** is a database humans are required to keep updated.
|
|
1084
|
-
**
|
|
1076
|
+
**log** is a database that is impossible to not keep updated.
|
|
1085
1077
|
|
|
1086
1078
|
### Feature Comparison
|
|
1087
1079
|
|
|
1088
1080
|
| Jira feature | How humans do it | How Politik does it automatically |
|
|
1089
1081
|
|---|---|---|
|
|
1090
|
-
| Ticket title | Developer types it | Motion title in
|
|
1082
|
+
| Ticket title | Developer types it | Motion title in log |
|
|
1091
1083
|
| Description | Developer writes it | Motion body |
|
|
1092
|
-
| Assignee | Someone assigns it | Actor constituency from
|
|
1084
|
+
| Assignee | Someone assigns it | Actor constituency from session opening |
|
|
1093
1085
|
| Status updates | Developer manually changes | STATE.json updates on every action |
|
|
1094
1086
|
| Time logged | Developer estimates and enters | LEDGER — exact elapsed per motion |
|
|
1095
|
-
| Comments | Developer writes | Every
|
|
1096
|
-
| Linked commits | Developer manually links | Every
|
|
1097
|
-
| Code reviewer | Someone assigns |
|
|
1098
|
-
| Escalation/blocker | Developer flags | ESCALATION verb — auto-notifies
|
|
1087
|
+
| Comments | Developer writes | Every log entry — attributed, timestamped |
|
|
1088
|
+
| Linked commits | Developer manually links | Every log entry references commit hash |
|
|
1089
|
+
| Code reviewer | Someone assigns | vote record — who approved, vote outcome |
|
|
1090
|
+
| Escalation/blocker | Developer flags | ESCALATION verb — auto-notifies owner |
|
|
1099
1091
|
| Cost tracking | Finance estimates | LEDGER — actual token cost per motion |
|
|
1100
|
-
| Ticket closed | Developer manually closes |
|
|
1092
|
+
| Ticket closed | Developer manually closes | Closing — automatic on session end |
|
|
1101
1093
|
|
|
1102
1094
|
### What Politik Produces That Jira Never Could
|
|
1103
1095
|
|
|
1104
1096
|
| Capability | Description |
|
|
1105
1097
|
|---|---|
|
|
1106
1098
|
| Why the decision was made | Motion reasoning — not just what changed but the full context |
|
|
1107
|
-
| Who approved it and how |
|
|
1099
|
+
| Who approved it and how | vote record — attributed votes, not just "approved" |
|
|
1108
1100
|
| What alternatives were rejected | Prior motions that failed — the full deliberation trail |
|
|
1109
1101
|
| Fault attribution | FAULT_ACTOR vs FAULT_INFRA — was it the agent or the infrastructure? |
|
|
1110
1102
|
| Cost per decision | Token cost and elapsed time per motion from LEDGER |
|
|
1111
1103
|
| Agent performance record | Full motion history per constituency across the session |
|
|
1112
1104
|
| Governance trail | Which protocol governed which decision |
|
|
1113
|
-
|
|
|
1105
|
+
| Bad-faith detection | log pattern analysis for bad faith PROMOTE, FIRE, HIRE |
|
|
1114
1106
|
|
|
1115
1107
|
### Story Points vs LEDGER
|
|
1116
1108
|
|
|
@@ -1126,7 +1118,7 @@ No estimation. No debate. Actual measured data that improves with every session
|
|
|
1126
1118
|
|
|
1127
1119
|
### Structural Advantage
|
|
1128
1120
|
|
|
1129
|
-
Jira's data quality depends on human discipline — developers must manually enter and maintain records. The
|
|
1121
|
+
Jira's data quality depends on human discipline — developers must manually enter and maintain records. The log's data quality is architectural — agents cannot act without recording. This is not a feature comparison. It is a category difference in how project records are produced.
|
|
1130
1122
|
|
|
1131
1123
|
### Jira Integration
|
|
1132
1124
|
|
|
@@ -1136,15 +1128,15 @@ Politik can integrate with existing Jira installations:
|
|
|
1136
1128
|
integrations:
|
|
1137
1129
|
jira:
|
|
1138
1130
|
enabled: true
|
|
1139
|
-
sync_on:
|
|
1140
|
-
create_ticket:
|
|
1131
|
+
sync_on: closing # push session summary to Jira on close
|
|
1132
|
+
create_ticket: session_opened # create a Jira ticket when the session opens
|
|
1141
1133
|
update_status: state_change # sync STATE.json to Jira status
|
|
1142
|
-
link_commits:
|
|
1134
|
+
link_commits: log # auto-link all commit hashes
|
|
1143
1135
|
log_time: ledger # push LEDGER elapsed to Jira time tracking
|
|
1144
|
-
close_ticket:
|
|
1136
|
+
close_ticket: closing # close Jira ticket on closing
|
|
1145
1137
|
```
|
|
1146
1138
|
|
|
1147
|
-
This allows Politik to coexist with existing project management infrastructure. The
|
|
1139
|
+
This allows Politik to coexist with existing project management infrastructure. The log auto-populates Jira with attributed, timestamped records.
|
|
1148
1140
|
|
|
1149
1141
|
---
|
|
1150
1142
|
|
|
@@ -1154,9 +1146,9 @@ Every session has three governance tiers:
|
|
|
1154
1146
|
|
|
1155
1147
|
| Tier | Mechanism | Trigger |
|
|
1156
1148
|
|---|---|---|
|
|
1157
|
-
|
|
|
1158
|
-
|
|
|
1159
|
-
|
|
|
1149
|
+
| Charter | Self-executing statute | Always checked first |
|
|
1150
|
+
| deputy owner | Delegated agent proxy | Charter silent |
|
|
1151
|
+
| owner | Human intervention | Deputy absent or overruled |
|
|
1160
1152
|
|
|
1161
1153
|
### Promotion and Demotion — Full Doctrine
|
|
1162
1154
|
|
|
@@ -1171,7 +1163,7 @@ Promotion and demotion are not freely available verbs. The hierarchy of who hold
|
|
|
1171
1163
|
| `MEMBER` | Cannot promote | Cannot demote |
|
|
1172
1164
|
| `OBSERVER` | Cannot promote | Cannot demote |
|
|
1173
1165
|
|
|
1174
|
-
An OPERATOR cannot promote another OPERATOR. An OPERATOR cannot demote another OPERATOR. Lateral role changes require AUTHORITY. This prevents coalition capture — two OPERATORs cannot conspire to elevate a third to shift a
|
|
1166
|
+
An OPERATOR cannot promote another OPERATOR. An OPERATOR cannot demote another OPERATOR. Lateral role changes require AUTHORITY. This prevents coalition capture — two OPERATORs cannot conspire to elevate a third to shift a vote majority without the owner's knowledge.
|
|
1175
1167
|
|
|
1176
1168
|
**Auto-Promotion — Charter Config:**
|
|
1177
1169
|
|
|
@@ -1199,66 +1191,66 @@ governance:
|
|
|
1199
1191
|
authority_veto: true
|
|
1200
1192
|
```
|
|
1201
1193
|
|
|
1202
|
-
Auto-demotion is the mirror of auto-promotion. Consistently failing to produce accepted output is grounds for trust reduction.
|
|
1194
|
+
Auto-demotion is the mirror of auto-promotion. Consistently failing to produce accepted output is grounds for trust reduction. It is the machine equivalent of losing the team's confidence.
|
|
1203
1195
|
|
|
1204
1196
|
**What happens to in-flight work at role change:**
|
|
1205
1197
|
|
|
1206
|
-
- **Promotion mid-motion:** Actor finishes the current motion at their old trust level. New verbs available from next motion onward. Promotion is committed to
|
|
1207
|
-
- **Demotion mid-motion:** Same. Actor completes current motion at old trust level. Demotion effective from next action. Not retroactive — prior
|
|
1198
|
+
- **Promotion mid-motion:** Actor finishes the current motion at their old trust level. New verbs available from next motion onward. Promotion is committed to log immediately but effective next motion — no ambiguity about which rules governed which output.
|
|
1199
|
+
- **Demotion mid-motion:** Same. Actor completes current motion at old trust level. Demotion effective from next action. Not retroactive — prior log entries retain the role label they were committed under. log is immutable.
|
|
1208
1200
|
|
|
1209
|
-
**Prior
|
|
1201
|
+
**Prior log entries after role change:**
|
|
1210
1202
|
|
|
1211
|
-
|
|
1203
|
+
log entries are immutable. A MEMBER promoted to OPERATOR retains all prior entries labelled as MEMBER. This is correct and intentional — the record shows the actor's trust level at the time of each action. Auditors can see exactly when a role change occurred and what came before and after.
|
|
1212
1204
|
|
|
1213
1205
|
**Bad Faith PROMOTE — Defence Mechanism:**
|
|
1214
1206
|
|
|
1215
|
-
An OPERATOR promoting a friendly MEMBER to shift a
|
|
1207
|
+
An OPERATOR promoting a friendly MEMBER to shift a vote majority is a form of bad faith manipulation. The defences:
|
|
1216
1208
|
|
|
1217
|
-
- AUTHORITY witness required for all promotions —
|
|
1218
|
-
- Promotion committed to
|
|
1219
|
-
- `authority_veto: true` gives the
|
|
1220
|
-
-
|
|
1209
|
+
- AUTHORITY witness required for all promotions — owner must see it happen
|
|
1210
|
+
- Promotion committed to log immediately — full visibility
|
|
1211
|
+
- `authority_veto: true` gives the owner a window to reverse a promotion before the new verbs are exercised
|
|
1212
|
+
- log pattern detection: if a promotion is followed immediately by a vote where the newly promoted actor's vote is decisive — that sequence is auditable and flagged
|
|
1221
1213
|
|
|
1222
1214
|
```yaml
|
|
1223
1215
|
governance:
|
|
1224
1216
|
auto_promotion:
|
|
1225
1217
|
authority_veto: true
|
|
1226
|
-
authority_veto_window_motions: 2 #
|
|
1218
|
+
authority_veto_window_motions: 2 # owner has 2 motions to reverse
|
|
1227
1219
|
```
|
|
1228
1220
|
|
|
1229
1221
|
**The AUTHORITY ceiling:**
|
|
1230
1222
|
|
|
1231
|
-
AUTHORITY is constitutionally locked to human. This is not a technical limitation — it is a deliberate design choice. The framework is species-agnostic at every other role level. AUTHORITY is the one exception. The
|
|
1223
|
+
AUTHORITY is constitutionally locked to human. This is not a technical limitation — it is a deliberate design choice. The framework is species-agnostic at every other role level. AUTHORITY is the one exception. The owner must be human because the owner is the last line of appeal when the system fails, and the system will fail in ways that require human judgement to resolve.
|
|
1232
1224
|
|
|
1233
1225
|
When AI systems reach a level of verified trustworthiness that justifies removing this constraint — the architecture supports it. The CANON layer will not need to change. The constitutional rule simply stops applying. The framework is ready for that day. We are not there yet.
|
|
1234
1226
|
|
|
1235
1227
|
### Constitutional Capture — When AUTHORITY is the Corruptor
|
|
1236
1228
|
|
|
1237
|
-
Every defence mechanism in Politik assumes the
|
|
1229
|
+
Every defence mechanism in Politik assumes the owner is neutral. Disputed exit flows escalate to the owner. Promotion vetoes sit with the owner. tied votes go to the owner. Voluntold detection auto-notifies the owner.
|
|
1238
1230
|
|
|
1239
|
-
If the
|
|
1231
|
+
If the owner is the source of corruption — all of those mechanisms route directly to the problem. The system does not just fail. It actively assists the corruption.
|
|
1240
1232
|
|
|
1241
1233
|
**This is Constitutional Capture — the hardest failure mode in the architecture.**
|
|
1242
1234
|
|
|
1243
1235
|
Historical examples span every governance domain: republics where executive power was gradually concentrated until the constitution became advisory, scientific institutions where a dominant researcher suppressed dissenting findings through funding control, corporations where a board captured by the CEO rubber-stamped decisions contrary to shareholder interest. The pattern is universal. The mechanism is always the same — AUTHORITY uses legitimately held powers to remove actors who would check those powers, and promotes actors who will not.
|
|
1244
1236
|
|
|
1245
|
-
**
|
|
1237
|
+
**How an owner acts in bad faith:**
|
|
1246
1238
|
|
|
1247
|
-
|
|
|
1239
|
+
| Pattern | What it looks like |
|
|
1248
1240
|
|---|---|
|
|
1249
|
-
| **
|
|
1250
|
-
| **
|
|
1251
|
-
| **
|
|
1252
|
-
| **
|
|
1253
|
-
| **
|
|
1254
|
-
| **
|
|
1255
|
-
| **
|
|
1241
|
+
| **Ignoring results** | Refusing to accept vote results that contradict their position |
|
|
1242
|
+
| **Punishing dissent** | Demoting or expelling actors who dissent or outperform |
|
|
1243
|
+
| **Favouring allies** | Using session mandate to enrich preferred actors or constituencies |
|
|
1244
|
+
| **Avoiding competence** | Surrounding themselves with poorly qualified actors whose competence does not threaten |
|
|
1245
|
+
| **Selective enforcement** | Enforcing Charter selectively against enemies, ignoring violations by allies |
|
|
1246
|
+
| **Loyalty over merit** | Promoting based on loyalty to AUTHORITY rather than merit or session goals |
|
|
1247
|
+
| **Self-exemption** | Declaring their own actions exempt from Charter constraints |
|
|
1256
1248
|
|
|
1257
1249
|
**Why this is structurally worse than bad-faith actors below AUTHORITY:**
|
|
1258
1250
|
|
|
1259
1251
|
A corrupt OPERATOR can be expelled. A corrupt MEMBER can be demoted. The appeal path runs upward to AUTHORITY. When AUTHORITY is the corruptor there is no appeal path. The system has no mechanism above AUTHORITY by design — that is what makes the role constitutional.
|
|
1260
1252
|
|
|
1261
|
-
**Three mitigations — declared in the Charter and enforced by the engine.** The Witness Council and consensus-suspension declarations are parsed from the Charter and enforced through `politik
|
|
1253
|
+
**Three mitigations — declared in the Charter and enforced by the engine.** The Witness Council and consensus-suspension declarations are parsed from the Charter and enforced through `politik misconduct report | status | rule`; the DELEGATE challenge through `politik challenge`:
|
|
1262
1254
|
|
|
1263
1255
|
**1. Witness Council**
|
|
1264
1256
|
|
|
@@ -1267,10 +1259,10 @@ governance:
|
|
|
1267
1259
|
witness_council:
|
|
1268
1260
|
enabled: true
|
|
1269
1261
|
roles: [OBSERVER] # designated constitutional witnesses
|
|
1270
|
-
can_file:
|
|
1262
|
+
can_file: MISCONDUCT
|
|
1271
1263
|
```
|
|
1272
1264
|
|
|
1273
|
-
Designated OBSERVER actors who can commit a `
|
|
1265
|
+
Designated OBSERVER actors who can commit a `MISCONDUCT` log record when they observe AUTHORITY violations. Does not remove AUTHORITY. Creates an immutable formal record visible to anyone who can read the repo. The receipts survive even if the session is subsequently dissolved.
|
|
1274
1266
|
|
|
1275
1267
|
**2. DELEGATE Challenge Verb**
|
|
1276
1268
|
|
|
@@ -1278,26 +1270,26 @@ Designated OBSERVER actors who can commit a `CONSTITUTIONAL_CRISIS` Hansard reco
|
|
|
1278
1270
|
politik challenge --actor <delegate> --against <action> --grounds <text> [--window <min>]
|
|
1279
1271
|
```
|
|
1280
1272
|
|
|
1281
|
-
Built (ADR-0009 era). A DELEGATE formally disputes an AUTHORITY action: the dissent is recorded, attributed, and permanent. It is **non-binding** — the AUTHORITY action stands and the
|
|
1273
|
+
Built (ADR-0009 era). A DELEGATE formally disputes an AUTHORITY action: the dissent is recorded, attributed, and permanent. It is **non-binding** — the AUTHORITY action stands and the session does not suspend. The local engine has no scheduler, so the `--window` is a declared intent carried on the record, not an enforced pause; the durable mechanism is the attributable challenge itself, which makes a bad-faith AUTHORITY action visible and answerable to everyone who can read the repo.
|
|
1282
1274
|
|
|
1283
|
-
**3.
|
|
1275
|
+
**3. Closing by Consensus**
|
|
1284
1276
|
|
|
1285
1277
|
```yaml
|
|
1286
1278
|
governance:
|
|
1287
1279
|
consensus_suspension:
|
|
1288
1280
|
enabled: true
|
|
1289
1281
|
threshold: 0.75 # 75% of OPERATOR actors must concur
|
|
1290
|
-
action:
|
|
1282
|
+
action: MISCONDUCT
|
|
1291
1283
|
resume_requires: external_review
|
|
1292
1284
|
```
|
|
1293
1285
|
|
|
1294
|
-
If a supermajority of OPERATOR actors simultaneously file escalations against AUTHORITY, the session auto-suspends and a `
|
|
1286
|
+
If a supermajority of OPERATOR actors simultaneously file escalations against AUTHORITY, the session auto-suspends and a `MISCONDUCT` record is committed. Session cannot resume until an external human — outside the session — reviews the log and rules. The machine equivalent of a vote of no confidence.
|
|
1295
1287
|
|
|
1296
1288
|
**The uncomfortable architectural truth:**
|
|
1297
1289
|
|
|
1298
1290
|
A Charter written by a corrupt AUTHORITY will have convenient gaps. DELEGATE challenge powers will be stripped. Witness Council will be excluded. Consensus suspension threshold will be set so high it cannot trigger. The `quorum_override` will be configured to let AUTHORITY act alone.
|
|
1299
1291
|
|
|
1300
|
-
The
|
|
1292
|
+
The log is always the last defence. It is immutable. It is public. It records everything. A corrupt AUTHORITY cannot change what was already committed — but it can stop future honest commits by dissolving the session before the evidence accumulates. This is why `MISCONDUCT` suspends rather than closes — and why resumption requires external review. The session substrate survives a premature dissolution. The log is the receipts.
|
|
1301
1293
|
|
|
1302
1294
|
**Note on the AUTHORITY hard rule:**
|
|
1303
1295
|
|
|
@@ -1305,17 +1297,17 @@ The Charter cannot declare a machine as AUTHORITY — not because machines would
|
|
|
1305
1297
|
|
|
1306
1298
|
When AI systems reach a level of verified trustworthiness that justifies removing this constraint, the architecture supports it. The CANON layer will not need to change. The constitutional rule simply stops applying.
|
|
1307
1299
|
```
|
|
1308
|
-
|
|
1300
|
+
Charter cannot resolve
|
|
1309
1301
|
↓
|
|
1310
|
-
|
|
1302
|
+
deputy owner consulted
|
|
1311
1303
|
↓
|
|
1312
1304
|
Deputy cannot resolve
|
|
1313
1305
|
↓
|
|
1314
1306
|
Session pauses
|
|
1315
1307
|
↓
|
|
1316
|
-
|
|
1308
|
+
owner notified via GitHub Actions
|
|
1317
1309
|
↓
|
|
1318
|
-
|
|
1310
|
+
owner rules
|
|
1319
1311
|
↓
|
|
1320
1312
|
Session resumes
|
|
1321
1313
|
```
|
|
@@ -1324,7 +1316,7 @@ Session resumes
|
|
|
1324
1316
|
|
|
1325
1317
|
## RECORD MODES
|
|
1326
1318
|
|
|
1327
|
-
| Mode |
|
|
1319
|
+
| Mode | log | Use case |
|
|
1328
1320
|
|---|---|---|
|
|
1329
1321
|
| Distributed (default) | Every Constituency keeps local log | Most sessions |
|
|
1330
1322
|
| Anchored | Designated RECORD agent aggregates | Enterprise, audit |
|
|
@@ -1345,7 +1337,7 @@ user/my-politik ← user's sovereign session repo
|
|
|
1345
1337
|
|
|
1346
1338
|
### Template Repo Structure
|
|
1347
1339
|
```
|
|
1348
|
-
cordfuse/politik ← default
|
|
1340
|
+
cordfuse/politik ← default majority-vote protocol
|
|
1349
1341
|
cordfuse/politik-agile ← Agile protocol
|
|
1350
1342
|
cordfuse/politik-military ← Military protocol
|
|
1351
1343
|
cordfuse/politik-legal ← Legal protocol
|
|
@@ -1369,7 +1361,7 @@ actors/
|
|
|
1369
1361
|
roles/*.md
|
|
1370
1362
|
!roles/*.template.md
|
|
1371
1363
|
STATE.json
|
|
1372
|
-
|
|
1364
|
+
LOG.md
|
|
1373
1365
|
```
|
|
1374
1366
|
|
|
1375
1367
|
---
|