@its-not-rocket-science/ananke 0.1.23 → 0.1.24

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 (2) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +5 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ Versioning follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ---
8
8
 
9
+ ## [0.1.24] — 2026-03-26
10
+
11
+ ### Added
12
+
13
+ - **Phase 79 · Feudal Bonds & Vassal Tribute** (`src/feudal.ts`)
14
+ - `LoyaltyType`: `"kin_bound" | "oath_sworn" | "conquered" | "voluntary"` — governs base strength and daily decay rate.
15
+ - `VassalBond { vassalPolityId, liegePolityId, loyaltyType, tributeRate_Q, levyRate_Q, strength_Q, establishedTick }` — directed lord-vassal record.
16
+ - `FeudalRegistry { bonds: Map<string, VassalBond> }` keyed by `"vassalId:liegeId"`.
17
+ - `LOYALTY_BASE_STRENGTH`: kin_bound q(0.90) → oath_sworn q(0.70) → voluntary q(0.65) → conquered q(0.40).
18
+ - `LOYALTY_DECAY_PER_DAY`: kin_bound q(0.001)/day → conquered q(0.005)/day.
19
+ - `REBELLION_THRESHOLD = q(0.25)` — `isRebellionRisk(bond)` returns true below this.
20
+ - `computeDailyTribute` / `applyDailyTribute` — floor-based tribute scaled by `tributeRate_Q / SCALE.Q / 365`.
21
+ - `computeLevyStrength(vassal, bond)` — effective levy reduced proportionally by bond weakness (`strength_Q`).
22
+ - `stepBondStrength(bond, boostDelta_Q?)` — daily decay with optional event boost.
23
+ - `reinforceBond(bond, deltaQ)` — clamped-to-SCALE.Q reinforcement for kinship events and tribute.
24
+ - `breakVassalBond(registry, vassalId, liegeId, vassalRulerId?, renownRegistry?)` — removes bond; adds `OATH_BREAK_INFAMY_Q = q(0.15)` infamy to the vassal ruler for `oath_sworn` breaks (Phase 75 integration).
25
+ - Added `./feudal` subpath export to `package.json`.
26
+ - 58 new tests; 4,247 total. Coverage maintained above all thresholds.
27
+
28
+ ---
29
+
9
30
  ## [0.1.23] — 2026-03-26
10
31
 
11
32
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@its-not-rocket-science/ananke",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "description": "Deterministic lockstep-friendly SI-units RPG/physics core (fixed-point TS)",
6
6
  "license": "MIT",
@@ -78,6 +78,10 @@
78
78
  "./calendar": {
79
79
  "import": "./dist/src/calendar.js",
80
80
  "types": "./dist/src/calendar.d.ts"
81
+ },
82
+ "./feudal": {
83
+ "import": "./dist/src/feudal.js",
84
+ "types": "./dist/src/feudal.d.ts"
81
85
  }
82
86
  },
83
87
  "files": [