@plasius/ai-game 0.5.0 → 0.6.1
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 +46 -1
- package/dist/index.cjs +712 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +242 -1
- package/dist/index.d.ts +242 -1
- package/dist/index.js +657 -5
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0015-mcc-guidance-contract-boundary.md +62 -0
- package/docs/adrs/adr-0016-observed-event-log-and-gossip-export-contract-boundary.md +52 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,36 @@ 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.1] - 2026-07-11
|
|
21
|
+
|
|
22
|
+
- **Added**
|
|
23
|
+
- Added bounded MCC focus-target, readiness-warning, spellcraft recommendation, and preview-only advisory contracts under `isekai.player-system.mcc-guidance.enabled`.
|
|
24
|
+
- Added immutable guidance snapshot factories with reference, severity, and collection-bound validation.
|
|
25
|
+
|
|
26
|
+
- **Changed**
|
|
27
|
+
- (placeholder)
|
|
28
|
+
|
|
29
|
+
- **Fixed**
|
|
30
|
+
- (placeholder)
|
|
31
|
+
|
|
32
|
+
- **Security**
|
|
33
|
+
- (placeholder)
|
|
34
|
+
|
|
35
|
+
## [0.6.0] - 2026-07-11
|
|
36
|
+
|
|
37
|
+
- **Added**
|
|
38
|
+
- Added observed-event log, recency-window, highlight-summary, and gossip-export contracts under `isekai.player-system.logs.enabled`.
|
|
39
|
+
- Added defensive validation and immutable factories so gossip highlights can only reference the observed events in their source window.
|
|
40
|
+
|
|
41
|
+
- **Changed**
|
|
42
|
+
- (placeholder)
|
|
43
|
+
|
|
44
|
+
- **Fixed**
|
|
45
|
+
- (placeholder)
|
|
46
|
+
|
|
47
|
+
- **Security**
|
|
48
|
+
- (placeholder)
|
|
49
|
+
|
|
20
50
|
## [0.5.0] - 2026-07-11
|
|
21
51
|
|
|
22
52
|
- **Added**
|
|
@@ -214,3 +244,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
214
244
|
[0.3.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.3.0
|
|
215
245
|
[0.4.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.4.0
|
|
216
246
|
[0.5.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.5.0
|
|
247
|
+
[0.6.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.0
|
|
248
|
+
[0.6.1]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.1
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plasius/ai-game
|
|
2
2
|
|
|
3
|
-
Game-domain AI contracts for player action validation, adaptive System missions, NPC actions, gossip, Quiet Measure mission probes, Judgment disclosure surfaces, and Player System-readable training recommendations.
|
|
3
|
+
Game-domain AI contracts for player action validation, adaptive System missions, NPC actions, gossip, observed event logs, Quiet Measure mission probes, Judgment disclosure surfaces, MCC guidance, and Player System-readable training recommendations.
|
|
4
4
|
|
|
5
5
|
## Scope
|
|
6
6
|
|
|
@@ -128,6 +128,28 @@ Use `createAiGameMissionDefinition()`,
|
|
|
128
128
|
surface intentionally avoids raw telemetry, progression writes, and
|
|
129
129
|
authority-owned tuning data.
|
|
130
130
|
|
|
131
|
+
## MCC guidance contracts
|
|
132
|
+
|
|
133
|
+
MCC guidance contracts provide a bounded Player System bridge under
|
|
134
|
+
`isekai.player-system.mcc-guidance.enabled`:
|
|
135
|
+
|
|
136
|
+
- `AiGameMccFocusTarget` carries a declared `internalized`, `externalized`, or
|
|
137
|
+
`hybrid` growth direction with bounded mission influence.
|
|
138
|
+
- `AiGameMccReadinessState` exposes `stable`, `pressured`, or `restricted`
|
|
139
|
+
readiness plus explicit thermal, fatigue, chaos-pressure, target-burden,
|
|
140
|
+
stage-gate, and death-impairment warnings.
|
|
141
|
+
- `AiGameSpellcraftRecommendation` describes training, material,
|
|
142
|
+
social-prerequisite, or refinement guidance without becoming an authority
|
|
143
|
+
write.
|
|
144
|
+
- `AiGameSpellcraftAdvisory` is explicitly `preview-only` and points to the
|
|
145
|
+
`spellcraft-system` as the authoritative owner for feasibility and authoring.
|
|
146
|
+
- `createAiGameMccGuidanceSnapshot()` validates references, bounds collection
|
|
147
|
+
sizes, and freezes the complete payload for transport.
|
|
148
|
+
|
|
149
|
+
The growth-direction vocabulary is validated through the published
|
|
150
|
+
`@plasius/training` authority package. MCC feasibility, spell grammar, risk
|
|
151
|
+
validation, and state mutation remain outside `@plasius/ai-game`.
|
|
152
|
+
|
|
131
153
|
## Quiet Measure contracts
|
|
132
154
|
|
|
133
155
|
The Quiet Measure surface is intentionally structured as a hidden-runtime contract, not a turnkey morality meter.
|
|
@@ -156,6 +178,27 @@ and `selectAiGameVisibleIdentityTargets()` before rendering line-of-sight
|
|
|
156
178
|
surfaces. The contract does not carry hidden truth or authority-owned mutation
|
|
157
179
|
data.
|
|
158
180
|
|
|
181
|
+
## Observed event log and gossip export contracts
|
|
182
|
+
|
|
183
|
+
Observed event contracts provide a shared, privacy-safe basis for Player System
|
|
184
|
+
logs and gossip transport under `isekai.player-system.logs.enabled`:
|
|
185
|
+
|
|
186
|
+
- `AiGameObservedEvent` carries bounded domain references, summaries, visibility,
|
|
187
|
+
significance, and tags without raw player telemetry or account identifiers.
|
|
188
|
+
- `AiGameObservedEventRecencyWindow` validates that events fall inside a single
|
|
189
|
+
time-bounded window.
|
|
190
|
+
- `AiGameObservedEventHighlightSummary` references event IDs from its source
|
|
191
|
+
window rather than copying event truth.
|
|
192
|
+
- `AiGameGossipExport` packages one recency window and validated highlights for
|
|
193
|
+
a declared player, NPC, or public audience.
|
|
194
|
+
|
|
195
|
+
Use `createAiGameObservedEvent()`,
|
|
196
|
+
`createAiGameObservedEventRecencyWindow()`,
|
|
197
|
+
`createAiGameObservedEventHighlightSummary()`, and
|
|
198
|
+
`createAiGameGossipExport()` at package boundaries. Audience authorization,
|
|
199
|
+
feature-flag evaluation, persistence, and gossip generation remain the
|
|
200
|
+
responsibility of consuming services.
|
|
201
|
+
|
|
159
202
|
## Development
|
|
160
203
|
|
|
161
204
|
```bash
|
|
@@ -177,7 +220,9 @@ npm run pack:check
|
|
|
177
220
|
- `isekai.player-system.quiet-measure.enabled`
|
|
178
221
|
- `isekai.player-system.core.enabled`
|
|
179
222
|
- `isekai.player-system.guidance-nfr.enabled`
|
|
223
|
+
- `isekai.player-system.mcc-guidance.enabled`
|
|
180
224
|
- `isekai.player-system.identity.enabled`
|
|
225
|
+
- `isekai.player-system.logs.enabled`
|
|
181
226
|
- `isekai.training.institutions.enabled`
|
|
182
227
|
- `isekai.training.academies.enabled`
|
|
183
228
|
- `isekai.training.martial.enabled`
|