@plasius/ai-game 0.1.6 → 0.1.7

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 CHANGED
@@ -15,24 +15,21 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
15
15
 
16
16
  - **Security**
17
17
  - (placeholder)
18
- ## [0.1.6] - 2026-06-13
18
+ ## [0.1.7] - 2026-06-14
19
19
 
20
20
  - **Added**
21
21
  - Implemented canonical world event contracts with candidate and canonical envelopes, taxonomy, payload typing, and visibility classes.
22
22
  - Added authoritative ingestion interfaces and replay-safe projection/checkpoint contracts.
23
23
  - Added incident lifecycle, resolution link, and impact vector models.
24
24
  - Added structured gossip topic contracts with lifecycle, confidence, and perspective projection projections.
25
- - Documented the public `@plasius/ai-game` contract boundary for Quiet Measure hidden-character inference, mission probes, and Judgment verdict models while keeping raw runtime scores host-private by default.
26
- - Added Player System Points Store ledger, spend-policy, authority-boundary, and proto-social devolution contracts for `PP`, `ESP`, `TIS`, and `DIS`.
25
+ - 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`.
26
+ - Documented the Quiet Measure hidden-runtime boundary so hosts can expose title-plus-verdict outputs without publishing raw per-player score storage.
27
27
 
28
28
  - **Changed**
29
- - Extended public package surface to include all world-event, gossip, and points-store contract families needed by `ai-game` and Player System consumers.
30
- - Moved npm publication to a protected-main-safe release-prep PR workflow with reconciled package, tag, and npm version state.
29
+ - 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
30
 
32
31
  - **Fixed**
33
- - Preserved release-branch version and changelog edits so protected-main publish runs can complete from prepared metadata on `main`.
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.
32
+ - Hardened Quiet Measure runtime validation and defensive copying for public Judgment request, title, dominant-read, and reason-code payloads.
36
33
 
37
34
  - **Security**
38
35
  - (placeholder)
@@ -59,4 +56,4 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
59
56
 
60
57
  [0.1.1]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.1
61
58
  [0.1.2]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.2
62
- [0.1.6]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.6
59
+ [0.1.7]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.7
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, feedback, and points-store authority seams.
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 Player System points-store ledgers and spend policies.
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 AiGamePointsLedgerSnapshot
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.points-store.enabled`
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