Skip to content

Scoped tools#108

Merged
aarne merged 8 commits intomainfrom
scopes_slow_mode
Mar 7, 2026
Merged

Scoped tools#108
aarne merged 8 commits intomainfrom
scopes_slow_mode

Conversation

@aarne
Copy link
Contributor

@aarne aarne commented Mar 7, 2026

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2026

🦋 Changeset detected

Latest commit: ceffabf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@stackables/bridge Patch
@stackables/bridge-core Patch
@stackables/bridge-compiler Patch
@stackables/bridge-parser Patch
@stackables/bridge-graphql Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 7, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bridge ceffabf Commit Preview URL

Branch Preview URL
Mar 07 2026, 01:17 PM

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

🐰 Bencher Report

Branchscopes_slow_mode
Testbedubuntu-latest

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
compiled: absolute baseline (passthrough, no tools)📈 view plot
⚠️ NO THRESHOLD
0.00 ns
compiled: array + SYNC tool-per-element 10📈 view plot
⚠️ NO THRESHOLD
0.01 ns
compiled: array + SYNC tool-per-element 100📈 view plot
⚠️ NO THRESHOLD
0.02 ns
compiled: array + tool-per-element 10📈 view plot
⚠️ NO THRESHOLD
0.01 ns
compiled: array + tool-per-element 100📈 view plot
⚠️ NO THRESHOLD
0.03 ns
compiled: chained 3-tool fan-out📈 view plot
⚠️ NO THRESHOLD
0.00 ns
compiled: flat array 10 items📈 view plot
⚠️ NO THRESHOLD
0.01 ns
compiled: flat array 100 items📈 view plot
⚠️ NO THRESHOLD
0.01 ns
compiled: flat array 1000 items📈 view plot
⚠️ NO THRESHOLD
0.07 ns
compiled: nested array 10x10📈 view plot
⚠️ NO THRESHOLD
0.02 ns
compiled: nested array 20x10📈 view plot
⚠️ NO THRESHOLD
0.03 ns
compiled: nested array 5x5📈 view plot
⚠️ NO THRESHOLD
0.01 ns
compiled: short-circuit (overdefinition bypass)📈 view plot
⚠️ NO THRESHOLD
0.00 ns
compiled: simple chain (1 tool)📈 view plot
⚠️ NO THRESHOLD
0.00 ns
exec: absolute baseline (passthrough, no tools)📈 view plot
⚠️ NO THRESHOLD
0.00 ns
exec: array + SYNC tool-per-element 10📈 view plot
⚠️ NO THRESHOLD
0.07 ns
exec: array + SYNC tool-per-element 100📈 view plot
⚠️ NO THRESHOLD
0.59 ns
exec: array + tool-per-element 10📈 view plot
⚠️ NO THRESHOLD
0.08 ns
exec: array + tool-per-element 100📈 view plot
⚠️ NO THRESHOLD
0.73 ns
exec: chained 3-tool fan-out📈 view plot
⚠️ NO THRESHOLD
0.02 ns
exec: flat array 10 items📈 view plot
⚠️ NO THRESHOLD
0.02 ns
exec: flat array 100 items📈 view plot
⚠️ NO THRESHOLD
0.08 ns
exec: flat array 1000 items📈 view plot
⚠️ NO THRESHOLD
0.71 ns
exec: nested array 10x10📈 view plot
⚠️ NO THRESHOLD
0.13 ns
exec: nested array 20x10📈 view plot
⚠️ NO THRESHOLD
0.25 ns
exec: nested array 5x5📈 view plot
⚠️ NO THRESHOLD
0.05 ns
exec: short-circuit (overdefinition bypass)📈 view plot
⚠️ NO THRESHOLD
0.00 ns
exec: simple chain (1 tool)📈 view plot
⚠️ NO THRESHOLD
0.01 ns
parse: large bridge (20 handles x 5 wires)📈 view plot
⚠️ NO THRESHOLD
0.91 ns
parse: simple bridge📈 view plot
⚠️ NO THRESHOLD
0.03 ns
🐰 View full continuous benchmarking report in Bencher

aarne and others added 4 commits March 7, 2026 12:18
…piler (#109)

* Initial plan

* fix: support shadowed loop-scoped tools in AOT compiler

Co-authored-by: aarne <82001+aarne@users.noreply.github.com>

* test: cover shadowed loop-scoped compiler support edge cases

Co-authored-by: aarne <82001+aarne@users.noreply.github.com>

* feat: compile memoized tool handles in AOT

Co-authored-by: aarne <82001+aarne@users.noreply.github.com>

* test: cover compiled memoization edge cases

Co-authored-by: aarne <82001+aarne@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: aarne <82001+aarne@users.noreply.github.com>
@aarne aarne linked an issue Mar 7, 2026 that may be closed by this pull request
@aarne aarne merged commit de20ece into main Mar 7, 2026
8 of 10 checks passed
@aarne aarne deleted the scopes_slow_mode branch March 7, 2026 13:26
@github-actions github-actions bot mentioned this pull request Mar 7, 2026
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.

Safe Array Orchestration & Tool Memoization

2 participants