Make scoped action mutations provider-expressible
This commit is contained in:
parent
1f2a1c9a26
commit
99a250879f
5 changed files with 924 additions and 65 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -118,6 +118,8 @@ fn main() -> Result<()> {
|
|||
.any(|binding| receipt.snapshot_binding.contains(binding))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
let assessment_mutation_scopes =
|
||||
store.load_all::<serde_json::Value>("assessment_mutation_scope_cache.v1")?;
|
||||
|
||||
let mut subjects = BTreeMap::new();
|
||||
for actor in campaign.actors.values() {
|
||||
|
|
@ -212,6 +214,7 @@ fn main() -> Result<()> {
|
|||
"recentWorldEvents": campaign.events.iter().rev().take(24).collect::<Vec<_>>(),
|
||||
"pendingWorldProposals": campaign.pending_world_proposals,
|
||||
"recentModelReceipts": recent_model_receipts,
|
||||
"assessmentMutationScopes": assessment_mutation_scopes,
|
||||
"events": events,
|
||||
"news": news,
|
||||
"modelReceipts": model_receipts,
|
||||
|
|
|
|||
|
|
@ -631,8 +631,18 @@ can only subtract from the authority-derived set: the projection cannot invent
|
|||
a lane, fact, subject, route, clock, or institution. Ghostlight removes every
|
||||
unselected lane from the generated `WorldEffectDelta` schema and withholds
|
||||
information facts entirely when investigation, perception, or disclosure is
|
||||
outside the selected scope. The scope is derived inference evidence, not world
|
||||
or assessment authority, and failure leaves state unchanged. Its private
|
||||
outside the selected scope. It separately names the selected lanes whose
|
||||
non-empty mutations are required for strong and ordinary success to realize the
|
||||
intended effect. At the strict model boundary, Ghostlight projects the canonical
|
||||
dynamic mutation maps into bounded entry arrays whose ID and value enums come
|
||||
from that exact authority snapshot. This keeps authorized mutations expressible
|
||||
without exposing open object keys; validated entries lower once into canonical
|
||||
`WorldEffectDelta` maps. Required success arrays receive `minItems: 1` and are
|
||||
checked again after lowering, so success stakes cannot claim a canonical change
|
||||
while omitting its state transition. The model schema binds that requirement to
|
||||
the admissible branch; the inadmissible branch permits only zero-length effect
|
||||
arrays, and local validation repeats that no-mutation rule. The scope is derived inference evidence,
|
||||
not world or assessment authority, and failure leaves state unchanged. Its private
|
||||
content-addressed cache prevents an unchanged attempt from paying for the scope
|
||||
projection again.
|
||||
|
||||
|
|
|
|||
|
|
@ -963,9 +963,19 @@ institution lanes. A compact private scope projection then receives only the
|
|||
exact attempt and those remaining lane names. Its locally validated output can
|
||||
only subtract: every causally unselected lane disappears from the assessor's
|
||||
schema, and unselected knowledge prevents scene facts from entering the prompt
|
||||
at all. Scope rows and receipts are derived inference evidence, never assessment
|
||||
or world authority, and their content-addressed cache avoids repeated scope
|
||||
inference for an unchanged attempt. Missing maps lower to no mutation.
|
||||
at all. The scope also distinguishes lanes required to realize strong and
|
||||
ordinary success from lanes merely available for direct consequences. Required
|
||||
success lanes receive a non-empty structural constraint and a post-lowering
|
||||
local check, so stakes cannot claim a canonical success that the typed effect
|
||||
omits. Canonical dynamic effect maps cross the strict model boundary as bounded
|
||||
entry arrays containing only authority-enumerated IDs and values; validated
|
||||
entries lower once into `WorldEffectDelta`, while empty arrays mean no mutation.
|
||||
The admission-bound model schema requires those success entries only for an
|
||||
admissible assessment and structurally forces every inadmissible effect array
|
||||
empty; local validation repeats both rules before verification or caching.
|
||||
Scope rows and receipts are derived inference evidence, never assessment or
|
||||
world authority, and their content-addressed cache avoids repeated scope
|
||||
inference for an unchanged attempt.
|
||||
After structural binding, a compact independent verifier compares the complete
|
||||
four-band typed effect bundle with the player's exact means and intended
|
||||
effect. Structurally legal state is not automatically causally relevant. The
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ live_architecture:
|
|||
- WorldEffectDelta, ActorStateDelta, and StrategicOutcomeEffect are model-boundary migration inputs, not independent writers. Bounded region expansion lowers through typed place/proposition admission and topology mutations. Initial publication is a fresh-store creation transaction; named-person materialisation/folding is a resolution transaction that advances revision and resolution epoch, clears the cover, preserves the individual delta, and cannot rewrite Gestalt-wide knowledge, custody, pressure, or fictional time.
|
||||
- Ghostlight owns generalized Projector to Persona to Interpreter machinery; consuming Personas retain their own canonical minds and commit authority.
|
||||
- Player speech address is a bounded proposal over exact co-present simulation-eligible actor IDs. WorldKernel commits the selected Persona response set with the speech turn; every present actor still appraises, while direct addressees receive explicit response duty and observers retain optional agency. A direct addressee must speak or select typed deliberate silence, which lowers deterministically rather than opening a free-text reaction-effect lane.
|
||||
- Foreground action assessment derives a closed structural schema from exact current authority. A compact private scope projection receives only the exact attempt and the structurally available lane names; local validation permits it only to subtract. Causally unselected lanes disappear from the assessor schema, and information facts stay out of the prompt when knowledge mutation is unselected. A separate compact semantic verifier then compares the complete four-band effect bundle with the player's exact means and intended effect. Neither stage can reassess difficulty, choose committed effects, expand authority, or commit. One mismatch produces a private semantic-invalid receipt and bounded same-snapshot assessor correction; a second mismatch aborts. Only structurally and semantically verified proposals enter the cache.
|
||||
- Foreground action assessment derives a closed structural schema from exact current authority. A compact private scope projection receives only the exact attempt and the structurally available lane names; local validation permits it only to subtract. Causally unselected lanes disappear from the assessor schema and information facts stay out of the prompt when knowledge mutation is unselected. Canonical dynamic effect maps cross the strict model boundary as bounded authority-enumerated entry arrays and lower once into WorldEffectDelta after validation. The admission-bound schema gives required strong/ordinary-success lanes minItems 1 only on the admissible branch and forces every inadmissible effect array empty; local validation repeats both rules after lowering. A separate compact semantic verifier then compares the complete four-band effect bundle with the player's exact means and intended effect. Neither stage can reassess difficulty, choose committed effects, expand authority, or commit. One mismatch produces a private semantic-invalid receipt and bounded same-snapshot assessor correction; a second mismatch aborts. Only structurally and semantically verified proposals enter the cache.
|
||||
- Mutation-scope and action-assessment proposals are content-addressed by the exact scope, assessor, and verifier models, stable instructions, scoped action-specific schema, and permitted typed packet. Private CultCache cache rows are derived inference evidence only. Revision and expiry bind the consumable assessment and roll but do not invalidate an otherwise identical semantic proposal; cache hits revalidate it, emit an explicit zero-token receipt linked to the source scope, assessment, and verifier receipts, and issue a fresh revision-bound digest. Changed actor state, occupancy, facts, institutions, permissions, contract, boundaries, schema, or model contract changes the key. Eve projections itemize every signed modifier and exact reference.
|
||||
- The hosted player story is the chronological lowering of exact committed NarrativeTurn rows. No narrator or verifier model rewrites those turns; historical narration projections are inert and never enter Eve or CultMesh player surfaces.
|
||||
- Epiphany consumes the extracted Ghostlight projection crate at an exact Git revision while retaining her canonical Mind, effect admission, and consequence authority.
|
||||
|
|
|
|||
Loading…
Reference in a new issue