@cordfuse/politik 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/EXECUTION.md +90 -85
  2. package/POLITIK-ARCHITECTURE.md +111 -176
  3. package/PROTOCOLS.md +120 -289
  4. package/README.md +130 -177
  5. package/RESEARCH.md +142 -436
  6. package/RUNTIME.md +253 -261
  7. package/docs/adr/0001-chamber-transport.md +2 -0
  8. package/docs/adr/0002-charter-schema.md +2 -0
  9. package/docs/adr/0003-state-json-schema.md +2 -0
  10. package/docs/adr/0004-motion-enactment.md +2 -0
  11. package/docs/adr/0005-hansard-format.md +2 -0
  12. package/docs/adr/0006-protocol-behavioral-enforcement.md +2 -0
  13. package/docs/adr/0007-protocol-mechanics.md +2 -0
  14. package/docs/adr/0008-session-storage.md +2 -0
  15. package/docs/adr/0009-match-primitive.md +2 -0
  16. package/docs/adr/0010-operator-interface.md +2 -0
  17. package/docs/adr/0011-shared-sessions.md +2 -0
  18. package/docs/adr/0012-plain-vocabulary.md +68 -0
  19. package/docs/adr/0013-rule-defined-protocols.md +89 -0
  20. package/package.json +1 -1
  21. package/protocols/CONTRIBUTING.md +47 -87
  22. package/protocols/adversarial-review.yml +19 -0
  23. package/protocols/elimination-rounds.yml +18 -0
  24. package/protocols/majority-vote.yml +18 -0
  25. package/protocols/panel-review.yml +19 -0
  26. package/protocols/single-decider.yml +18 -0
  27. package/protocols/unanimous-vote.yml +17 -0
  28. package/src/actors.ts +124 -100
  29. package/src/agents.ts +64 -23
  30. package/src/ballot.ts +747 -0
  31. package/src/canon.ts +23 -10
  32. package/src/capability.ts +16 -99
  33. package/src/charter.ts +41 -34
  34. package/src/cli.ts +541 -480
  35. package/src/{prorogation.ts → closing.ts} +43 -43
  36. package/src/conflict.ts +14 -14
  37. package/src/containment.ts +11 -11
  38. package/src/doctor.ts +1 -1
  39. package/src/election.ts +4 -4
  40. package/src/envelope.ts +3 -3
  41. package/src/escalation.ts +44 -44
  42. package/src/fault.ts +8 -8
  43. package/src/federation.ts +14 -14
  44. package/src/git.ts +21 -18
  45. package/src/heartbeat.ts +32 -32
  46. package/src/index.ts +5 -5
  47. package/src/init.ts +66 -65
  48. package/src/integrity.ts +30 -30
  49. package/src/ledger.ts +3 -3
  50. package/src/{hansard.ts → log.ts} +20 -20
  51. package/src/{crisis.ts → misconduct.ts} +70 -70
  52. package/src/operator.ts +5 -5
  53. package/src/pending.ts +9 -9
  54. package/src/projection.ts +30 -30
  55. package/src/protocol-sdk.ts +12 -121
  56. package/src/protocol.ts +8 -78
  57. package/src/providers/github.ts +12 -12
  58. package/src/quorum.ts +7 -7
  59. package/src/remote.ts +1 -1
  60. package/src/runner.ts +134 -55
  61. package/src/scm.ts +14 -14
  62. package/src/spawn.ts +4 -4
  63. package/src/standings.ts +13 -13
  64. package/src/state.ts +6 -6
  65. package/src/templates/session.ts +448 -0
  66. package/src/tournament.ts +20 -20
  67. package/src/transport.ts +4 -4
  68. package/src/tree.ts +16 -16
  69. package/protocols/adversarial-collaboration.yml +0 -28
  70. package/protocols/corporate.yml +0 -35
  71. package/protocols/elimination-tournament.yml +0 -41
  72. package/protocols/emergency-response-ics.yml +0 -27
  73. package/protocols/jury-deliberation.yml +0 -32
  74. package/protocols/monarchy.yml +0 -31
  75. package/protocols/parliamentary.yml +0 -66
  76. package/protocols/peer-review.yml +0 -44
  77. package/protocols/republic.yml +0 -36
  78. package/protocols/socialism-collective.yml +0 -31
  79. package/protocols/solo.yml +0 -32
  80. package/src/division.ts +0 -609
  81. package/src/templates/parliamentary.ts +0 -580
