@plasius/ai-game 0.6.1 → 0.6.3
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 +32 -0
- package/README.md +47 -0
- package/dist/index.cjs +580 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +227 -1
- package/dist/index.d.ts +227 -1
- package/dist/index.js +547 -5
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0017-tutorial-contract-boundary.md +65 -0
- package/docs/adrs/adr-0018-apprenticeship-handoff-contract-boundary.md +58 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,35 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
17
17
|
- **Security**
|
|
18
18
|
- (placeholder)
|
|
19
19
|
|
|
20
|
+
## [0.6.3] - 2026-07-11
|
|
21
|
+
|
|
22
|
+
- **Added**
|
|
23
|
+
- (placeholder)
|
|
24
|
+
|
|
25
|
+
- **Changed**
|
|
26
|
+
- (placeholder)
|
|
27
|
+
|
|
28
|
+
- **Fixed**
|
|
29
|
+
- (placeholder)
|
|
30
|
+
|
|
31
|
+
- **Security**
|
|
32
|
+
- (placeholder)
|
|
33
|
+
|
|
34
|
+
## [0.6.2] - 2026-07-11
|
|
35
|
+
|
|
36
|
+
- **Added**
|
|
37
|
+
- Added versioned tutorial-step, progression-state, prerequisite-marker, contextual-trigger, and replay metadata contracts under `isekai.player-system.tutorial.enabled`.
|
|
38
|
+
- Added immutable tutorial-track factories with stage, combat-safety, collection-bound, and reference validation.
|
|
39
|
+
|
|
40
|
+
- **Changed**
|
|
41
|
+
- (placeholder)
|
|
42
|
+
|
|
43
|
+
- **Fixed**
|
|
44
|
+
- (placeholder)
|
|
45
|
+
|
|
46
|
+
- **Security**
|
|
47
|
+
- (placeholder)
|
|
48
|
+
|
|
20
49
|
## [0.6.1] - 2026-07-11
|
|
21
50
|
|
|
22
51
|
- **Added**
|
|
@@ -37,6 +66,7 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
37
66
|
- **Added**
|
|
38
67
|
- Added observed-event log, recency-window, highlight-summary, and gossip-export contracts under `isekai.player-system.logs.enabled`.
|
|
39
68
|
- Added defensive validation and immutable factories so gossip highlights can only reference the observed events in their source window.
|
|
69
|
+
- Added apprenticeship sponsorship, supervision, readiness, and request-only handoff contracts for spellcraft, item-crafting, and dungeon-crafting under `isekai.training.apprenticeship.enabled`.
|
|
40
70
|
|
|
41
71
|
- **Changed**
|
|
42
72
|
- (placeholder)
|
|
@@ -246,3 +276,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
246
276
|
[0.5.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.5.0
|
|
247
277
|
[0.6.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.0
|
|
248
278
|
[0.6.1]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.1
|
|
279
|
+
[0.6.2]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.2
|
|
280
|
+
[0.6.3]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.3
|
package/README.md
CHANGED
|
@@ -150,6 +150,29 @@ The growth-direction vocabulary is validated through the published
|
|
|
150
150
|
`@plasius/training` authority package. MCC feasibility, spell grammar, risk
|
|
151
151
|
validation, and state mutation remain outside `@plasius/ai-game`.
|
|
152
152
|
|
|
153
|
+
## Tutorial contracts
|
|
154
|
+
|
|
155
|
+
Tutorial contracts provide dormant, contextual Player System coaching under
|
|
156
|
+
`isekai.player-system.tutorial.enabled`:
|
|
157
|
+
|
|
158
|
+
- `AiGameTutorialStep` describes a per-action capability, canonical evolution
|
|
159
|
+
stage, trigger kinds, prerequisite markers, replayability, and combat-safe
|
|
160
|
+
presentation.
|
|
161
|
+
- `AiGameTutorialProgressionState` records active, dormant, completed, and
|
|
162
|
+
declined state together with completed steps, refusal count, replay count,
|
|
163
|
+
and trigger/replay timestamps.
|
|
164
|
+
- `AiGameTutorialPrerequisite` defines bounded markers for school access,
|
|
165
|
+
apprenticeship, academy admission, guild standing, divine progression, and
|
|
166
|
+
spellcraft readiness without becoming the authority for those systems.
|
|
167
|
+
- `AiGameTutorialTrigger` supports awakening, first-action, explicit-request,
|
|
168
|
+
and progression-gated resurfacing.
|
|
169
|
+
- `createAiGameTutorialTrack()` validates all step, prerequisite, trigger, and
|
|
170
|
+
progression references and freezes the complete transport payload.
|
|
171
|
+
|
|
172
|
+
Tutorial tracks are foregrounded for first contact, dormant by default after
|
|
173
|
+
onboarding, replayable after unlock, and reduced to safe cues during active
|
|
174
|
+
combat unless the player explicitly enters a safe tutorial scenario.
|
|
175
|
+
|
|
153
176
|
## Quiet Measure contracts
|
|
154
177
|
|
|
155
178
|
The Quiet Measure surface is intentionally structured as a hidden-runtime contract, not a turnkey morality meter.
|
|
@@ -209,6 +232,28 @@ npm run test:coverage
|
|
|
209
232
|
npm run pack:check
|
|
210
233
|
```
|
|
211
234
|
|
|
235
|
+
## Apprenticeship handoff contracts
|
|
236
|
+
|
|
237
|
+
The apprenticeship bridge is enabled by `isekai.training.apprenticeship.enabled`
|
|
238
|
+
and keeps authority separated across the Player System, training, and crafting
|
|
239
|
+
contexts.
|
|
240
|
+
|
|
241
|
+
- `createAiGameApprenticeshipSponsorship` models the institution and sponsor
|
|
242
|
+
relationship using opaque subject identifiers and bounded scope codes.
|
|
243
|
+
- `createAiGameApprenticeshipSupervision` models direct, delegated, or milestone
|
|
244
|
+
supervision and its checkpoints.
|
|
245
|
+
- `createAiGameApprenticeshipReadiness` carries trust, MCC track, and prerequisite
|
|
246
|
+
evidence. A `ready` record cannot contain unmet prerequisites.
|
|
247
|
+
- `createAiGameApprenticeshipHandoff` emits request-only payloads for
|
|
248
|
+
`spellcraft-system`, `item-crafting-system`, or `dungeon-crafting-system`,
|
|
249
|
+
and only accepts a `ready` readiness state.
|
|
250
|
+
|
|
251
|
+
The Player System may guide and route a request, but the target system remains
|
|
252
|
+
authoritative for validation, authorization, execution, and outcome. Handoff
|
|
253
|
+
payloads contain no secrets or hidden System state. See
|
|
254
|
+
[ADR-0018](./docs/adrs/adr-0018-apprenticeship-handoff-contract-boundary.md)
|
|
255
|
+
for the boundary and rollback rules.
|
|
256
|
+
|
|
212
257
|
## Feature flags
|
|
213
258
|
|
|
214
259
|
- `ai.game.event-recorder.contracts.enabled`
|
|
@@ -221,11 +266,13 @@ npm run pack:check
|
|
|
221
266
|
- `isekai.player-system.core.enabled`
|
|
222
267
|
- `isekai.player-system.guidance-nfr.enabled`
|
|
223
268
|
- `isekai.player-system.mcc-guidance.enabled`
|
|
269
|
+
- `isekai.player-system.tutorial.enabled`
|
|
224
270
|
- `isekai.player-system.identity.enabled`
|
|
225
271
|
- `isekai.player-system.logs.enabled`
|
|
226
272
|
- `isekai.training.institutions.enabled`
|
|
227
273
|
- `isekai.training.academies.enabled`
|
|
228
274
|
- `isekai.training.martial.enabled`
|
|
275
|
+
- `isekai.training.apprenticeship.enabled`
|
|
229
276
|
|
|
230
277
|
## Governance
|
|
231
278
|
|