Skip to content

Native health-action observations for PvZ dialogue ​

The optional source27 healthAction distinguishes an announced health change from the already-applied helpful effect. The native game derives this from its saved action, so the host does not infer completion from Dave's line or copy the engine's difficulty policy. Each current plant's observed health remains the current fact; the action does not prove a newly planted plant received it.

The schema rejects unrelated scenes, interrupted/ended states, invalid deltas and impossible applied negative states (native damage ends the action in the same tick). Older clients may omit the field. source27-health-v1 advertises the accepted format; the matching game strips it for older hosts. No effect, currency, pause, account settings, billing or save-format changes are made.

Completed source27 fixed/handle scenes now describe earlier events. Previously their generic description called them the current scene, even though they were in the history array. Authored quotes and receipt limits remain intact.

Verification and limits ​

  • Red/green schema/context regressions, including the actual chosen plant, older clients and unrelated scenes. Separate red/green chronology and route capability checks. All 553 affected NPC/route checks pass; the final added capability assertion also passes its four route tests.
  • Hosted build/typecheck and OSS verification pass. The final capability-only build/typecheck refresh is recorded separately in the release logs.
  • The game candidate passes 69 native checks, native/WASM builds, 771 web checks and four compiled EN desktop/ZH touch-emulated snapshot projections.
  • Eight first-attempt Qwen/Gemini replies use captured native states. All four plant answers follow pending/applied status. One Qwen Dave answer instead resumes old bite talk. Four further Dave-only samples after the chronology correction retain that problem and include an invented Gemini percentage. These failures remain unresolved. No mechanical check is a general writing pass, and there were no rerolls or live account/save/notebook/billing writes.

Local logs: health-observation-*.log. Provider evidence: output/health-observation-writing/ and output/health-observation-chronology-writing/. The manual runner records capture hashes, exact prompts, raw replies, usage and one attempt per case. Native captures are in the game worktree under output/health-observation/native-final/.

The earlier hypnosis policy/prompt experiment remains held separately. This work introduces observations, not that candidate's duplicated reward policies or extra per-turn system instruction. Publication has not occurred yet.