package/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 Hansard is required by default. Corrected in RUNTIME.md. See ADR-0002.
56
- 2. **`CONSTITUTIONAL_CRISIS` is a cause of suspension**, not a sixth state and
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 Hansard writer has something attributable to
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 (Writ Drop)— src/init.ts
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 Hansard commit writer — src/hansard.ts
85
- [x] Implement Point of Order workflow — src/escalation.ts
86
- [x] Implement Speaker email notification — provider notify() + session workflow
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 prorogation workflow — src/prorogation.ts
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 — Speaker notification has two delivery paths.** `ScmProvider.notify()`
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 Speaker's own reply,
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
- Writ Drop committed as a single commit (blobs → tree → commit → ref), label
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, Standing Orders, Hansard excerpt (agents are stateless — the
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 (Speaker, Minister, Backbencher, …) — one per CANON role, five in total
214
- [x] Standing Orders template — prose body of the Charter template
215
- [x] Hansard format spec — ADR-0005 (Accepted)
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 Order Paper template — ORDER-PAPER.md
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 DIVISION is a DIVISION whether it renders as "Division" or
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
- `POINT_OF_ORDER`, never "Point of Order" (ADR-0005 ruling 3). Translation is
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
- **Hansard format settled.** ADR-0005 ratifies the two choices Phase 2 had to
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 ORDER-PAPER.md. Closing it is part
246
- of prorogation — `prorogue()` returns `milestone_to_close` and the GitHub
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 Writ Drop validation against the
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, Order Paper and role files for editing. Deliberately separate from
257
- `init`: scaffolding produces prose for a Speaker to read and edit, `init` drops
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
 
@@ -263,7 +270,7 @@ unread template.
263
270
  **Framing note:** Parliamentary is protocol #1, not a privileged mode.
264
271
  All protocols are equal. The framework is protocol-agnostic.
265
272
 
266
- **Shipped with framework (reference protocols):** all eleven in `protocols/`,
273
+ **Shipped with framework (reference protocols):** all twelve in `protocols/`,
267
274
  every one lint-clean.
268
275
 
269
276
  ```
@@ -278,6 +285,7 @@ every one lint-clean.
278
285
  [x] Peer Review (scientific research) peer-review.yml
279
286
  [x] Adversarial Collaboration (scientific research) adversarial-collaboration.yml
280
287
  [x] Solo (single-lead) solo.yml
288
+ [x] Scrum / Agile (the comparison baseline) scrum.yml
281
289
  ```
282
290
 
283
291
  The eleven were curated from a much wider design exploration — 52 shapes down to
@@ -285,11 +293,12 @@ eleven professional exemplars, with fascism and organized-crime cut as liabiliti
285
293
  and games and toys trimmed. Modes represented: constitutional (parliamentary,
286
294
  republic, corporate, peer-review), a unanimity Jury, a darwinist elimination
287
295
  Tournament, and an authoritarian ICS incident command. PROTOCOLS.md documents the
288
- eleven.
296
+ eleven. Scrum / Agile was added later as a twelfth: not a curated exemplar but the
297
+ baseline RESEARCH.md measures the others against, available and never the default.
289
298
 
290
299
  **Power inversions are declared, never inferred.** `jury-deliberation.yml` and
291
300
  `peer-review.yml` let a lower-trust role — a juror, a reviewer — override the
292
- final Division on domain grounds. Both contradict the trust hierarchy, which is
301
+ final vote on domain grounds. Both contradict the trust hierarchy, which is
293
302
  exactly why CANON models them as `domain_veto` rather than deriving them.
294
303
 
295
304
  **Compose your own.** The eleven are exemplars, not a fixed set: CANON plus a
@@ -368,7 +377,7 @@ Linux bare metal: `doctor` reports READY with six agents installed
368
377
  those were driven live in Phase 3.
369
378
 
370
379
  Linux Docker: `doctor` → `scaffold` → `validate` → `init` → `status` →
371
- `prorogue` all completed inside `node:22-alpine`, and the full test suite ran
380
+ `close` all completed inside `node:22-alpine`, and the full test suite ran
372
381
  green in the container. `doctor` correctly reported NOT READY (exit 1) in a
373
382
  container *without* git, which is the check earning its keep.
374
383
 
@@ -427,7 +436,7 @@ side.
427
436
  a Motion carried, whether an actor may vote, or whether a session is suspended —
428
437
  those are settled before a provider method is called. `merge()` enacts a Motion;
429
438
  it does not check that the Motion carried, because that answer belongs in the
430
- Hansard. A provider making governance decisions has moved logic out of the
439
+ log. A provider making governance decisions has moved logic out of the
431
440
  record's reach, which defeats the framework.
432
441
 
433
442
  **Eight contracts** are documented: async everywhere, typed handles rather than
@@ -447,8 +456,8 @@ never get run.
447
456
  **Not in the original plan, and its absence was the plan's most serious gap.**
448
457
 
449
458
  Phases 2–7 delivered components: Charter parser, validator, initializer, SCM
450
- provider, envelope parser, election mutex, Hansard writer, quorum, escalation,
451
- prorogation, agent registry, spawner, protocol layer, templates. Every one
459
+ provider, envelope parser, election mutex, log writer, quorum, escalation,
460
+ closing, agent registry, spawner, protocol layer, templates. Every one
452
461
  tested. Not one of them *runs a session* — and nothing in `src/` called
453
462
  `spawnAgent`, `composePrompt` or `standForElection` outside their own tests.
454
463
 
@@ -470,16 +479,16 @@ session repo. Claude Code seated twice as OPERATOR — `minister-alpha` and
470
479
  `minister-bravo` — each tabling a Motion:
471
480
 
472
481
  - `motions/motion-001.md` — every Motion must state its Rollback Plan
473
- - `motions/motion-002.md` — Points of Order must cite the Standing Order invoked
482
+ - `motions/motion-002.md` — escalations must cite the Standing Order invoked
474
483
 
475
484
  Both drafted in Parliamentary vocabulary, both committed by the agent itself,
476
- both recorded as attributed `MOTION_TABLED` entries in an append-only Hansard.
485
+ both recorded as attributed `MOTION_TABLED` entries in an append-only log.
477
486
  The framework governed a session.
478
487
 
479
488
  **The live run found a bug nothing else could have.** Turn 1 recorded
480
489
  `Files touched: none` while the agent had in fact written *and committed* a
481
490
  Motion. Change detection used `git status --porcelain`, which is clean precisely
482
- *because* the agent committed — and the Standing Orders this framework ships
491
+ *because* the agent committed — and the Charter this framework ships
483
492
  tell agents "commit your result; uncommitted work does not exist". The runner's
484
493
  detection contradicted the framework's own instructions. Now diffs committed
485
494
  work (`HEAD` before/after) as well as the working tree.
@@ -504,9 +513,9 @@ A full source-vs-documentation audit was run and recorded in
504
513
  The two that mattered — both real, both fixed:
505
514
 
506
515
  1. **The SCM provider was dead code at runtime.** Eleven methods, 21 tests, a
507
- live verification — and nothing in `src/` ever called it, so `ASSENT`
516
+ live verification — and nothing in `src/` ever called it, so `ENACT`
508
517
  recorded a decision that changed nothing. Now wired: a Motion carried by
509
- Division and enacted by Assent **merged a real pull request** (`#1` on
518
+ vote and enacted by enactment **merged a real pull request** (`#1` on
510
519
  `politik-live-002`, merge commit `c6b48c91`).
511
520
  2. **The transport was equally unwired.** `runTurn` synthesized its envelope, so
512
521
  no broadcast had ever been *received*. Now wired: `politik broadcast`
@@ -520,7 +529,7 @@ meaningless `quorum.present`, and three unreachable suspension causes —
520
529
  `DEADLOCK`, `SPEAKER_ORDER` and `DISPUTED_EXIT` are now all constructible.
521
530
 
522
531
  One audit finding was **rejected**: rule 3 counting declared slots rather than
523
- seated actors is correct, because Writ Drop runs before any actor is seated.
532
+ seated actors is correct, because session opening runs before any actor is seated.
524
533
 
525
534
  ### Shipped since — 0.3.0 (2026-08-10)
526
535
 
@@ -570,7 +579,7 @@ Phase 8 is not meaningfully started — the npm package is published (`@cordfuse
570
579
 
571
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.
572
581
 
573
- **Why it matters:** A Speaker 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.
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.
574
583
 
575
584
  **The toolchain:**
576
585
  ```
@@ -582,23 +591,23 @@ obsidian-mcp plugin ← MCP server exposing vault to Claude Code
582
591
  semantic search across the tree
583
592
  read/write vault files via MCP protocol
584
593
 
585
- GitHub MCP ← the actual Hansard, LEDGER, STATE.json data
594
+ GitHub MCP ← the actual log, LEDGER, STATE.json data
586
595
  live session data from the repos
587
596
 
588
- Claude Code (Speaker) ← both MCPs connected simultaneously
597
+ Claude Code (owner) ← both MCPs connected simultaneously
589
598
  "show all FAULT_ACTOR sessions under saas-backend
590
599
  in the last 30 days" → reads Obsidian graph +
591
- GitHub Hansard data to answer
600
+ GitHub log data to answer
592
601
  ```
593
602
 
594
- **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 (`PROROGUED`), red (`SUSPENDED` with `suspension.cause: CONSTITUTIONAL_CRISIS`). Constitutional crisis is a cause of suspension, not a state of its own — see ADR-0003.
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.
595
604
 
596
605
  **Existing MCP options (all open source, as of 2025):**
597
606
  - `obsidian-mcp-tools` — Claude Desktop integration, semantic search, template execution
598
607
  - `obsidian-claude-code-mcp` — Claude Code + Claude Desktop simultaneous connection via WebSocket and HTTP/SSE
599
608
  - `mcp-obsidian` — simple REST API bridge, works with any MCP client
600
609
 
601
- **Not a v1 requirement.** The tree works without visualisation. Sessions run. Hansards commit. LEDGER tracks cost. The Obsidian layer is a Speaker tooling convenience — valuable once the tree has enough nodes to benefit from a visual map.
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.
602
611
 
603
612
  **Versioning target:** v1.x.x — ships as an optional community integration after v1.0.0 stable.
604
613
 
@@ -611,10 +620,10 @@ Claude Code (Speaker) ← both MCPs connected simultaneously
611
620
  → arXiv cs.SE recent papers on agent collaboration
612
621
  → Target: university CS departments with empirical SE focus
613
622
 
614
- [ ] Identify game theory researcher candidates
615
- → Google Scholar: "mechanism design" "multi-agent"
616
- → arXiv cs.GT recent papers
617
- → EC conference author lists
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
618
627
  ```
619
628
 
620
629
  **Collaboration structure:**
@@ -622,34 +631,30 @@ Claude Code (Speaker) ← both MCPs connected simultaneously
622
631
  [ ] Align on authorship order before writing begins
623
632
  [ ] Agree on IP ownership — framework stays Cordfuse
624
633
  [ ] Agree on paper scope — one unified paper, framework + experiment inseparable
625
- [ ] Agree on venue targets: arXiv cs.MA + cs.SE, then ICSE or EC
634
+ [ ] Agree on venue targets: arXiv cs.MA (cross-list cs.GT, cs.SE), then a peer-reviewed venue
626
635
  [ ] Establish working cadence
627
636
  ```
628
637
 
629
638
  ### PHASE 10 — Research & Publication
630
639
 
631
- **One Unified Paper — Framework + Experiment + Game Theory:**
640
+ **One Unified Paper — Framework + Experiment:**
632
641
  ```
633
642
  [ ] Draft abstract and introduction
634
- [ ] CANON primitive layer formal description
635
- [ ] Protocol taxonomy formal description
643
+ [ ] CANON primitive layer and rule-defined protocols — formal description
636
644
  [ ] Git substrate design rationale
637
- [ ] Game theory formal models per protocol (game theorist leads)
638
- [ ] Nash Equilibrium predictions documented before experiments run
639
- [ ] Identical engineering problems selected as test cases
640
- [ ] 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
641
648
  [ ] Results measured:
642
- - Code quality (defect rate, test coverage, complexity)
643
- - Speed (time to completion)
644
- - Collaboration patterns (escalation rate, Division rate, deadlock rate)
645
- - LEDGER cost-per-outcome across protocols
646
- - 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
647
653
  [ ] Statistical analysis (SE researcher leads)
648
- [ ] Discussion: which protocols suit which problem types
649
- [ ] Agile comparison — is it optimal or just default?
650
- [ ] 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)
651
656
  [ ] arXiv DOI recorded — update Zenodo entry to cross-reference
652
- [ ] Target venue submission: ICSE or EC (Economics and Computation)
657
+ [ ] Peer-reviewed venue submission
653
658
  ```
654
659
 
655
660
  ---
@@ -662,7 +667,7 @@ Claude Code (Speaker) ← both MCPs connected simultaneously
662
667
 
663
668
  ### The 1:N Node Architecture
664
669
 
665
- 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 → Division → Department → Team → Sub-team → Sprint → Ticket → Sub-ticket → Task. There is no architectural limit.
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.
666
671
 
667
672
  ```
668
673
  Any node can be:
@@ -686,7 +691,7 @@ org/politik-root ← constitutional layer
686
691
  └── org/politik-PROJ-112a ← sub-ticket (if scope expands)
687
692
  ```
688
693
 
689
- Every node has a Charter (inheriting from parent), a Hansard (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.
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.
690
695
 
691
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.
692
697
 
@@ -698,67 +703,67 @@ An actor declared at the team MICRO level is available to any session under that
698
703
  - **Demoted downward** — an actor scoped to a specific sub-ticket because their hard skills are only relevant there
699
704
  - **Transferred laterally** — an actor moved from one branch of the tree to another by AUTHORITY at the appropriate parent node
700
705
 
701
- All mobility is Hansard-attributed at the node level where the decision was made.
706
+ All mobility is log-attributed at the node level where the decision was made.
702
707
 
703
- ### Every Node Has a Scoped Hansard
708
+ ### Every Node Has a Scoped log
704
709
 
705
710
  ```
706
- ROOT Hansard ← constitutional events: CASCADE_ALERT, QUARANTINE,
711
+ ROOT log ← constitutional events: CASCADE_ALERT, QUARANTINE,
707
712
  RESTRUCTURE, PROMOTE_SCOPE, DEMOTE_SCOPE
708
713
 
709
- GLOBAL Hansard ← org-wide: actor profile changes, constraint modifications,
714
+ GLOBAL log ← org-wide: actor profile changes, constraint modifications,
710
715
  sprint gates, session open/close registry
711
716
 
712
- MICRO Hansard ← team-level: sub-team decisions, actor assignments,
717
+ MICRO log ← team-level: sub-team decisions, actor assignments,
713
718
  local fault patterns, performance summaries
714
719
 
715
- LEAF Hansard ← full session record: every motion, division, escalation,
716
- fault, cost entry (the Hansard already fully designed)
720
+ LEAF log ← full session record: every motion, division, escalation,
721
+ fault, cost entry (the log already fully designed)
717
722
  ```
718
723
 
719
- The chain of Hansards from leaf to root is the complete forensic record of how any decision was made, propagated, or failed at every level of the organisation.
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.
720
725
 
721
726
  ### Cascade Failure and Recovery — Within the Human/Organisational Domain
722
727
 
723
- The tree structure makes cascade failure visible and containable in a way no previous governance framework has achieved. When a leaf node hits CONSTITUTIONAL_CRISIS, the failure propagates upward through the Hansard chain. Each parent node records its piece of the cascade. The root either quarantines the branch or restructures it.
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.
724
729
 
725
730
  **Organisational examples where this pattern is directly applicable:**
726
731
 
727
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.
728
733
 
729
- **Enron 2001** — GLOBAL CONSTITUTIONAL_CRISIS through deliberate AUTHORITY fraud. QUARANTINE (SEC freeze). RESTRUCTURE (bankruptcy). The physical audit records — the closest human analog to a Hansard — were destroyed by Arthur Andersen. Criminal charges followed. The Hansard, being append-only and cryptographically linked, cannot be destroyed.
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.
730
735
 
731
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.
732
737
 
733
- **Agile methodology adoption** — a MICRO-level protocol developed by small software teams was PROMOTE_SCOPE'd to a universal knowledge-work practice without Hansard 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.
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.
734
739
 
735
- **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 Hansard 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.
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.
736
741
 
737
742
  ### CASCADE_ALERT and Pattern Detection
738
743
 
739
- When a failure pattern appears in multiple sibling nodes — same archetype 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.
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.
740
745
 
741
746
  ```yaml
742
747
  cascade_alert:
743
748
  trigger: same_fault_signature_in_siblings >= 2
744
749
  window_days: 30
745
- action: warn_at_writ_drop
750
+ action: warn_at_session_opening
746
751
  notify: AUTHORITY
747
752
  ```
748
753
 
749
- Future sessions chartering the flagged configuration receive a Writ Drop warning. The Speaker can proceed — but the risk is documented and attributed. Over time, the ROOT Hansard becomes a pattern library of governance failures and their signatures, available to every node in the tree.
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.
750
755
 
751
756
  ### Broader Implications — An Invitation to Other Researchers
752
757
 
753
- The hierarchical cascade inheritance model formalised in this work — configurable constraint propagation, attributed Hansard 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:
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:
754
759
 
755
- **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 Hansard is the contact tracing record.
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.
756
761
 
757
- **Organisational science and management theory** — the actor capability profile system (personality archetype, soft skills, hard skills, model grade, performance history) with Hansard 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.
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.
758
763
 
759
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.
760
765
 
761
- **Political science and institutional theory** — the Constitutional Capture failure mode, the virtue/vice actor model, and the PROMOTE/DEMOTE/HIRE/FIRE doctrine with full Hansard attribution represent a formal computational model of institutional corruption and recovery that may be of interest to researchers in democratic theory and comparative politics.
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.
762
767
 
763
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.
764
769