Harden mruby value lifecycle - #94
Merged
jackalcooper merged 1 commit intoAug 12, 2026
Merged
Conversation
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 08:47
c396cfa to
f3e31f3
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 08:51
f3e31f3 to
9c302f1
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 08:54
9c302f1 to
2d7e9f9
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 09:07
2d7e9f9 to
53c133f
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 09:11
53c133f to
369f3b7
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
2 times, most recently
from
August 12, 2026 09:23
3c495f2 to
fa80277
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 09:28
fa80277 to
40ab1e6
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 09:35
40ab1e6 to
a49696d
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
2 times, most recently
from
August 12, 2026 09:48
96a90ea to
79c2bb6
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 10:07
79c2bb6 to
ce28f5b
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
2 times, most recently
from
August 12, 2026 10:24
6aabc10 to
b533d6e
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 10:28
b533d6e to
c9b726b
Compare
jackalcooper
force-pushed
the
agent/mruby-stack-02-lifecycle
branch
from
August 12, 2026 10:58
c9b726b to
34b8547
Compare
jackalcooper
marked this pull request as ready for review
August 12, 2026 11:23
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 changed
VMand rootedValueresourcesmrb_protect_errorWhy
mruby values belong to exactly one
mrb_state; the resource graph now makes that ownership explicit and prevents use-after-free regardless of parent/child collection order.Validation
MIX_ENV=test mix compile --force --warnings-as-errorsmix credo --strictmix test --force(6 tests)Stacked on #93.