Repository navigation
feat(env): inter-turn idle instrumentation for LocalREPL (BR002-WO002) - #5
Merged
Merged
Conversation
Ports PyWasmEnv's idle-timing schema to the native env so latency-on idle structure compares directly across envs: execute wall/active accumulation, inter-turn idle windows backdated to the last execute end (initial root wait uncounted), per-request reset via warm_reset, and runtime_timing() fractions. Mid-execute park is deliberately NOT instrumented (BR002-CL005) — active is an upper bound. Additive only; stock behavior unchanged. 5 new tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
Ports PyWasmEnv's idle-timing schema to the native
LocalREPLenv so latency-on idle structure compares directly across envs (RLM Lab, BR002-WO002):execute_codegetattrhook siteswarm_resetruntime_timing()fractions; mid-execute park deliberately NOT instrumented (BR002-CL005) —active_secondsincludes nestedllm_querywaits and is an upper boundAdditive only; stock behavior unchanged. 5 new tests in
tests/test_local_repl.py(25 → 30 passing).Reviewed in rlm-lab's ABR (3 rounds, approve + clean hygiene sweep — record in
rlm-labdocs/002-rlm-production-memory-architecture/reviews/); this PR is the fork-side landing per the branch model inrlm-labdocs/permanent/rlm-fork-maintenance.md. Upstream untouched.Merge with a merge commit (not squash) — the rlm-lab superproject PR alexzhang13#20 pins
9ef1ee5and will re-pin to this PR's merge commit.🤖 Generated with Claude Code