@plasius/ai-game 0.6.7 → 0.6.8

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.
@@ -0,0 +1,39 @@
1
+ # ADR 0021: Preserve AI-game rollout keys across the training 1.x upgrade
2
+
3
+ Status: Accepted
4
+
5
+ ## Context
6
+
7
+ Dependency Task #6 under Plasius-LTD/plasius-ltd-site#293 upgrades the bridge
8
+ from training 0.2 to the published training 1.0.2 package. The upstream package
9
+ renamed its rollout constants from `isekai.training.*` to `harmony.training.*`.
10
+ Re-exporting those constants changed AI-game's existing public string values
11
+ and failed its contract tests, even though the authority types and helpers
12
+ remain compatible.
13
+
14
+ ## Decision
15
+
16
+ Continue using the canonical training package for all institutions, trust,
17
+ specialization types, validation, and construction. Keep the three established
18
+ AI-game training rollout identifiers as explicit compatibility constants at the
19
+ bridge boundary. The bridge does not evaluate flags or duplicate authority
20
+ logic. A separate, intentional API migration is required to rename these keys.
21
+
22
+ The dependency wave inherits `ops.dependency-refresh.latest-stable.2026-05.enabled`
23
+ from the parent Feature; application rollout remains site-controlled. Direct
24
+ training consumers retain training's new Harmony keys.
25
+
26
+ ## Alternatives and consequences
27
+
28
+ Adopting the new string values would silently change configured rollout gates.
29
+ Keeping the old dependency would leave consumers behind the verified upstream
30
+ release. Explicit compatibility constants allow the upgrade without either
31
+ behavior. Existing callers and their rollout configuration remain unchanged.
32
+
33
+ ## Validation and rollback
34
+
35
+ A regression test checks the upstream 1.x key and all three stable bridge keys.
36
+ Existing training behavior tests, typecheck, build, lint, coverage and package
37
+ checks verify the upgrade. Every changed source file must appear in LCOV.
38
+ Rollback pins the prior published AI-game version; existing flag keys require
39
+ no operator migration.
@@ -20,3 +20,5 @@
20
20
  - [ADR-0017: Tutorial contract boundary](./adr-0017-tutorial-contract-boundary.md)
21
21
  - [ADR-0018: Apprenticeship handoff contract boundary](./adr-0018-apprenticeship-handoff-contract-boundary.md)
22
22
  - [ADR-0020: Hosted OIDC Package Publication](./adr-0020-hosted-oidc-package-publication.md)
23
+
24
+ - [ADR 0021: Training upgrade rollout compatibility](adr-0021-training-upgrade-rollout-compatibility.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/ai-game",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Game-domain AI contracts for player action validation, NPC actions, gossip, and feedback.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -98,6 +98,6 @@
98
98
  "minimatch": "^10.2.1"
99
99
  },
100
100
  "dependencies": {
101
- "@plasius/training": "^0.2.0"
101
+ "@plasius/training": "^1.0.2"
102
102
  }
103
103
  }