docs: proposal — ActionDef value-dispatch (body lowering + interpreter)#171
Merged
Merged
Conversation
ActionDefs emit effect signatures (writes/reads/calls/raises name sets) but kausal/body_source/on_enter are null across a real 2748-action corpus, so a consumer can check structural effect-parity but cannot execute an ActionDef to reproduce a recoverable method's value. The typed carriers (EnterEffect, KausalSpec) already exist in ogar-vocab; the frontend just never populates them. Proposes: (1) frontend lowering to populate on_enter/kausal from the recipe-codebook's recoverable band; (2) a lance-graph-side value interpreter consumers wire via a thin ActionDefExecutor trait (defaults to Unsupported). Agnostic producer/executor capability gap; no consumer-specific detail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
docs/ACTIONDEF-VALUE-DISPATCH-PROPOSAL.md— a design proposal for closing the gap between the offline transpile (emits effect descriptors) and a runtime that dispatches recoverable methods value-for-value.Why
Measured over a real 2748-action compiled corpus, every
ActionDefhaskausal/body_source/on_enter= null; only the name-level effect sets (writes/reads/calls/raises) are populated.ogar-vocabdocuments this (lib.rs:402-403, 406): the value written "is not captured by today's frontend". So a consumer can verify structural effect-parity but cannot execute anActionDefto reproduce a method's return value — and re-deriving the formula in the consumer would violate the consumer-side "logic resolves at the Core, never re-implemented downstream" boundary.Proposal (two coordinated pieces)
EnterEffectforon_enter,KausalSpecforkausal) from the recipe-codebook's recoverable band, instead of name-level effect sets only. The schema exists; the frontend just never fills it.ActionDef+ inputs -> effect values; consumers wire it via a thinActionDefExecutortrait that defaults toUnsupporteduntil it lands.Agnostic producer/executor capability gap — no consumer-specific detail. Includes a bit-for-bit falsifier against a hand-written oracle.
🤖 Generated with Claude Code