@plasius/ai-game 0.6.2 → 0.6.4

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/CHANGELOG.md CHANGED
@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/)**, and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0.0.html)**.
6
6
  ## [Unreleased]
7
7
 
8
+ - **Added**
9
+ - (placeholder)
10
+
11
+ - **Changed**
12
+ - (placeholder)
13
+
14
+ - **Fixed**
15
+ - (placeholder)
16
+
17
+ - **Security**
18
+ - (placeholder)
19
+
20
+ ## [0.6.4] - 2026-07-12
21
+
22
+ - **Added**
23
+ - Added versioned guild-quest contract and synchronization payloads under
24
+ `isekai.player-system.guild-quests.enabled`, including guild-owned
25
+ progress, failure, preview-only reward, and advisory System annotation
26
+ boundaries.
27
+
28
+ - **Changed**
29
+ - (placeholder)
30
+
31
+ - **Fixed**
32
+ - Reject duplicate removed quest identifiers in guild-quest synchronization tombstones.
33
+
34
+ - **Security**
35
+ - (placeholder)
36
+
37
+ ## [0.6.3] - 2026-07-11
38
+
8
39
  - **Added**
9
40
  - (placeholder)
10
41
 
@@ -52,6 +83,7 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
52
83
  - **Added**
53
84
  - Added observed-event log, recency-window, highlight-summary, and gossip-export contracts under `isekai.player-system.logs.enabled`.
54
85
  - Added defensive validation and immutable factories so gossip highlights can only reference the observed events in their source window.
86
+ - Added apprenticeship sponsorship, supervision, readiness, and request-only handoff contracts for spellcraft, item-crafting, and dungeon-crafting under `isekai.training.apprenticeship.enabled`.
55
87
 
56
88
  - **Changed**
57
89
  - (placeholder)
@@ -262,3 +294,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
262
294
  [0.6.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.0
263
295
  [0.6.1]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.1
264
296
  [0.6.2]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.2
297
+ [0.6.3]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.3
298
+ [0.6.4]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.4
package/README.md CHANGED
@@ -172,6 +172,27 @@ Tutorial contracts provide dormant, contextual Player System coaching under
172
172
  Tutorial tracks are foregrounded for first contact, dormant by default after
173
173
  onboarding, replayable after unlock, and reduced to safe cues during active
174
174
  combat unless the player explicitly enters a safe tutorial scenario.
175
+ ## Guild-quest synchronization contracts
176
+
177
+ Guild quests are externally authored by guild authorities and synchronized
178
+ into the Player System under `isekai.player-system.guild-quests.enabled`.
179
+
180
+ - `AiGameGuildQuestContract.guildTruth` owns the guild contract identity,
181
+ status, objective progress, failure details, authority revision, and
182
+ preview-only reward data.
183
+ - `AiGameGuildQuestContract.systemAnnotations` is advisory only. It contains
184
+ recommendation, synergy, linked-mission, and reason-code metadata without
185
+ guild authority fields or reward grants.
186
+ - `AiGameGuildQuestSyncPayload` carries revisioned quest upserts and explicit
187
+ tombstones so consumers can remove quests without treating a partial sync as
188
+ an authoritative empty set.
189
+ - Reward previews are not grants. The guild remains the authority for claim
190
+ eligibility, rewards, rank gates, consequences, and final resolution.
191
+
192
+ Use `createAiGameGuildQuest()` and
193
+ `createAiGameGuildQuestSyncPayload()` at package boundaries. The factories
194
+ validate progress bounds, failure-state requirements, unique identifiers,
195
+ guild ownership, and sync revision metadata, and return frozen payloads.
175
196
 
176
197
  ## Quiet Measure contracts
177
198
 
@@ -232,6 +253,28 @@ npm run test:coverage
232
253
  npm run pack:check
233
254
  ```
234
255
 
256
+ ## Apprenticeship handoff contracts
257
+
258
+ The apprenticeship bridge is enabled by `isekai.training.apprenticeship.enabled`
259
+ and keeps authority separated across the Player System, training, and crafting
260
+ contexts.
261
+
262
+ - `createAiGameApprenticeshipSponsorship` models the institution and sponsor
263
+ relationship using opaque subject identifiers and bounded scope codes.
264
+ - `createAiGameApprenticeshipSupervision` models direct, delegated, or milestone
265
+ supervision and its checkpoints.
266
+ - `createAiGameApprenticeshipReadiness` carries trust, MCC track, and prerequisite
267
+ evidence. A `ready` record cannot contain unmet prerequisites.
268
+ - `createAiGameApprenticeshipHandoff` emits request-only payloads for
269
+ `spellcraft-system`, `item-crafting-system`, or `dungeon-crafting-system`,
270
+ and only accepts a `ready` readiness state.
271
+
272
+ The Player System may guide and route a request, but the target system remains
273
+ authoritative for validation, authorization, execution, and outcome. Handoff
274
+ payloads contain no secrets or hidden System state. See
275
+ [ADR-0018](./docs/adrs/adr-0018-apprenticeship-handoff-contract-boundary.md)
276
+ for the boundary and rollback rules.
277
+
235
278
  ## Feature flags
236
279
 
237
280
  - `ai.game.event-recorder.contracts.enabled`
@@ -247,9 +290,11 @@ npm run pack:check
247
290
  - `isekai.player-system.tutorial.enabled`
248
291
  - `isekai.player-system.identity.enabled`
249
292
  - `isekai.player-system.logs.enabled`
293
+ - `isekai.player-system.guild-quests.enabled`
250
294
  - `isekai.training.institutions.enabled`
251
295
  - `isekai.training.academies.enabled`
252
296
  - `isekai.training.martial.enabled`
297
+ - `isekai.training.apprenticeship.enabled`
253
298
 
254
299
  ## Governance
255
300