@cordfuse/politik 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXECUTION.md +86 -83
- package/POLITIK-ARCHITECTURE.md +111 -176
- package/PROTOCOLS.md +120 -325
- package/README.md +130 -188
- package/RESEARCH.md +142 -438
- package/RUNTIME.md +253 -261
- package/docs/adr/0001-chamber-transport.md +2 -0
- package/docs/adr/0002-charter-schema.md +2 -0
- package/docs/adr/0003-state-json-schema.md +2 -0
- package/docs/adr/0004-motion-enactment.md +2 -0
- package/docs/adr/0005-hansard-format.md +2 -0
- package/docs/adr/0006-protocol-behavioral-enforcement.md +2 -0
- package/docs/adr/0007-protocol-mechanics.md +2 -0
- package/docs/adr/0008-session-storage.md +2 -0
- package/docs/adr/0009-match-primitive.md +2 -0
- package/docs/adr/0010-operator-interface.md +2 -0
- package/docs/adr/0011-shared-sessions.md +2 -0
- package/docs/adr/0012-plain-vocabulary.md +68 -0
- package/docs/adr/0013-rule-defined-protocols.md +89 -0
- package/package.json +1 -1
- package/protocols/CONTRIBUTING.md +47 -87
- package/protocols/adversarial-review.yml +19 -0
- package/protocols/elimination-rounds.yml +18 -0
- package/protocols/majority-vote.yml +18 -0
- package/protocols/panel-review.yml +19 -0
- package/protocols/single-decider.yml +18 -0
- package/protocols/unanimous-vote.yml +17 -0
- package/src/actors.ts +124 -100
- package/src/agents.ts +31 -22
- package/src/ballot.ts +747 -0
- package/src/canon.ts +23 -10
- package/src/capability.ts +16 -99
- package/src/charter.ts +41 -34
- package/src/cli.ts +535 -480
- package/src/{prorogation.ts → closing.ts} +43 -43
- package/src/conflict.ts +14 -14
- package/src/containment.ts +11 -11
- package/src/doctor.ts +1 -1
- package/src/election.ts +4 -4
- package/src/envelope.ts +3 -3
- package/src/escalation.ts +44 -44
- package/src/fault.ts +8 -8
- package/src/federation.ts +14 -14
- package/src/git.ts +17 -17
- package/src/heartbeat.ts +32 -32
- package/src/index.ts +5 -5
- package/src/init.ts +66 -65
- package/src/integrity.ts +30 -30
- package/src/ledger.ts +3 -3
- package/src/{hansard.ts → log.ts} +20 -20
- package/src/{crisis.ts → misconduct.ts} +70 -70
- package/src/operator.ts +5 -5
- package/src/pending.ts +9 -9
- package/src/projection.ts +30 -30
- package/src/protocol-sdk.ts +12 -121
- package/src/protocol.ts +8 -78
- package/src/providers/github.ts +12 -12
- package/src/quorum.ts +7 -7
- package/src/remote.ts +1 -1
- package/src/runner.ts +71 -55
- package/src/scm.ts +14 -14
- package/src/spawn.ts +4 -4
- package/src/standings.ts +13 -13
- package/src/state.ts +6 -6
- package/src/templates/session.ts +448 -0
- package/src/tournament.ts +20 -20
- package/src/transport.ts +4 -4
- package/src/tree.ts +16 -16
- package/protocols/adversarial-collaboration.yml +0 -28
- package/protocols/corporate.yml +0 -35
- package/protocols/elimination-tournament.yml +0 -41
- package/protocols/emergency-response-ics.yml +0 -27
- package/protocols/jury-deliberation.yml +0 -32
- package/protocols/monarchy.yml +0 -31
- package/protocols/parliamentary.yml +0 -66
- package/protocols/peer-review.yml +0 -44
- package/protocols/republic.yml +0 -36
- package/protocols/scrum.yml +0 -87
- package/protocols/socialism-collective.yml +0 -31
- package/protocols/solo.yml +0 -32
- package/src/division.ts +0 -609
- package/src/templates/parliamentary.ts +0 -581
package/EXECUTION.md
CHANGED
|
@@ -6,6 +6,13 @@ Phased implementation plan (phases 0–11) and the Politik Tree hierarchical arc
|
|
|
6
6
|
|
|
7
7
|
See [POLITIK-ARCHITECTURE.md](POLITIK-ARCHITECTURE.md) for CANON and the engine layer.
|
|
8
8
|
|
|
9
|
+
> **v0.6.0:** completed phases below are a historical record and keep their
|
|
10
|
+
> original wording — the parliamentary vocabulary, the twelve-protocol library,
|
|
11
|
+
> `mode`, archetypes. All of these were replaced in v0.6.0: one plain vocabulary
|
|
12
|
+
> (ADR-0012) and six rule-defined protocols (ADR-0013). The plan for that work and
|
|
13
|
+
> its dogfood results are in [docs/plans/plain-vocabulary-and-protocol-cull.md](docs/plans/plain-vocabulary-and-protocol-cull.md).
|
|
14
|
+
> Open phases (9 and 10) are updated to the current thesis — see RESEARCH.md.
|
|
15
|
+
|
|
9
16
|
---
|
|
10
17
|
|
|
11
18
|
## EXECUTION PLAN
|
|
@@ -52,8 +59,8 @@ recorded **and** nothing blocks it.
|
|
|
52
59
|
|
|
53
60
|
1. **`mode` / `record_mode`** are protocol-level keys only. The `session:` block
|
|
54
61
|
never legitimately owned them — `quorum: 1` already declares a solo session,
|
|
55
|
-
and the
|
|
56
|
-
2. **`
|
|
62
|
+
and the log is required by default. Corrected in RUNTIME.md. See ADR-0002.
|
|
63
|
+
2. **`MISCONDUCT` is a cause of suspension**, not a sixth state and
|
|
57
64
|
not a free-standing fault. RUNTIME.md § Constitutional Capture already
|
|
58
65
|
specifies that it auto-suspends the session. CANON stays at five states. See
|
|
59
66
|
ADR-0003.
|
|
@@ -61,7 +68,7 @@ recorded **and** nothing blocks it.
|
|
|
61
68
|
**Settled in the scaffold.** The SCM provider interface named its methods but no
|
|
62
69
|
return types — a signature exercise rather than a governance decision. Return
|
|
63
70
|
types are now fixed in `src/scm.ts`, where every call is async and every mutation
|
|
64
|
-
returns a typed handle so the
|
|
71
|
+
returns a typed handle so the log writer has something attributable to
|
|
65
72
|
record.
|
|
66
73
|
|
|
67
74
|
*Correction:* this section previously said the interface names *ten* methods.
|
|
@@ -77,15 +84,15 @@ no I/O, no clock, no randomness.
|
|
|
77
84
|
```
|
|
78
85
|
[x] Scaffold cordfuse/politik private repo — package.json, tsconfig, CI-ready
|
|
79
86
|
[x] Implement CHARTER.md parser and validator — src/charter.ts (ADR-0002 rules 1-8)
|
|
80
|
-
[x] Implement session repo initializer (
|
|
87
|
+
[x] Implement session repo initializer (session opening)— src/init.ts
|
|
81
88
|
[x] Implement GitHub SCM provider — src/providers/github.ts (see note)
|
|
82
89
|
[x] Implement broadcast envelope parser — src/envelope.ts
|
|
83
90
|
[x] Implement first-actor-per-constituency election— src/election.ts + src/lockfs.ts
|
|
84
|
-
[x] Implement
|
|
85
|
-
[x] Implement
|
|
86
|
-
[x] Implement
|
|
91
|
+
[x] Implement log commit writer — src/hansard.ts
|
|
92
|
+
[x] Implement escalation workflow — src/escalation.ts
|
|
93
|
+
[x] Implement owner email notification — provider notify() + session workflow
|
|
87
94
|
[x] Implement quorum check — src/quorum.ts
|
|
88
|
-
[x] Implement
|
|
95
|
+
[x] Implement closing workflow — src/closing.ts
|
|
89
96
|
```
|
|
90
97
|
|
|
91
98
|
**Note — `openDiscussion` is deferred to Phase 4.** GitHub exposes discussion
|
|
@@ -95,19 +102,19 @@ protocol and a second auth path inside an otherwise REST-only provider. Nothing
|
|
|
95
102
|
in Phase 2 exercises the debate floor. The method throws a 501 rather than
|
|
96
103
|
silently succeeding.
|
|
97
104
|
|
|
98
|
-
**Note —
|
|
105
|
+
**Note — owner notification has two delivery paths.** `ScmProvider.notify()`
|
|
99
106
|
opens a labelled issue @-mentioning the actor, which GitHub turns into email via
|
|
100
107
|
the recipient's own notification settings. Separately, the session repo
|
|
101
108
|
initializer installs `.github/workflows/point-of-order.yml` (RUNTIME.md § Point
|
|
102
109
|
of Order Workflow) for direct SMTP delivery on push to `escalations/`. The
|
|
103
|
-
workflow's path filter excludes rulings — a ruling is the
|
|
110
|
+
workflow's path filter excludes rulings — a ruling is the owner's own reply,
|
|
104
111
|
and notifying them of it would loop. It requires three repository secrets
|
|
105
112
|
(`MAIL_USERNAME`, `MAIL_PASSWORD`, `SPEAKER_EMAIL`) and fails loudly without
|
|
106
113
|
them, because an escalation nobody hears is the exact failure this flow exists
|
|
107
114
|
to prevent.
|
|
108
115
|
|
|
109
116
|
**Verified live.** The provider was exercised against a real GitHub repository:
|
|
110
|
-
|
|
117
|
+
session opening committed as a single commit (blobs → tree → commit → ref), label
|
|
111
118
|
created, escalation issue filed, suspension state committed, notification
|
|
112
119
|
delivered, `openDiscussion` refused as designed.
|
|
113
120
|
|
|
@@ -200,7 +207,7 @@ live and added to both the table and the registry.
|
|
|
200
207
|
the caller.
|
|
201
208
|
|
|
202
209
|
**Prompt injection format.** One format for every agent: role and mandate,
|
|
203
|
-
granted verbs,
|
|
210
|
+
granted verbs, Charter, log excerpt (agents are stateless — the
|
|
204
211
|
record is their context), the business at hand, then the rules of the floor.
|
|
205
212
|
Deliberately uniform: per-agent prompt tuning would void the cross-protocol
|
|
206
213
|
comparisons the research layer depends on.
|
|
@@ -210,11 +217,11 @@ comparisons the research layer depends on.
|
|
|
210
217
|
```
|
|
211
218
|
[x] Implement CANON → Parliamentary vocabulary mapping — src/protocol.ts + protocols/parliamentary.yml
|
|
212
219
|
[x] CHARTER.md template (Parliamentary) — src/templates/parliamentary.ts
|
|
213
|
-
[x] Role templates (
|
|
214
|
-
[x]
|
|
215
|
-
[x]
|
|
220
|
+
[x] Role templates (owner, Minister, Backbencher, …) — one per CANON role, five in total
|
|
221
|
+
[x] Charter template — prose body of the Charter template
|
|
222
|
+
[x] log format spec — ADR-0005 (Accepted)
|
|
216
223
|
[x] GitHub label taxonomy — LABEL_TAXONOMY, nine labels
|
|
217
|
-
[x] GitHub Projects
|
|
224
|
+
[x] GitHub Projects agenda template — AGENDA.md
|
|
218
225
|
[x] GitHub Milestone workflow — a Milestone is a sitting; see note
|
|
219
226
|
```
|
|
220
227
|
|
|
@@ -222,11 +229,11 @@ comparisons the research layer depends on.
|
|
|
222
229
|
terms to an industry vocabulary for the interface and for humans. Nothing in a
|
|
223
230
|
manifest changes engine behaviour except four declared flags — `no_escalation`,
|
|
224
231
|
`no_record`, `immutable_charter`, and the `record_mode` that ADR-0002 rule 5
|
|
225
|
-
tests against. A
|
|
232
|
+
tests against. A BALLOT is a BALLOT whether it renders as "vote" or
|
|
226
233
|
"Sprint Review".
|
|
227
234
|
|
|
228
235
|
**Record types stay in CANON.** A Parliamentary session records
|
|
229
|
-
`
|
|
236
|
+
`ESCALATION`, never "escalation" (ADR-0005 ruling 3). Translation is
|
|
230
237
|
presentation; the record must stay machine-comparable across protocols, which is
|
|
231
238
|
what makes the research layer possible at all.
|
|
232
239
|
|
|
@@ -234,7 +241,7 @@ what makes the research layer possible at all.
|
|
|
234
241
|
back to the CANON word, which is readable by design. Refusing to load an
|
|
235
242
|
incomplete manifest would make authoring a protocol needlessly brittle.
|
|
236
243
|
|
|
237
|
-
**
|
|
244
|
+
**log format settled.** ADR-0005 ratifies the two choices Phase 2 had to
|
|
238
245
|
make provisionally — entries at H2 under the document's H1 title, and an open
|
|
239
246
|
record-type set — and adds five further rulings covering the heading format,
|
|
240
247
|
mandatory attribution, single-line fields, mechanical append-only, and the
|
|
@@ -242,19 +249,19 @@ principle that reading the record is never authoritative (git history is).
|
|
|
242
249
|
`src/hansard.ts` needed no change.
|
|
243
250
|
|
|
244
251
|
**Milestone workflow.** A Milestone is a sitting: the business intended for one
|
|
245
|
-
continuous stretch of a proceeding, mapped in
|
|
246
|
-
of
|
|
252
|
+
continuous stretch of a proceeding, mapped in AGENDA.md. Closing it is part
|
|
253
|
+
of closing — `close()` returns `milestone_to_close` and the GitHub
|
|
247
254
|
provider implements `closeMilestone()`. No separate automation is required.
|
|
248
255
|
|
|
249
256
|
**Verified end to end** through the CLI: `scaffold` → `validate` → `init` →
|
|
250
|
-
`status`. The scaffolded Charter passes
|
|
257
|
+
`status`. The scaffolded Charter passes session opening validation against the
|
|
251
258
|
Parliamentary protocol, including rule 5 — the template uses `merge_commit`
|
|
252
259
|
because Parliamentary declares `record_mode: distributed`, under which squash is
|
|
253
260
|
rejected. A test asserts this so the template and the validator cannot drift.
|
|
254
261
|
|
|
255
262
|
**New CLI command:** `politik scaffold --out <dir> [--quorum <n>]` writes the
|
|
256
|
-
Charter,
|
|
257
|
-
`init`: scaffolding produces prose for
|
|
263
|
+
Charter, agenda and role files for editing. Deliberately separate from
|
|
264
|
+
`init`: scaffolding produces prose for an owner to read and edit, `init` drops
|
|
258
265
|
the Writ and opens the session. Conflating them would convene a session on an
|
|
259
266
|
unread template.
|
|
260
267
|
|
|
@@ -291,7 +298,7 @@ baseline RESEARCH.md measures the others against, available and never the defaul
|
|
|
291
298
|
|
|
292
299
|
**Power inversions are declared, never inferred.** `jury-deliberation.yml` and
|
|
293
300
|
`peer-review.yml` let a lower-trust role — a juror, a reviewer — override the
|
|
294
|
-
final
|
|
301
|
+
final vote on domain grounds. Both contradict the trust hierarchy, which is
|
|
295
302
|
exactly why CANON models them as `domain_veto` rather than deriving them.
|
|
296
303
|
|
|
297
304
|
**Compose your own.** The eleven are exemplars, not a fixed set: CANON plus a
|
|
@@ -370,7 +377,7 @@ Linux bare metal: `doctor` reports READY with six agents installed
|
|
|
370
377
|
those were driven live in Phase 3.
|
|
371
378
|
|
|
372
379
|
Linux Docker: `doctor` → `scaffold` → `validate` → `init` → `status` →
|
|
373
|
-
`
|
|
380
|
+
`close` all completed inside `node:22-alpine`, and the full test suite ran
|
|
374
381
|
green in the container. `doctor` correctly reported NOT READY (exit 1) in a
|
|
375
382
|
container *without* git, which is the check earning its keep.
|
|
376
383
|
|
|
@@ -429,7 +436,7 @@ side.
|
|
|
429
436
|
a Motion carried, whether an actor may vote, or whether a session is suspended —
|
|
430
437
|
those are settled before a provider method is called. `merge()` enacts a Motion;
|
|
431
438
|
it does not check that the Motion carried, because that answer belongs in the
|
|
432
|
-
|
|
439
|
+
log. A provider making governance decisions has moved logic out of the
|
|
433
440
|
record's reach, which defeats the framework.
|
|
434
441
|
|
|
435
442
|
**Eight contracts** are documented: async everywhere, typed handles rather than
|
|
@@ -449,8 +456,8 @@ never get run.
|
|
|
449
456
|
**Not in the original plan, and its absence was the plan's most serious gap.**
|
|
450
457
|
|
|
451
458
|
Phases 2–7 delivered components: Charter parser, validator, initializer, SCM
|
|
452
|
-
provider, envelope parser, election mutex,
|
|
453
|
-
|
|
459
|
+
provider, envelope parser, election mutex, log writer, quorum, escalation,
|
|
460
|
+
closing, agent registry, spawner, protocol layer, templates. Every one
|
|
454
461
|
tested. Not one of them *runs a session* — and nothing in `src/` called
|
|
455
462
|
`spawnAgent`, `composePrompt` or `standForElection` outside their own tests.
|
|
456
463
|
|
|
@@ -472,16 +479,16 @@ session repo. Claude Code seated twice as OPERATOR — `minister-alpha` and
|
|
|
472
479
|
`minister-bravo` — each tabling a Motion:
|
|
473
480
|
|
|
474
481
|
- `motions/motion-001.md` — every Motion must state its Rollback Plan
|
|
475
|
-
- `motions/motion-002.md` —
|
|
482
|
+
- `motions/motion-002.md` — escalations must cite the Standing Order invoked
|
|
476
483
|
|
|
477
484
|
Both drafted in Parliamentary vocabulary, both committed by the agent itself,
|
|
478
|
-
both recorded as attributed `MOTION_TABLED` entries in an append-only
|
|
485
|
+
both recorded as attributed `MOTION_TABLED` entries in an append-only log.
|
|
479
486
|
The framework governed a session.
|
|
480
487
|
|
|
481
488
|
**The live run found a bug nothing else could have.** Turn 1 recorded
|
|
482
489
|
`Files touched: none` while the agent had in fact written *and committed* a
|
|
483
490
|
Motion. Change detection used `git status --porcelain`, which is clean precisely
|
|
484
|
-
*because* the agent committed — and the
|
|
491
|
+
*because* the agent committed — and the Charter this framework ships
|
|
485
492
|
tell agents "commit your result; uncommitted work does not exist". The runner's
|
|
486
493
|
detection contradicted the framework's own instructions. Now diffs committed
|
|
487
494
|
work (`HEAD` before/after) as well as the working tree.
|
|
@@ -506,9 +513,9 @@ A full source-vs-documentation audit was run and recorded in
|
|
|
506
513
|
The two that mattered — both real, both fixed:
|
|
507
514
|
|
|
508
515
|
1. **The SCM provider was dead code at runtime.** Eleven methods, 21 tests, a
|
|
509
|
-
live verification — and nothing in `src/` ever called it, so `
|
|
516
|
+
live verification — and nothing in `src/` ever called it, so `ENACT`
|
|
510
517
|
recorded a decision that changed nothing. Now wired: a Motion carried by
|
|
511
|
-
|
|
518
|
+
vote and enacted by enactment **merged a real pull request** (`#1` on
|
|
512
519
|
`politik-live-002`, merge commit `c6b48c91`).
|
|
513
520
|
2. **The transport was equally unwired.** `runTurn` synthesized its envelope, so
|
|
514
521
|
no broadcast had ever been *received*. Now wired: `politik broadcast`
|
|
@@ -522,7 +529,7 @@ meaningless `quorum.present`, and three unreachable suspension causes —
|
|
|
522
529
|
`DEADLOCK`, `SPEAKER_ORDER` and `DISPUTED_EXIT` are now all constructible.
|
|
523
530
|
|
|
524
531
|
One audit finding was **rejected**: rule 3 counting declared slots rather than
|
|
525
|
-
seated actors is correct, because
|
|
532
|
+
seated actors is correct, because session opening runs before any actor is seated.
|
|
526
533
|
|
|
527
534
|
### Shipped since — 0.3.0 (2026-08-10)
|
|
528
535
|
|
|
@@ -572,7 +579,7 @@ Phase 8 is not meaningfully started — the npm package is published (`@cordfuse
|
|
|
572
579
|
|
|
573
580
|
**What it is:** An optional visual layer on top of the Politik tree. Each node in the 1:N hierarchy is represented as a markdown file in an Obsidian vault. Obsidian's native graph view renders the tree visually — nodes, parent-child relationships, sibling clusters, STATE.json status as frontmatter tags.
|
|
574
581
|
|
|
575
|
-
**Why it matters:** A
|
|
582
|
+
**Why it matters:** A owner managing a complex Politik tree with dozens of sessions across multiple micro layers needs a map. Obsidian is that map. GitHub is the territory. With the MCP bridge, Claude Code has both open simultaneously.
|
|
576
583
|
|
|
577
584
|
**The toolchain:**
|
|
578
585
|
```
|
|
@@ -584,23 +591,23 @@ obsidian-mcp plugin ← MCP server exposing vault to Claude Code
|
|
|
584
591
|
semantic search across the tree
|
|
585
592
|
read/write vault files via MCP protocol
|
|
586
593
|
|
|
587
|
-
GitHub MCP ← the actual
|
|
594
|
+
GitHub MCP ← the actual log, LEDGER, STATE.json data
|
|
588
595
|
live session data from the repos
|
|
589
596
|
|
|
590
|
-
Claude Code (
|
|
597
|
+
Claude Code (owner) ← both MCPs connected simultaneously
|
|
591
598
|
"show all FAULT_ACTOR sessions under saas-backend
|
|
592
599
|
in the last 30 days" → reads Obsidian graph +
|
|
593
|
-
GitHub
|
|
600
|
+
GitHub log data to answer
|
|
594
601
|
```
|
|
595
602
|
|
|
596
|
-
**The sync script:** A Politik CLI command (`politik sync-vault`) reads all repos in the tree and regenerates the Obsidian vault markdown. Not real-time — on-demand or scheduled. Adds frontmatter tags for STATE.json status so Obsidian's graph view can colour-code by state: green (`CONVENED`), amber (`SUSPENDED`), grey (`
|
|
603
|
+
**The sync script:** A Politik CLI command (`politik sync-vault`) reads all repos in the tree and regenerates the Obsidian vault markdown. Not real-time — on-demand or scheduled. Adds frontmatter tags for STATE.json status so Obsidian's graph view can colour-code by state: green (`CONVENED`), amber (`SUSPENDED`), grey (`CLOSED`), red (`SUSPENDED` with `suspension.cause: MISCONDUCT`). Constitutional crisis is a cause of suspension, not a state of its own — see ADR-0003.
|
|
597
604
|
|
|
598
605
|
**Existing MCP options (all open source, as of 2025):**
|
|
599
606
|
- `obsidian-mcp-tools` — Claude Desktop integration, semantic search, template execution
|
|
600
607
|
- `obsidian-claude-code-mcp` — Claude Code + Claude Desktop simultaneous connection via WebSocket and HTTP/SSE
|
|
601
608
|
- `mcp-obsidian` — simple REST API bridge, works with any MCP client
|
|
602
609
|
|
|
603
|
-
**Not a v1 requirement.** The tree works without visualisation. Sessions run.
|
|
610
|
+
**Not a v1 requirement.** The tree works without visualisation. Sessions run. logs commit. LEDGER tracks cost. The Obsidian layer is an owner tooling convenience — valuable once the tree has enough nodes to benefit from a visual map.
|
|
604
611
|
|
|
605
612
|
**Versioning target:** v1.x.x — ships as an optional community integration after v1.0.0 stable.
|
|
606
613
|
|
|
@@ -613,10 +620,10 @@ Claude Code (Speaker) ← both MCPs connected simultaneously
|
|
|
613
620
|
→ arXiv cs.SE recent papers on agent collaboration
|
|
614
621
|
→ Target: university CS departments with empirical SE focus
|
|
615
622
|
|
|
616
|
-
[ ] Identify
|
|
617
|
-
→ Google Scholar: "
|
|
618
|
-
→ arXiv cs.GT recent papers
|
|
619
|
-
→
|
|
623
|
+
[ ] Identify social choice researcher candidates
|
|
624
|
+
→ Google Scholar: "computational social choice" "jury theorem"
|
|
625
|
+
→ arXiv cs.GT and cs.MA recent papers on voting and aggregation
|
|
626
|
+
→ COMSOC workshop and AAMAS author lists
|
|
620
627
|
```
|
|
621
628
|
|
|
622
629
|
**Collaboration structure:**
|
|
@@ -624,34 +631,30 @@ Claude Code (Speaker) ← both MCPs connected simultaneously
|
|
|
624
631
|
[ ] Align on authorship order before writing begins
|
|
625
632
|
[ ] Agree on IP ownership — framework stays Cordfuse
|
|
626
633
|
[ ] Agree on paper scope — one unified paper, framework + experiment inseparable
|
|
627
|
-
[ ] Agree on venue targets: arXiv cs.MA
|
|
634
|
+
[ ] Agree on venue targets: arXiv cs.MA (cross-list cs.GT, cs.SE), then a peer-reviewed venue
|
|
628
635
|
[ ] Establish working cadence
|
|
629
636
|
```
|
|
630
637
|
|
|
631
638
|
### PHASE 10 — Research & Publication
|
|
632
639
|
|
|
633
|
-
**One Unified Paper — Framework + Experiment
|
|
640
|
+
**One Unified Paper — Framework + Experiment:**
|
|
634
641
|
```
|
|
635
642
|
[ ] Draft abstract and introduction
|
|
636
|
-
[ ] CANON primitive layer formal description
|
|
637
|
-
[ ] Protocol taxonomy formal description
|
|
643
|
+
[ ] CANON primitive layer and rule-defined protocols — formal description
|
|
638
644
|
[ ] Git substrate design rationale
|
|
639
|
-
[ ]
|
|
640
|
-
[ ]
|
|
641
|
-
[ ]
|
|
642
|
-
[ ] Politik sessions run under each protocol
|
|
645
|
+
[ ] Hypotheses H1–H4 pre-registered before runs (RESEARCH.md)
|
|
646
|
+
[ ] Tasks with a known right answer selected (hidden test suites)
|
|
647
|
+
[ ] Sessions run: protocol × team size × single-model vs mixed-vendor, repeated
|
|
643
648
|
[ ] Results measured:
|
|
644
|
-
-
|
|
645
|
-
-
|
|
646
|
-
-
|
|
647
|
-
- LEDGER cost
|
|
648
|
-
- Nash Eq convergence — did agents behave as predicted?
|
|
649
|
+
- Accuracy against the hidden answer (H1, H4)
|
|
650
|
+
- Bad decisions caught vs deadlocks and rejected good motions (H2)
|
|
651
|
+
- Vote-order agreement — herding (H3)
|
|
652
|
+
- Time and LEDGER cost per correct decision
|
|
649
653
|
[ ] Statistical analysis (SE researcher leads)
|
|
650
|
-
[ ] Discussion: which
|
|
651
|
-
[ ]
|
|
652
|
-
[ ] Submit to arXiv cs.MA + cs.SE simultaneously (SE researcher provides endorsement)
|
|
654
|
+
[ ] Discussion: which decision rules suit which task types
|
|
655
|
+
[ ] Submit to arXiv (SE / social choice collaborator provides endorsement)
|
|
653
656
|
[ ] arXiv DOI recorded — update Zenodo entry to cross-reference
|
|
654
|
-
[ ]
|
|
657
|
+
[ ] Peer-reviewed venue submission
|
|
655
658
|
```
|
|
656
659
|
|
|
657
660
|
---
|
|
@@ -664,7 +667,7 @@ Claude Code (Speaker) ← both MCPs connected simultaneously
|
|
|
664
667
|
|
|
665
668
|
### The 1:N Node Architecture
|
|
666
669
|
|
|
667
|
-
Every node in Politik is a Proceeding. A leaf node — one with no children — is a session. A node with children is a parent. The tree has no fixed depth — as shallow as Universe → Session or as deep as Organisation →
|
|
670
|
+
Every node in Politik is a Proceeding. A leaf node — one with no children — is a session. A node with children is a parent. The tree has no fixed depth — as shallow as Universe → Session or as deep as Organisation → vote → Department → Team → Sub-team → Sprint → Ticket → Sub-ticket → Task. There is no architectural limit.
|
|
668
671
|
|
|
669
672
|
```
|
|
670
673
|
Any node can be:
|
|
@@ -688,7 +691,7 @@ org/politik-root ← constitutional layer
|
|
|
688
691
|
└── org/politik-PROJ-112a ← sub-ticket (if scope expands)
|
|
689
692
|
```
|
|
690
693
|
|
|
691
|
-
Every node has a Charter (inheriting from parent), a
|
|
694
|
+
Every node has a Charter (inheriting from parent), a log (scoped to its level), a STATE.json, and a LEDGER. The moment a leaf gains a child it becomes a parent — no special migration, no architectural change, just a new node with `inherits_from` pointing at its parent.
|
|
692
695
|
|
|
693
696
|
> **Storage model (ADR-0008, shipped).** The example above draws each node as its own repository, but that is now the *opt-in* mode. The **default is a monorepo tree**: nodes are nested directories in one repository, `inherits_from` is a relative path to the parent directory, and the whole hierarchy shares one clone, one CI, one history. A node opts out into its own repository with `politik init --standalone` when it needs per-session pull requests or a hard permission boundary. And the GLOBAL / federation layer below is **built, not roadmap** — `politik registry` is the "session open/close registry" and state-of-everything roll-up; `politik cascade` records the `CASCADE_ALERT`. Federation is local traversal over the one tree (`src/federation.ts`), not cross-repo orchestration.
|
|
694
697
|
|
|
@@ -700,67 +703,67 @@ An actor declared at the team MICRO level is available to any session under that
|
|
|
700
703
|
- **Demoted downward** — an actor scoped to a specific sub-ticket because their hard skills are only relevant there
|
|
701
704
|
- **Transferred laterally** — an actor moved from one branch of the tree to another by AUTHORITY at the appropriate parent node
|
|
702
705
|
|
|
703
|
-
All mobility is
|
|
706
|
+
All mobility is log-attributed at the node level where the decision was made.
|
|
704
707
|
|
|
705
|
-
### Every Node Has a Scoped
|
|
708
|
+
### Every Node Has a Scoped log
|
|
706
709
|
|
|
707
710
|
```
|
|
708
|
-
ROOT
|
|
711
|
+
ROOT log ← constitutional events: CASCADE_ALERT, QUARANTINE,
|
|
709
712
|
RESTRUCTURE, PROMOTE_SCOPE, DEMOTE_SCOPE
|
|
710
713
|
|
|
711
|
-
GLOBAL
|
|
714
|
+
GLOBAL log ← org-wide: actor profile changes, constraint modifications,
|
|
712
715
|
sprint gates, session open/close registry
|
|
713
716
|
|
|
714
|
-
MICRO
|
|
717
|
+
MICRO log ← team-level: sub-team decisions, actor assignments,
|
|
715
718
|
local fault patterns, performance summaries
|
|
716
719
|
|
|
717
|
-
LEAF
|
|
718
|
-
fault, cost entry (the
|
|
720
|
+
LEAF log ← full session record: every motion, division, escalation,
|
|
721
|
+
fault, cost entry (the log already fully designed)
|
|
719
722
|
```
|
|
720
723
|
|
|
721
|
-
The chain of
|
|
724
|
+
The chain of logs from leaf to root is the complete forensic record of how any decision was made, propagated, or failed at every level of the organisation.
|
|
722
725
|
|
|
723
726
|
### Cascade Failure and Recovery — Within the Human/Organisational Domain
|
|
724
727
|
|
|
725
|
-
The tree structure makes cascade failure visible and containable in a way no previous governance framework has achieved. When a leaf node hits
|
|
728
|
+
The tree structure makes cascade failure visible and containable in a way no previous governance framework has achieved. When a leaf node hits MISCONDUCT, the failure propagates upward through the log chain. Each parent node records its piece of the cascade. The root either quarantines the branch or restructures it.
|
|
726
729
|
|
|
727
730
|
**Organisational examples where this pattern is directly applicable:**
|
|
728
731
|
|
|
729
732
|
**2008 financial crisis** — Bear Stearns was a leaf node that hit FAULT_CRITICAL. The cascade propagated to Lehman Brothers (sibling leaf), then to the US financial system (parent GLOBAL), then to global capital markets (ROOT). No CASCADE_ALERT mechanism existed. No QUARANTINE was issued in time. RESTRUCTURE (TARP) cost $700 billion. A Politik tree with CASCADE_ALERT would have flagged the pattern when Bear Stearns first showed fault signals.
|
|
730
733
|
|
|
731
|
-
**Enron 2001** — GLOBAL
|
|
734
|
+
**Enron 2001** — GLOBAL MISCONDUCT through deliberate AUTHORITY fraud. QUARANTINE (SEC freeze). RESTRUCTURE (bankruptcy). The physical audit records — the closest human analog to a log — were destroyed by Arthur Andersen. Criminal charges followed. The log, being append-only and cryptographically linked, cannot be destroyed.
|
|
732
735
|
|
|
733
736
|
**The 2003 Northeast blackout** — a SESSION-level alarm failure in an Ohio utility cascaded to 55 million people in 8 seconds because the tree had no CASCADE_ALERT and no QUARANTINE mechanism. Circuit breakers (the human equivalent of QUARANTINE) triggered too slowly.
|
|
734
737
|
|
|
735
|
-
**Agile methodology adoption** — a MICRO-level protocol developed by small software teams was PROMOTE_SCOPE'd to a universal knowledge-work practice without
|
|
738
|
+
**Agile methodology adoption** — a MICRO-level protocol developed by small software teams was PROMOTE_SCOPE'd to a universal knowledge-work practice without log evidence to justify it at that scale. The performance data that would have bounded the appropriate scope did not exist. Politik produces exactly that data.
|
|
736
739
|
|
|
737
|
-
**Healthy organisational cascade (upward propagation):** Double-blind peer review was invented in one small corner of physics in the 1930s. It produced demonstrably better outcomes (the
|
|
740
|
+
**Healthy organisational cascade (upward propagation):** Double-blind peer review was invented in one small corner of physics in the 1930s. It produced demonstrably better outcomes (the log showed it). It was PROMOTE_SCOPE'd to the scientific GLOBAL and eventually to all academic domains. This is how proven protocols should propagate — up the tree, backed by evidence.
|
|
738
741
|
|
|
739
742
|
### CASCADE_ALERT and Pattern Detection
|
|
740
743
|
|
|
741
|
-
When a failure pattern appears in multiple sibling nodes — same
|
|
744
|
+
When a failure pattern appears in multiple sibling nodes — same configuration, same protocol, same fault signature — the parent node issues CASCADE_ALERT. This is the equivalent of an epidemiological R₀ calculation: if one failure is producing more than one downstream failure across siblings, the pattern is self-sustaining and requires intervention before it reaches the parent level.
|
|
742
745
|
|
|
743
746
|
```yaml
|
|
744
747
|
cascade_alert:
|
|
745
748
|
trigger: same_fault_signature_in_siblings >= 2
|
|
746
749
|
window_days: 30
|
|
747
|
-
action:
|
|
750
|
+
action: warn_at_session_opening
|
|
748
751
|
notify: AUTHORITY
|
|
749
752
|
```
|
|
750
753
|
|
|
751
|
-
Future sessions chartering the flagged configuration receive a
|
|
754
|
+
Future sessions chartering the flagged configuration receive a session opening warning. The owner can proceed — but the risk is documented and attributed. Over time, the ROOT log becomes a pattern library of governance failures and their signatures, available to every node in the tree.
|
|
752
755
|
|
|
753
756
|
### Broader Implications — An Invitation to Other Researchers
|
|
754
757
|
|
|
755
|
-
The hierarchical cascade inheritance model formalised in this work — configurable constraint propagation, attributed
|
|
758
|
+
The hierarchical cascade inheritance model formalised in this work — configurable constraint propagation, attributed log recording at every node level, and pattern detection across sibling nodes — shares structural properties with a broad class of complex adaptive systems studied across disciplines. The authors note these structural parallels without claiming them as contributions of this work, and invite researchers in adjacent fields to evaluate whether the formal model has utility beyond the software engineering and organisational governance domain for which it was designed:
|
|
756
759
|
|
|
757
|
-
**Epidemiology** — cascade propagation from index case through community clusters to regional outbreaks maps directly to the SESSION → MICRO → GLOBAL → ROOT cascade model. The CASCADE_ALERT threshold is mathematically analogous to R₀. QUARANTINE is the public health intervention. The
|
|
760
|
+
**Epidemiology** — cascade propagation from index case through community clusters to regional outbreaks maps directly to the SESSION → MICRO → GLOBAL → ROOT cascade model. The CASCADE_ALERT threshold is mathematically analogous to R₀. QUARANTINE is the public health intervention. The log is the contact tracing record.
|
|
758
761
|
|
|
759
|
-
**Organisational science and management theory** — the actor capability profile system (
|
|
762
|
+
**Organisational science and management theory** — the actor capability profile system (hard skills, model grade, performance history) with log feedback loops represents a formal model of team composition and organisational learning that could be empirically evaluated against existing theories of team performance and institutional memory.
|
|
760
763
|
|
|
761
764
|
**Network science and complex systems** — the failure propagation model through inheritance hierarchies with configurable quarantine thresholds may be of interest to researchers studying cascades in interconnected networks, including power grids, financial systems, and supply chains.
|
|
762
765
|
|
|
763
|
-
**Political science and institutional theory** — the Constitutional Capture failure mode, the
|
|
766
|
+
**Political science and institutional theory** — the Constitutional Capture failure mode, the good-faith / bad-faith actor model, and the PROMOTE/DEMOTE/HIRE/FIRE doctrine with full log attribution represent a formal computational model of institutional corruption and recovery that may be of interest to researchers in democratic theory and comparative politics.
|
|
764
767
|
|
|
765
768
|
The authors make no claims about these domains. The formal model is presented for the software engineering and multi-agent AI research community. The structural parallels are noted as invitations, not contributions.
|
|
766
769
|
|