@plasius/ai-game 0.6.3 → 0.6.5
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 +33 -0
- package/README.md +22 -0
- package/dist/index.cjs +339 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +160 -1
- package/dist/index.d.ts +160 -1
- package/dist/index.js +322 -5
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0019-guild-quest-synchronization-and-authority-boundary.md +49 -0
- package/docs/adrs/index.md +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# ADR 0019: Guild-quest synchronization and authority boundary
|
|
2
|
+
|
|
3
|
+
- Status: Accepted
|
|
4
|
+
- Date: 2026-07-11
|
|
5
|
+
- Decision Makers: Plasius engineering
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The Player System needs to show guild-issued quests, progress, failure state,
|
|
10
|
+
and reward expectations without becoming the source of guild contract truth.
|
|
11
|
+
The same quest can be displayed alongside internal System missions, so
|
|
12
|
+
advisory recommendations must not be confused with guild-owned status,
|
|
13
|
+
consequences, rank gates, or rewards.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
`@plasius/ai-game` owns the portable guild-quest contract boundary under
|
|
18
|
+
`isekai.player-system.guild-quests.enabled`. Each quest separates
|
|
19
|
+
`guildTruth` from `systemAnnotations`. Guild truth contains the guild contract
|
|
20
|
+
identity, revisioned status, objective progress, failure details, and a
|
|
21
|
+
preview-only reward model. System annotations contain only advisory
|
|
22
|
+
recommendations, synergy codes, linked mission identifiers, and reason codes.
|
|
23
|
+
|
|
24
|
+
Synchronizations carry a guild authority revision, quest upserts, and explicit
|
|
25
|
+
removed-quest tombstones. A reward preview is never a grant; the guild remains
|
|
26
|
+
the authority for eligibility, reward resolution, rank gates, and consequences.
|
|
27
|
+
|
|
28
|
+
The package validates and freezes public payloads. Runtime repositories own
|
|
29
|
+
feature-flag evaluation, authorization, persistence, conflict resolution, and
|
|
30
|
+
actual guild operations.
|
|
31
|
+
|
|
32
|
+
## Alternatives considered
|
|
33
|
+
|
|
34
|
+
- Put guild-quest models in the site: rejected because package consumers would
|
|
35
|
+
duplicate authority and synchronization semantics.
|
|
36
|
+
- Merge System recommendations into guild status: rejected because advisory
|
|
37
|
+
metadata could be mistaken for authoritative state.
|
|
38
|
+
- Treat an empty quest list as a full synchronization: rejected because a
|
|
39
|
+
partial or failed sync could delete valid quests; tombstones make removals
|
|
40
|
+
explicit.
|
|
41
|
+
|
|
42
|
+
## Consequences
|
|
43
|
+
|
|
44
|
+
- Guilds remain the source of truth while Player System consumers receive a
|
|
45
|
+
stable, portable read contract.
|
|
46
|
+
- Consumers can recompute or discard System annotations without mutating guild
|
|
47
|
+
state.
|
|
48
|
+
- Runtime adapters must preserve authority revisions and must not turn reward
|
|
49
|
+
previews into client-side grants.
|
package/docs/adrs/index.md
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
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
17
|
- [ADR-0015: MCC guidance contract boundary](./adr-0015-mcc-guidance-contract-boundary.md)
|
|
18
|
+
- [ADR-0019: Guild-quest synchronization and authority boundary](./adr-0019-guild-quest-synchronization-and-authority-boundary.md)
|
|
18
19
|
- [ADR-0016: Observed event log and gossip export contract boundary](./adr-0016-observed-event-log-and-gossip-export-contract-boundary.md)
|
|
19
20
|
- [ADR-0017: Tutorial contract boundary](./adr-0017-tutorial-contract-boundary.md)
|
|
20
21
|
- [ADR-0018: Apprenticeship handoff contract boundary](./adr-0018-apprenticeship-handoff-contract-boundary.md)
|