@plasius/ai-game 0.6.0 → 0.6.2
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 +48 -1
- package/dist/index.cjs +680 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +248 -1
- package/dist/index.d.ts +248 -1
- package/dist/index.js +628 -5
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0015-mcc-guidance-contract-boundary.md +62 -0
- package/docs/adrs/adr-0017-tutorial-contract-boundary.md +65 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# ADR 0015: MCC guidance contract boundary
|
|
2
|
+
|
|
3
|
+
- Status: Accepted
|
|
4
|
+
- Date: 2026-07-11
|
|
5
|
+
- Decision Makers: Plasius engineering
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The Player System needs a portable contract for declared MCC growth direction,
|
|
10
|
+
bounded readiness and warnings, and spellcraft guidance. Consumers must be able
|
|
11
|
+
to render and route guidance without copying MCC feasibility rules or exposing
|
|
12
|
+
raw internal telemetry. The feature is rolled out by
|
|
13
|
+
`isekai.player-system.mcc-guidance.enabled`.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
`@plasius/ai-game` owns immutable, versioned bridge payloads for:
|
|
18
|
+
|
|
19
|
+
- focus targets that reuse the authoritative training package's
|
|
20
|
+
`internalized`, `externalized`, and `hybrid` vocabulary;
|
|
21
|
+
- bounded `stable`, `pressured`, and `restricted` readiness bands with explicit
|
|
22
|
+
thermal, fatigue, chaos-pressure, target-burden, stage-gate, and
|
|
23
|
+
death-impairment warnings; and
|
|
24
|
+
- spellcraft recommendations and advisory payloads that retain readiness,
|
|
25
|
+
prerequisites, target burden, complexity, chaos pressure, and fatigue state.
|
|
26
|
+
|
|
27
|
+
Spellcraft payloads are explicitly `preview-only` and identify
|
|
28
|
+
`spellcraft-system` as the authoritative owner. The package does not validate
|
|
29
|
+
spell feasibility, mutate MCC state, or author spells.
|
|
30
|
+
|
|
31
|
+
Factories defensively validate supported vocabularies, contract versions,
|
|
32
|
+
bounded influence weights, warning severity consistency, focus references, and
|
|
33
|
+
snapshot cardinality, then freeze returned payloads and nested arrays.
|
|
34
|
+
|
|
35
|
+
## Alternatives considered
|
|
36
|
+
|
|
37
|
+
- Keep MCC guidance site-local: rejected because Player System consumers would
|
|
38
|
+
duplicate growth, readiness, and advisory semantics.
|
|
39
|
+
- Reimplement training-track values in this package: rejected because the
|
|
40
|
+
published `@plasius/training` package is the authority for those values.
|
|
41
|
+
- Return raw MCC telemetry or mark spellcraft as approved: rejected because it
|
|
42
|
+
would expose hidden implementation detail and collapse advisory guidance into
|
|
43
|
+
authoritative spell validation.
|
|
44
|
+
|
|
45
|
+
## Consequences
|
|
46
|
+
|
|
47
|
+
Consumers receive a stable, dependency-light vocabulary for guidance and can
|
|
48
|
+
render bounded warnings consistently. MCC and Spell Crafting System owners keep
|
|
49
|
+
authority over feasibility, state mutation, and spell authoring. Incompatible
|
|
50
|
+
payload changes require a new contract version and ADR.
|
|
51
|
+
|
|
52
|
+
## Validation
|
|
53
|
+
|
|
54
|
+
Unit tests cover vocabulary guards, bounded focus influence, warning severity
|
|
55
|
+
derivation, advisory-only ownership, reference validation, and immutable
|
|
56
|
+
snapshots. Package lint, typecheck, coverage, build, pack, and dependency audit
|
|
57
|
+
remain release gates.
|
|
58
|
+
|
|
59
|
+
## Related decisions
|
|
60
|
+
|
|
61
|
+
- ADR 0064: MCC Guidance and Spellcraft Steering Flow Through the Player System
|
|
62
|
+
- TDR-0032: MCC Guidance and Core Growth Steering
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# ADR 0017: Tutorial contract boundary
|
|
2
|
+
|
|
3
|
+
- Status: Accepted
|
|
4
|
+
- Date: 2026-07-11
|
|
5
|
+
- Decision Makers: Plasius engineering
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The Player System needs portable tutorial contracts for first-contact
|
|
10
|
+
onboarding, contextual coaching, advanced progression gates, and replay. The
|
|
11
|
+
Tutorial System must teach per-action capabilities without becoming a permanent
|
|
12
|
+
foreground layer or overwhelming active combat. The rollout is controlled by
|
|
13
|
+
`isekai.player-system.tutorial.enabled`.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
`@plasius/ai-game` owns immutable, versioned contracts for tutorial steps,
|
|
18
|
+
progression state, prerequisite markers, contextual triggers, and tutorial
|
|
19
|
+
tracks. The public model:
|
|
20
|
+
|
|
21
|
+
- uses the five-stage evolution ladder from Stage 1 onboarding through Stage 5
|
|
22
|
+
divine-dominion surfaces;
|
|
23
|
+
- supports awakening, first-action, explicit-request, and progression-gated
|
|
24
|
+
triggers;
|
|
25
|
+
- keeps combat safety explicit per step and trigger so active combat can use
|
|
26
|
+
reduced coaching only;
|
|
27
|
+
- represents `not-started`, `active`, `dormant`, `completed`, and `declined`
|
|
28
|
+
progression states;
|
|
29
|
+
- records replayability, replay count, trigger timestamps, and completed step
|
|
30
|
+
IDs; and
|
|
31
|
+
- models school, apprenticeship, academy, guild, divine, and spellcraft
|
|
32
|
+
prerequisite markers without owning their authority.
|
|
33
|
+
|
|
34
|
+
Factories validate supported values, immutable nested arrays, positive sequence
|
|
35
|
+
numbers, non-negative counters, ISO timestamps, collection bounds, unique IDs,
|
|
36
|
+
and all step/prerequisite/trigger/progression references.
|
|
37
|
+
|
|
38
|
+
## Alternatives considered
|
|
39
|
+
|
|
40
|
+
- A monolithic linear tutorial payload: rejected because the TDR requires
|
|
41
|
+
per-action and per-capability coaching with contextual resurfacing.
|
|
42
|
+
- Permanent foreground guidance: rejected because it would dominate the play
|
|
43
|
+
experience and conflict with combat readability.
|
|
44
|
+
- Site-local tutorial state: rejected because Player System consumers need one
|
|
45
|
+
portable progression and replay vocabulary.
|
|
46
|
+
|
|
47
|
+
## Consequences
|
|
48
|
+
|
|
49
|
+
Hosts can implement dormant contextual coaching and replay without inventing
|
|
50
|
+
their own progression or gating semantics. Institutional and progression
|
|
51
|
+
systems remain authoritative for prerequisite satisfaction; this package only
|
|
52
|
+
transports bounded markers and consumer-facing state. Incompatible payload
|
|
53
|
+
changes require a new contract version and ADR.
|
|
54
|
+
|
|
55
|
+
## Validation
|
|
56
|
+
|
|
57
|
+
Unit tests cover stage and trigger guards, prerequisite markers, combat-safe
|
|
58
|
+
steps, dormant/replay state, malformed metadata, reference integrity,
|
|
59
|
+
immutability, and collection bounds. Package lint, typecheck, coverage, build,
|
|
60
|
+
pack, audit, CI, and CD remain release gates.
|
|
61
|
+
|
|
62
|
+
## Related decisions
|
|
63
|
+
|
|
64
|
+
- ADR 0065: Tutorial Mode Operates as a Dormant Contextual Coach
|
|
65
|
+
- TDR-0033: Tutorial System Contextual Coaching and Combat Limits
|
package/docs/adrs/index.md
CHANGED
|
@@ -14,4 +14,6 @@
|
|
|
14
14
|
- [ADR-0012: Identity projection and target-classification contract boundary](./adr-0012-identity-projection-contract-boundary.md)
|
|
15
15
|
- [ADR-0013: Adaptive mission contract boundary](./adr-0013-adaptive-mission-contract-boundary.md)
|
|
16
16
|
- [ADR-0014: Player System guidance cue contract boundary](./adr-0014-player-system-guidance-cue-contract-boundary.md)
|
|
17
|
+
- [ADR-0015: MCC guidance contract boundary](./adr-0015-mcc-guidance-contract-boundary.md)
|
|
17
18
|
- [ADR-0016: Observed event log and gossip export contract boundary](./adr-0016-observed-event-log-and-gossip-export-contract-boundary.md)
|
|
19
|
+
- [ADR-0017: Tutorial contract boundary](./adr-0017-tutorial-contract-boundary.md)
|