@plasius/ai-game 0.1.6 → 0.1.8
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 +22 -9
- package/README.md +17 -23
- package/dist/index.cjs +357 -197
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +122 -81
- package/dist/index.d.ts +122 -81
- package/dist/index.js +339 -185
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
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
|
+
|
|
8
|
+
- **Added**
|
|
9
|
+
- (placeholder)
|
|
10
|
+
|
|
11
|
+
- **Changed**
|
|
12
|
+
- (placeholder)
|
|
13
|
+
|
|
14
|
+
- **Fixed**
|
|
15
|
+
- (placeholder)
|
|
16
|
+
|
|
17
|
+
- **Security**
|
|
18
|
+
- (placeholder)
|
|
19
|
+
|
|
20
|
+
## [0.1.8] - 2026-06-22
|
|
7
21
|
- **Added**
|
|
8
22
|
- (placeholder)
|
|
9
23
|
|
|
@@ -15,24 +29,22 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
15
29
|
|
|
16
30
|
- **Security**
|
|
17
31
|
- (placeholder)
|
|
18
|
-
|
|
32
|
+
|
|
33
|
+
## [0.1.7] - 2026-06-14
|
|
19
34
|
|
|
20
35
|
- **Added**
|
|
21
36
|
- Implemented canonical world event contracts with candidate and canonical envelopes, taxonomy, payload typing, and visibility classes.
|
|
22
37
|
- Added authoritative ingestion interfaces and replay-safe projection/checkpoint contracts.
|
|
23
38
|
- Added incident lifecycle, resolution link, and impact vector models.
|
|
24
39
|
- Added structured gossip topic contracts with lifecycle, confidence, and perspective projection projections.
|
|
25
|
-
-
|
|
26
|
-
-
|
|
40
|
+
- Added Quiet Measure public contracts for hidden-axis summaries, derived reads, mission probe metadata, and Judgment eligibility or verdict responses under `isekai.player-system.quiet-measure.enabled`.
|
|
41
|
+
- Documented the Quiet Measure hidden-runtime boundary so hosts can expose title-plus-verdict outputs without publishing raw per-player score storage.
|
|
27
42
|
|
|
28
43
|
- **Changed**
|
|
29
|
-
- Extended public package surface to include
|
|
30
|
-
- Moved npm publication to a protected-main-safe release-prep PR workflow with reconciled package, tag, and npm version state.
|
|
44
|
+
- Extended the public package surface to include the Quiet Measure contract family alongside world-event and gossip exports while keeping host-private runtime weights out of the package API.
|
|
31
45
|
|
|
32
46
|
- **Fixed**
|
|
33
|
-
-
|
|
34
|
-
- Detected unpublished prepared releases from `main` metadata instead of merge-commit titles so merged release PRs actually publish.
|
|
35
|
-
- Promoted `Unreleased` changelog entries into versioned release sections through a tested helper instead of fragile inline shell parsing.
|
|
47
|
+
- Hardened Quiet Measure runtime validation and defensive copying for public Judgment request, title, dominant-read, and reason-code payloads.
|
|
36
48
|
|
|
37
49
|
- **Security**
|
|
38
50
|
- (placeholder)
|
|
@@ -59,4 +71,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
59
71
|
|
|
60
72
|
[0.1.1]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.1
|
|
61
73
|
[0.1.2]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.2
|
|
62
|
-
[0.1.
|
|
74
|
+
[0.1.7]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.7
|
|
75
|
+
[0.1.8]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.8
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @plasius/ai-game
|
|
2
2
|
|
|
3
|
-
Game-domain AI contracts for player action validation, NPC actions, gossip,
|
|
3
|
+
Game-domain AI contracts for player action validation, NPC actions, gossip, Quiet Measure mission probes, and Judgment disclosure surfaces.
|
|
4
4
|
|
|
5
5
|
## Scope
|
|
6
6
|
|
|
7
|
-
This package is part of the layered `@plasius/ai-*` package family. It exports canonical public contracts for world events, world-event ingestion, incident impact state, gossip topic projection, and
|
|
7
|
+
This package is part of the layered `@plasius/ai-*` package family. It exports canonical public contracts for world events, world-event ingestion, incident impact state, gossip topic projection, and Quiet Measure hidden-runtime integration surfaces.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -18,20 +18,30 @@ npm install @plasius/ai-game
|
|
|
18
18
|
import {
|
|
19
19
|
AI_GAME_PACKAGE,
|
|
20
20
|
AI_GAME_FEATURE_FLAG_ID,
|
|
21
|
-
AI_GAME_POINTS_STORE_FEATURE_FLAG_ID,
|
|
22
21
|
aiGameFeatureFlags,
|
|
23
|
-
getAiGameProtoSocialDevolutionPolicy,
|
|
24
|
-
getDefaultAiGamePointsSpendPolicies,
|
|
25
22
|
packageDescriptor,
|
|
23
|
+
AI_GAME_QUIET_MEASURE_FEATURE_FLAG_ID,
|
|
26
24
|
type GameWorldEvent,
|
|
27
25
|
type WorldEventIngestionPort,
|
|
28
26
|
type WorldIncidentThread,
|
|
29
27
|
type GossipTopic,
|
|
30
28
|
type GossipPerspectiveProjection,
|
|
31
|
-
type
|
|
29
|
+
type QuietMeasureAxisSummary,
|
|
30
|
+
type QuietMeasureMissionProbe,
|
|
31
|
+
type QuietMeasureJudgmentResponse
|
|
32
32
|
} from "@plasius/ai-game";
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
## Quiet Measure contracts
|
|
36
|
+
|
|
37
|
+
The Quiet Measure surface is intentionally structured as a hidden-runtime contract, not a turnkey morality meter.
|
|
38
|
+
|
|
39
|
+
- Axis and derived-read contracts expose bounded summaries, confidence bands, evidence windows, and perspective scope without publishing host-specific raw score storage.
|
|
40
|
+
- Mission probe contracts model `Clarify`, `Tempt`, and `Reinforce` modes plus `Restorative`, `Dominant`, `Detached`, and optional `Performative` resolution shapes.
|
|
41
|
+
- Judgment contracts model request, eligibility, insufficient-evidence, and verdict responses with `title-and-verdict-only` disclosure as the default public output.
|
|
42
|
+
- Runtime helpers validate and defensively copy public Quiet Measure request, title, dominant-read, and reason-code payloads so malformed host input fails closed without leaking hidden-score internals.
|
|
43
|
+
- Evaluation fixtures for hero, villain, counterfeit, tyrant, and redemption regression cases belong in `@plasius/ai-evals`, not this package.
|
|
44
|
+
|
|
35
45
|
## Development
|
|
36
46
|
|
|
37
47
|
```bash
|
|
@@ -42,15 +52,6 @@ npm run test:coverage
|
|
|
42
52
|
npm run pack:check
|
|
43
53
|
```
|
|
44
54
|
|
|
45
|
-
## Release Workflow
|
|
46
|
-
|
|
47
|
-
Protected `main` releases use a two-step flow:
|
|
48
|
-
|
|
49
|
-
1. Run `.github/workflows/cd.yml` with `bump=patch|minor|major` to push a `release/vX.Y.Z` prep branch and, when repository settings allow it, open the matching PR from `main`. The workflow creates that branch before committing the versioned `package.json` and `CHANGELOG.md` updates, and a tested helper promotes the current `Unreleased` section into the matching version header so the release metadata is preserved for review and publish.
|
|
50
|
-
2. Merge that PR to `main` so the next `main` push can detect the unpublished versioned metadata, tag the release, publish to npm, and publish the GitHub release.
|
|
51
|
-
|
|
52
|
-
If a release version is already prepared on `main` and only publication remains, rerun `.github/workflows/cd.yml` with `bump=none` to publish the current version from `main` without creating a new release branch.
|
|
53
|
-
|
|
54
55
|
## Feature flags
|
|
55
56
|
|
|
56
57
|
- `ai.game.event-recorder.contracts.enabled`
|
|
@@ -59,14 +60,7 @@ If a release version is already prepared on `main` and only publication remains,
|
|
|
59
60
|
- `ai.game.npc-gossip.topics.enabled`
|
|
60
61
|
- `ai.game.npc-gossip.perspective.enabled`
|
|
61
62
|
- `ai.game.npc-gossip.lifecycle.enabled`
|
|
62
|
-
- `isekai.player-system.
|
|
63
|
-
|
|
64
|
-
## Points Store contracts
|
|
65
|
-
|
|
66
|
-
- `AI_GAME_POINTS_LEDGER_IDS` exports the canonical `PP`, `ESP`, `TIS`, and `DIS` ledger IDs as `pp`, `esp`, `tis`, and `dis`.
|
|
67
|
-
- `resolveAiGamePointsAuthorityBoundary()` maps each ledger to its public authority band and owning external system.
|
|
68
|
-
- `getDefaultAiGamePointsSpendPolicies()` describes the documented spend-policy surface for each ledger.
|
|
69
|
-
- `getAiGameProtoSocialDevolutionPolicy()` and `evaluateAiGameProtoSocialDevolutionEligibility()` define the one-time proto-social PP devolution window and its closure after social-form lock.
|
|
63
|
+
- `isekai.player-system.quiet-measure.enabled`
|
|
70
64
|
|
|
71
65
|
## Governance
|
|
72
66
|
|