Skip to content

inject host time into datastream wasm rules engine (SCHY-471)#83

Merged
cbrady merged 1 commit into
mainfrom
chris/schy-471-datastream-wasm-rules-engine-panics-unreachable-on-wasmtime
Jul 14, 2026
Merged

inject host time into datastream wasm rules engine (SCHY-471)#83
cbrady merged 1 commit into
mainfrom
chris/schy-471-datastream-wasm-rules-engine-panics-unreachable-on-wasmtime

Conversation

@cbrady

@cbrady cbrady commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The raw wasm has no clock under the Chicory runtime, so metric-period reset computation trapped (wasm unreachable) and entitled companies wrongly fell back to the flag default. Call setCurrentTimeMillis with the host wall-clock before checkFlagCombined; add a regression test that reproduces the trap and asserts correct evaluation.

The raw wasm has no clock under the Chicory runtime, so metric-period
reset computation trapped (wasm unreachable) and entitled companies
wrongly fell back to the flag default. Call setCurrentTimeMillis with the
host wall-clock before checkFlagCombined; add a regression test that
reproduces the trap and asserts correct evaluation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cbrady cbrady self-assigned this Jul 14, 2026
@cbrady cbrady requested a review from a team as a code owner July 14, 2026 14:20
@cbrady cbrady merged commit 955935d into main Jul 14, 2026
3 checks passed
@cbrady cbrady deleted the chris/schy-471-datastream-wasm-rules-engine-panics-unreachable-on-wasmtime branch July 14, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants